/* ═══════════════════════════════════════════
   AGÉNTICO — sistema compartido v3
   Tokens + componentes para todas las páginas.
   Sobrio y preciso: más aire, jerarquía tipográfica
   marcada, menos sombras, sin glow.
   ═══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0F2C45;
  --navy-2: #1C3A57;
  --navy-3: #2A4F72;
  --cyan: #00A8FF;
  --cyan-d: #0086CC;
  --orange: #FF6633;
  --orange-d: #E5501F;
  --mint: #34D399;
  --cloud: #F7FAFC;
  --paper: #FBFCFD;
  --white: #FFFFFF;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-150: #E8EEF4;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --text: #0F2C45;
  --text-mute: #64748B;
  --text-soft: #475569;
  --ink: #0B1F33;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15,44,69,.05), 0 1px 1px rgba(15,44,69,.04);
  --shadow-md: 0 8px 24px -8px rgba(15,44,69,.12), 0 2px 6px rgba(15,44,69,.05);

  --font-head: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: white; }

/* ─── TIPOGRAFÍA ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.875rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { font-size: 1.0625rem; line-height: 1.7; color: var(--text-soft); }
p.large { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; }

.mono { font-family: var(--font-mono); }

a { color: inherit; }
main a:not(.btn):not([class*="card"]) { color: var(--cyan-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ─── LAYOUT ─── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 860px; }
section { padding: 128px 0; position: relative; }
@media (max-width: 768px) { .container { padding: 0 20px; } section { padding: 80px 0; } }

/* ─── NAV ─── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid rgba(15,44,69,.06);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
nav.site-nav.scrolled {
  background: rgba(255,255,255,.94);
  box-shadow: 0 6px 28px -18px rgba(15,44,69,.2);
  border-bottom-color: rgba(15,44,69,.09);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  transition: height .3s ease;
}
nav.site-nav.scrolled .nav-inner { height: 64px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button.nav-drop-btn {
  font-family: var(--font-head); font-weight: 500;
  font-size: 0.9375rem; color: var(--text-soft); text-decoration: none;
  transition: color .2s, background .2s; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 8px;
  background: none; border: none; cursor: pointer;
}
.nav-links > li > a:hover, .nav-links > li > button.nav-drop-btn:hover { color: var(--navy); background: var(--gray-100); }
.nav-drop-btn svg { transition: transform .2s ease; margin-top: 1px; }
.nav-item--drop:hover .nav-drop-btn svg,
.nav-item--drop:focus-within .nav-drop-btn svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--r-md);
  box-shadow: 0 20px 50px -18px rgba(15,44,69,.25);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 110;
}
.nav-dropdown--cols { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
.nav-item--drop:hover .nav-dropdown,
.nav-item--drop:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  display: block; padding: 10px 12px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.9rem;
  color: var(--text-soft); text-decoration: none;
  border-radius: 8px; transition: background .15s, color .15s;
  line-height: 1.3;
}
.nav-dropdown a:hover { background: var(--gray-50); color: var(--navy); }

.nav-links > li > a.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: var(--navy); color: var(--white);
  border-radius: 100px; font-weight: 600;
  transition: background .25s ease;
  margin-left: 10px;
}
.nav-links > li > a.nav-cta:hover { background: var(--ink); color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  background: var(--white);
  padding: 12px 24px 40px; z-index: 99;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0; font-family: var(--font-head);
  font-weight: 500; font-size: 1rem; color: var(--text-soft);
  text-decoration: none; border-bottom: 1px solid var(--gray-100);
}
.mobile-menu .mm-group { border-bottom: 1px solid var(--gray-100); }
.mobile-menu .mm-group > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--text-soft);
}
.mobile-menu .mm-group > button svg { transition: transform .2s; }
.mobile-menu .mm-group.open > button svg { transform: rotate(180deg); }
.mobile-menu .mm-sub { display: none; padding: 0 0 8px 14px; }
.mobile-menu .mm-group.open .mm-sub { display: block; }
.mobile-menu .mm-sub a { font-size: 0.9375rem; padding: 10px 0; border-bottom: none; color: var(--text-mute); }
.mobile-menu .mm-cta {
  border: none; margin-top: 20px; text-align: center;
  background: var(--navy); color: var(--white) !important; border-radius: 100px;
  padding: 14px; font-weight: 600;
}

/* ─── BOTONES ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 100px; border: none; cursor: pointer;
  text-decoration: none; transition: background .25s ease, border-color .25s ease, color .25s ease;
  letter-spacing: -0.01em; white-space: nowrap;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--ink); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--gray-200); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--large { padding: 17px 32px; font-size: 1.0625rem; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── BADGES / EYEBROW ─── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan-d);
  display: block; margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   HERO (home)
   ═══════════════════════════════════════════ */
.hero {
  padding: 210px 0 140px;
  background: var(--white);
}
.hero-content { max-width: 880px; }
.hero h1 { margin-bottom: 28px; font-size: clamp(2.75rem, 6.5vw, 5rem); }
.hero h1 .tachado {
  color: var(--gray-300);
  text-decoration: line-through;
  text-decoration-color: var(--orange);
  text-decoration-thickness: clamp(3px, 0.5vw, 5px);
}
.hero h1 .accent { color: var(--cyan); }
.hero p.large { margin-bottom: 44px; max-width: 560px; color: var(--text-soft); }

