@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
  --ink: #0f172a;
  --muted: #526176;
  --line: #dbe3ee;
  --paper: #f6f8fc;
  --white: #ffffff;
  --blue: #1d4ed8;
  --cyan: #0891b2;
  --green: #16a34a;
  --navy: #050d1a;
  --navy-soft: #0a1628;
  --aqua: #22d3ee;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
::selection { color: white; background: #1d4ed8; }
:focus-visible { outline: 3px solid rgba(34, 211, 238, .7); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.title { margin: 0; font-family: Manrope, Inter, sans-serif; font-size: clamp(2.25rem, 4.6vw, 4.4rem); font-weight: 800; line-height: 1.01; letter-spacing: -.055em; }
.section-title { margin: 0; font-family: Manrope, Inter, sans-serif; font-size: clamp(1.85rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.section { padding: 88px 0; }
.section-white { background: var(--white); }
.dark-section { position: relative; overflow: hidden; color: white; background: #050b18; }
.dark-section::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(59,130,246,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.10) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.dark-section .container { position: relative; z-index: 1; }
.dark-section .eyebrow { color: #67e8f9; }
.dark-section .section-title { color: white; }
.dark-section .lead { color: #b8c4d6; }
.dark-cards .card { border-color: rgba(148,163,184,.18); background: linear-gradient(145deg, rgba(18,27,48,.92), rgba(10,17,32,.96)); box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.dark-cards .card:hover { border-color: rgba(96,165,250,.42); box-shadow: 0 24px 55px rgba(0,0,0,.28); }
.dark-cards .card h3 { color: white; }
.dark-cards .card p { color: #cbd5e1; }
.dark-cards .card-link { color: #67e8f9; }
.dark-cards .card-icon { color: #93c5fd; border: 1px solid rgba(96,165,250,.16); background: rgba(30,64,175,.35); }
.dark-cards .card:nth-child(2) .card-icon { color: #67e8f9; background: rgba(8,145,178,.28); }
.dark-cards .card:nth-child(3) .card-icon { color: #c4b5fd; background: rgba(109,40,217,.28); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(219,227,238,.78); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 950; }
.brand img { width: 50px; height: 50px; object-fit: contain; padding: 5px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: #050d1a; box-shadow: 0 10px 26px rgba(5,13,26,.2); }
.brand strong { display: block; font-size: 1.12rem; }
.brand small { display: block; margin-top: 2px; color: var(--cyan); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 7px; color: #334155; padding: 5px; border: 1px solid #e6ebf2; border-radius: 14px; background: rgba(248,250,252,.82); font-size: .88rem; font-weight: 750; }
.nav-links a { padding: 10px 13px; border-radius: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); background: white; box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.nav-links .nav-cta { padding: 10px 16px; color: white; background: var(--green); box-shadow: 0 7px 18px rgba(22,163,74,.22); }
.nav-links .nav-cta:hover, .nav-links .nav-cta[aria-current="page"] { color: white; background: #15803d; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font-size: 1.2rem; }

.hero { position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 78% 25%, rgba(14,165,233,.24), transparent 28%), radial-gradient(circle at 5% 90%, rgba(16,185,129,.12), transparent 30%), linear-gradient(120deg, #050d1a 4%, #0b2749 55%, #0d4f79 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; min-height: 690px; display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 72px; padding: 92px 0; }
.hero .eyebrow { display: inline-flex; padding: 9px 13px; color: #b9f4ff; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.08); }
.hero .lead { max-width: 720px; color: #dbeafe; }
.hero-visual { position: relative; width: min(420px, 92%); aspect-ratio: 1; display: grid; place-items: center; margin: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), rgba(255,255,255,.025) 58%, transparent 59%); box-shadow: inset 0 0 70px rgba(34,211,238,.08), 0 40px 100px rgba(0,0,0,.25); }
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; border: 1px solid rgba(34,211,238,.17); border-radius: 50%; }
.hero-visual::before { inset: 11%; }
.hero-visual::after { inset: 23%; }
.hero-logo { width: 64%; margin: auto; opacity: .58; filter: drop-shadow(0 25px 50px rgba(0,0,0,.35)); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: #cbd5e1; font-size: .85rem; font-weight: 650; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points i { color: #5eead4; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, #16a34a, #0f9f76); box-shadow: 0 12px 28px rgba(22,163,74,.24); }
.button-secondary { color: white; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.button-blue { color: white; background: var(--blue); }
.button-outline { color: var(--blue); border-color: #b9c8ee; background: white; }

.page-hero { position: relative; overflow: hidden; padding: 104px 0 88px; color: white; background: radial-gradient(circle at 82% 20%, rgba(34,211,238,.18), transparent 27%), linear-gradient(120deg, #050d1a, #123e6b); }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -130px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { max-width: 760px; color: #dbeafe; }
.breadcrumbs { margin-bottom: 20px; color: #a5dff2; font-size: .9rem; font-weight: 750; }

/* Una identidad común con una personalidad distinta para cada área. */
.page-services .page-hero { background: radial-gradient(circle at 82% 18%, rgba(124,58,237,.26), transparent 28%), linear-gradient(120deg, #080b17, #19295a); }
.page-services .dark-section { background: radial-gradient(circle at 90% 15%, rgba(14,165,233,.10), transparent 24%), #07101f; }
.page-services #automatizacion { background: radial-gradient(circle at 8% 80%, rgba(124,58,237,.16), transparent 28%), #100b21; }

.page-projects { background: #f5f3ee; }
.page-projects .page-hero { background: radial-gradient(circle at 82% 22%, rgba(20,184,166,.24), transparent 27%), linear-gradient(120deg, #07151c, #124c55); }
.page-projects .section { background: linear-gradient(180deg, #f8f7f3, #f2f5f4); }
.page-projects .product { border-color: #d8e2df; }
.page-projects .product:nth-child(1) { border-top: 4px solid #2563eb; }
.page-projects .product:nth-child(2) { border-top: 4px solid #0891b2; }
.page-projects .product:nth-child(3) { border-top: 4px solid #7c3aed; }
.page-projects .product:nth-child(4) { border-top: 4px solid #16a34a; }

.page-method .page-hero { background: radial-gradient(circle at 85% 15%, rgba(56,189,248,.22), transparent 27%), linear-gradient(120deg, #111827, #1e3a8a); }
.page-method .process-step:nth-child(2) i { color: #7c3aed; background: #ede9fe; }
.page-method .process-step:nth-child(3) i { color: #b45309; background: #fef3c7; }
.page-method .process-step:nth-child(4) i { color: #15803d; background: #dcfce7; }
.page-method .dark-section { background: radial-gradient(circle at 10% 20%, rgba(34,211,238,.10), transparent 25%), #111827; }

.page-company { background: #f7f8f5; }
.page-company .page-hero { background: radial-gradient(circle at 82% 20%, rgba(52,211,153,.22), transparent 28%), linear-gradient(120deg, #091512, #14532d); }
.page-company .vision-box { background: linear-gradient(135deg, #064e3b, #0f766e); }
.page-company .timeline-number { background: linear-gradient(135deg, #0f766e, #2563eb); }

.page-contact { background: #f4f8f8; }
.page-contact .page-hero { background: radial-gradient(circle at 82% 20%, rgba(34,197,94,.20), transparent 27%), linear-gradient(120deg, #0b1320, #155e75); }
.page-contact .contact-panel:first-child { border-top: 4px solid #16a34a; }
.page-contact .contact-panel:last-child { border-top: 4px solid #0891b2; }

.page-faq { background: #f7f6fb; }
.page-faq .page-hero { background: radial-gradient(circle at 82% 20%, rgba(167,139,250,.24), transparent 28%), linear-gradient(120deg, #11101d, #3b2c68); }
.page-faq .faq-list details[open] { border-color: #c4b5fd; box-shadow: 0 16px 36px rgba(76,29,149,.08); }
.page-faq .faq-list summary::after { color: #6d28d9; background: #f3e8ff; }

.intro-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 64px; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, white, #fbfdff); box-shadow: 0 8px 28px rgba(15,23,42,.05); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--aqua)); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.card:hover { transform: translateY(-5px); border-color: #bfd0f5; box-shadow: 0 20px 44px rgba(15,23,42,.10); }
.card:hover::after { transform: scaleX(1); }
.card h3 { margin: 18px 0 8px; font-size: 1.24rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.7; }
.card-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--blue); border-radius: 14px; background: #eaf1ff; font-size: 1.35rem; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--blue); font-weight: 850; }

.feature-band { padding: 26px; color: white; border-radius: 22px; background: linear-gradient(120deg, #143f7c, #0789a7); box-shadow: var(--shadow); }
.feature-band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-band strong { display: block; margin-bottom: 5px; font-size: 1.08rem; }
.feature-band span { color: #d9f7ff; font-size: .9rem; line-height: 1.55; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, white, #fbfdff); box-shadow: 0 12px 34px rgba(15,23,42,.07); transition: transform .2s ease, box-shadow .2s ease; }
.product:hover { transform: translateY(-4px); box-shadow: 0 24px 52px rgba(15,23,42,.11); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.product h2, .product h3 { margin: 20px 0 10px; }
.product p { color: var(--muted); line-height: 1.7; }
.product ul { padding: 0; margin: 16px 0 0; list-style: none; }
.product li { margin: 9px 0; color: #334155; }
.product li i { margin-right: 9px; color: var(--green); }
.status { display: inline-flex; width: fit-content; padding: 6px 10px; border-radius: 999px; color: #166534; background: #dcfce7; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.status.dev { color: #92400e; background: #fef3c7; }

.vision-box { padding: 38px; color: white; border-radius: 24px; background: linear-gradient(135deg, #1d4ed8, #0789a7); box-shadow: var(--shadow); }
.vision-box blockquote { margin: 12px 0 0; font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.35; font-weight: 900; }
.timeline { display: grid; gap: 16px; }
.timeline-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.timeline-number { width: 48px; height: 48px; display: grid; place-items: center; color: white; border-radius: 13px; background: var(--blue); font-weight: 900; }
.timeline-item h3 { margin: 2px 0 6px; }
.timeline-item p { margin: 0; color: var(--muted); line-height: 1.6; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: process; }
.process-step { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.process-step::before { counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 24px; color: #94a3b8; font-family: Manrope, Inter, sans-serif; font-size: .85rem; font-weight: 800; letter-spacing: .08em; }
.process-step::after { content: ""; position: absolute; top: 42px; right: -19px; width: 20px; height: 1px; background: #b9c7d9; }
.process-step:last-child::after { display: none; }
.process-step h3 { margin: 0 0 10px; font-family: Manrope, Inter, sans-serif; font-size: 1.08rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.process-step i { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 18px; color: #0e7490; border-radius: 13px; background: #cffafe; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { padding: 24px; border-left: 3px solid var(--aqua); border-radius: 0 14px 14px 0; background: rgba(255,255,255,.06); }
.principle strong { display: block; margin-bottom: 8px; color: white; }
.principle span { color: #b9c6d8; font-size: .92rem; line-height: 1.6; }

.faq-list { display: grid; max-width: 900px; gap: 12px; margin: 34px auto 0; }
.faq-list details { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(15,23,42,.04); }
.faq-list summary { position: relative; padding: 22px 58px 22px 24px; cursor: pointer; font-family: Manrope, Inter, sans-serif; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 50%; right: 22px; width: 28px; height: 28px; display: grid; place-items: center; transform: translateY(-50%); color: var(--blue); border-radius: 50%; background: #eff6ff; font-size: 1.2rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 22px; color: var(--muted); line-height: 1.75; }

.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 28px; }
.contact-panel { padding: 34px; border-radius: 22px; background: white; box-shadow: var(--shadow); }
.contact-panel h2 { margin-top: 0; }
.contact-list { display: grid; gap: 14px; margin: 26px 0; }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.contact-item i { width: 30px; color: var(--cyan); font-size: 1.3rem; text-align: center; }
.checklist { margin: 22px 0 0; padding: 0; list-style: none; }
.checklist li { margin: 12px 0; color: var(--muted); }
.checklist i { margin-right: 9px; color: var(--green); }

.cta { position: relative; overflow: hidden; padding: 78px 0; color: white; background: radial-gradient(circle at 85% 0%, rgba(34,211,238,.15), transparent 28%), var(--navy); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.cta p { margin: 0; max-width: 680px; color: #cbd5e1; line-height: 1.7; }
.site-footer { padding: 64px 0 28px; border-top: 1px solid rgba(255,255,255,.08); background: #030812; }
.footer-inner { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 48px; color: #94a3b8; font-size: .9rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 900; }
.footer-brand img { width: 38px; height: 38px; object-fit: contain; padding: 4px; border-radius: 10px; background: #07101f; }
.footer-copy { max-width: 390px; margin: 18px 0 0; line-height: 1.7; }
.footer-title { margin: 0 0 16px; color: white; font-family: Manrope, Inter, sans-serif; font-size: .9rem; font-weight: 800; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { width: fit-content; transition: color .16s ease; }
.footer-links a:hover { color: #67e8f9; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; margin-top: 8px; padding-top: 24px; border-top: 1px solid rgba(148,163,184,.14); color: #64748b; font-size: .8rem; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 56px; height: 56px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: #16a34a; box-shadow: 0 16px 36px rgba(22,163,74,.35); font-size: 1.55rem; transition: transform .18s ease, background .18s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); background: #15803d; }

@media (max-width: 900px) {
  .menu-button { display: grid; place-items: center; }
  .nav-links { position: absolute; top: 82px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 16px 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: white; box-shadow: 0 18px 30px rgba(15,23,42,.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 10px; border-bottom: 0; border-radius: 9px; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: #eff6ff; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }
  .hero-inner, .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; gap: 20px; }
  .hero-visual { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-band-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2)::after { display: none; }
  .principles { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about, .footer-bottom { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 66px 0; }
  .brand small { display: none; }
  .hero-inner { padding: 74px 0; }
  .cards, .cards.two, .product-grid { grid-template-columns: 1fr; }
  .actions, .cta-inner { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-points { display: grid; gap: 10px; }
  .process-grid, .footer-inner { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  .footer-inner { text-align: left; }
  .footer-brand { justify-content: center; }
  .footer-about { text-align: center; }
  .footer-copy { margin-inline: auto; }
  .footer-bottom { grid-column: auto; flex-direction: column; text-align: center; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