/* ═══════════════════════════════════════════
   PAGE HERO (páginas interiores)
   ═══════════════════════════════════════════ */
.page-hero {
  padding: 190px 0 100px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.page-hero h1 { margin-bottom: 24px; font-size: clamp(2.375rem, 4.8vw, 3.75rem); }
.page-hero p.large { max-width: 640px; margin-bottom: 40px; }

/* ═══════════════════════════════════════════
   SECCIONES COMUNES
   ═══════════════════════════════════════════ */
.section-header { max-width: 720px; margin: 0 auto 80px; text-align: center; }
.section-header h2 { margin-bottom: 18px; }
.section-header p { color: var(--text-mute); font-size: 1.0625rem; }
.section-header--left { text-align: left; margin: 0 0 64px; }

.section--paper { background: var(--paper); }

/* ─── CARDS DE SERVICIO (home) ─── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  border: 1px solid var(--gray-150);
  transition: border-color .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
  text-decoration: none;
}
.service-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); }
.service-card .svc-num {
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--text-mute); margin-bottom: 22px; display: block;
}
.service-card h3 { margin-bottom: 14px; }
.service-card p { font-size: 0.9688rem; flex: 1; margin-bottom: 26px; }
.svc-link {
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem;
  color: var(--navy); display: inline-flex; align-items: center; gap: 6px;
}
.svc-link svg { transition: transform .25s ease; }
.service-card:hover .svc-link svg { transform: translateX(4px); }
.service-card:hover .svc-link { color: var(--cyan-d); }

/* ─── CASOS (fondo navy) ─── */
.casos { background: var(--navy); color: white; }
.casos .section-header h2 { color: white; }
.casos .section-header p { color: rgba(255,255,255,.55); }
.casos .eyebrow { color: var(--cyan); }

.casos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.casos-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.caso-card {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: border-color .3s ease, background .3s ease;
  display: flex; flex-direction: column;
}
.caso-card:hover { background: rgba(255,255,255,.055); border-color: rgba(0,168,255,.3); }

.caso-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.caso-logo {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.25rem; color: white; flex-shrink: 0;
}
.caso-logo--img { object-fit: contain; background: white; padding: 6px; }
.caso-logo--wide { width: auto; max-width: 130px; padding: 8px 12px; }
.caso-logo--cb { background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); border: 1px solid rgba(255,255,255,.15); }
.caso-name { font-family: var(--font-head); font-weight: 600; font-size: 1.1875rem; color: white; line-height: 1.2; }
.caso-meta { font-size: 0.8125rem; color: rgba(255,255,255,.5); margin-top: 3px; }
.caso-quote { font-size: 0.9688rem; line-height: 1.7; color: rgba(255,255,255,.75); margin-bottom: 28px; flex: 1; }

.caso-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.caso-stat {
  padding: 16px 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
}
.caso-stat-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.5rem; line-height: 1; color: var(--cyan);
  letter-spacing: -0.03em; display: block;
}
.caso-stat-lbl { font-size: 0.75rem; color: rgba(255,255,255,.55); margin-top: 6px; font-family: var(--font-head); }

/* variante clara: caso dentro de páginas interiores */
.caso-card--light {
  background: var(--white);
  border: 1px solid var(--gray-150);
}
.caso-card--light:hover { background: var(--white); border-color: var(--gray-300); }
.caso-card--light .caso-name { color: var(--navy); }
.caso-card--light .caso-meta { color: var(--text-mute); }
.caso-card--light .caso-quote { color: var(--text-soft); }
.caso-card--light .caso-stat { background: var(--gray-50); border-color: var(--gray-150); }
.caso-card--light .caso-stat-num { color: var(--cyan-d); }
.caso-card--light .caso-stat-lbl { color: var(--text-mute); }
.caso-card--light .caso-logo--cb { border: none; }

/* ─── PROCESO (4 pasos) ─── */
.proceso-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.proceso-step { padding-top: 24px; border-top: 2px solid var(--gray-150); position: relative; }
.proceso-step::before {
  content: ''; position: absolute; top: -2px; left: 0;
  width: 48px; height: 2px; background: var(--cyan);
}
.proceso-num {
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--text-mute); display: block; margin-bottom: 14px;
}
.proceso-step h4 { margin-bottom: 10px; font-size: 1.1875rem; }
.proceso-step p { font-size: 0.9375rem; color: var(--text-mute); }

/* ═══════════════════════════════════════════
   COMPONENTES DE PÁGINA INTERIOR
   ═══════════════════════════════════════════ */

/* ─── Dolores («Dónde se pierde tiempo y dinero») ─── */
.dolores-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.dolor {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--r-md);
}
.dolor-mark {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); margin-top: 9px;
}
.dolor p { font-size: 0.9688rem; margin: 0; }

/* ─── Casos de uso / bloques «qué hacemos» ─── */
.usos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.usos-grid--three { grid-template-columns: repeat(3, 1fr); }
.uso-card {
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  transition: border-color .3s ease;
}
.uso-card:hover { border-color: var(--gray-300); }
.uso-card h3 { font-size: 1.1875rem; margin-bottom: 10px; }
.uso-card p { font-size: 0.9375rem; margin: 0; }

/* ─── Entregables ─── */
.entrega-list { list-style: none; display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.entrega-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 1.0625rem; line-height: 1.6; color: var(--text-soft);
}
.entrega-list li svg { flex-shrink: 0; margin-top: 5px; color: var(--cyan-d); }

/* ─── Por qué Agéntico ─── */
.porque-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.porque-item { padding-top: 24px; border-top: 2px solid var(--gray-150); position: relative; }
.porque-item::before {
  content: ''; position: absolute; top: -2px; left: 0;
  width: 48px; height: 2px; background: var(--orange);
}
.porque-item h4 { margin-bottom: 10px; font-size: 1.125rem; }
.porque-item p { font-size: 0.9375rem; color: var(--text-mute); }
.porque-nota {
  margin-top: 48px; padding: 20px 26px;
  background: var(--gray-50); border: 1px solid var(--gray-150);
  border-radius: var(--r-md);
  font-size: 0.9375rem; color: var(--text-soft);
  max-width: 760px;
}

/* ─── FAQ ─── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-150); }
.faq-item:first-child { border-top: 1px solid var(--gray-150); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; transition: transform .25s ease; color: var(--text-mute); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 4px 24px; }
.faq-item .faq-body p { font-size: 0.9688rem; }

/* ─── CTA FINAL ─── */
.cta-final { background: var(--white); padding: 80px 0 128px; }
.cta-box {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 88px 60px;
  text-align: center;
  color: white;
}
.cta-box h2 { color: white; margin-bottom: 18px; }
.cta-box p { color: rgba(255,255,255,.7); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-box .btn--primary { background: white; color: var(--navy); }
.cta-box .btn--primary:hover { background: var(--cyan); color: white; }
.cta-box .btn--ghost { color: white; border-color: rgba(255,255,255,.25); }
.cta-box .btn--ghost:hover { border-color: white; }

/* ─── CONTACTO ─── */
.contacto { background: var(--paper); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contacto-info h2 { margin-bottom: 18px; }
.contacto-info > p { margin-bottom: 36px; }

.contacto-channels { display: flex; flex-direction: column; gap: 14px; }
.contacto-channel {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: white;
  border: 1px solid var(--gray-150);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color .25s ease;
}
.contacto-channel:hover { border-color: var(--cyan); }
.cc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gray-50); border: 1px solid var(--gray-150);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); flex-shrink: 0;
}
.cc-text strong { display: block; font-family: var(--font-head); font-size: 0.9375rem; color: var(--navy); }
.cc-text a, .cc-text span { font-size: 0.875rem; color: var(--text-mute); text-decoration: none; }

.contacto-form {
  background: white;
  border: 1px solid var(--gray-150);
  border-radius: var(--r-lg);
  padding: 40px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: var(--font-head);
  font-weight: 500; font-size: 0.8125rem;
  color: var(--navy); margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 0.9375rem;
  color: var(--navy); background: var(--white);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,168,255,.1);
}
.form-group textarea { height: 110px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-400); }
.form-group input[type="file"] { padding: 10px 12px; font-size: 0.875rem; color: var(--text-mute); }
.form-submit { width: 100%; margin-top: 4px; }

.form-success { display: none; text-align: center; padding: 36px 20px; }
.form-success.active { display: block; }
.form-success-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; background: rgba(52,211,153,.15);
  color: #059669;
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 { color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--text-mute); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer { background: var(--ink); padding: 72px 0 36px; color: rgba(255,255,255,.55); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,.5); margin-top: 18px; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.65); text-decoration: none; font-size: 0.875rem; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.8125rem; }
.footer-bottom .sub { font-size: 0.6875rem; color: rgba(255,255,255,.35); display: block; margin-top: 4px; }
.footer-bottom-links { display: flex; gap: 24px; list-style: none; }
.footer-bottom-links a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--cyan); }

/* ═══════════════════════════════════════════
   ANIMACIONES / SCROLL
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-content, .page-hero .container > * { animation: fadeUp .7s ease-out both; }
.page-hero .container > *:nth-child(2) { animation-delay: .08s; }
.page-hero .container > *:nth-child(3) { animation-delay: .16s; }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .proceso-grid, .porque-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .casos-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .casos-grid--two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .usos-grid, .usos-grid--three { grid-template-columns: 1fr; }
  .dolores-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .hero { padding: 150px 0 90px; }
  .page-hero { padding: 140px 0 70px; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }
  .proceso-grid, .porque-grid { grid-template-columns: 1fr; gap: 32px; }
  .caso-card { padding: 28px 24px; }
  .cta-box { padding: 56px 28px; border-radius: var(--r-lg); }
  .contacto-form { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
