/* ============================================================
   ESTUDIO JURÍDICO ARTIEDA — Main CSS
   ============================================================ */

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

/* --- Design Tokens --- */
:root {
  /* === Paleta base === */
  --navy:       #223A57; /* Deep blue */
  --navy-dark:  #182536; /* Ink blue */
  --navy-dark-rgb: 24, 37, 54;
  --navy-mid:   #314968;
  --gold:       #ce8946;
  --gold-light: #dfa76e;
  --gold-rgb:   206, 137, 70;
  --success:    #2a7a4f;
  --success-bg: #dcfce7;
  --success-text: #14532d;
  --success-strong: #16a34a;
  --danger-bg:  #fee2e2;
  --danger-text: #7f1d1d;
  --danger-strong: #dc2626;
  --offwhite:   #FAF8F4; /* Warm white */
  --white:      #FFFFFF;
  --gray-dark:  #182536;
  --gray-dark-rgb: 24, 37, 54;
  --gray-mid:   #516072;
  --gray-light: #E6DED2;

  /* === Transparencias de gold (overlay y decorativos) === */
  --gold-alpha-12: rgba(var(--gold-rgb), .12);
  --gold-alpha-15: rgba(var(--gold-rgb), .15);
  --gold-alpha-18: rgba(var(--gold-rgb), .18);
  --gold-alpha-30: rgba(var(--gold-rgb), .30);

  /* === Transparencias de navy-dark (textos sobre fondos gold/CTA) === */
  --navy-dark-alpha-82: rgba(var(--navy-dark-rgb), .82);
  --navy-dark-alpha-55: rgba(var(--navy-dark-rgb), .55);

  /* === Color de marca externa (WhatsApp) === */
  --whatsapp:     #25D366;
  --whatsapp-rgb: 37, 211, 102;

  /* === Íconos SVG ===
     Los SVG usan stroke="currentColor" / fill="currentColor".
     Cambiando --icon-color se actualizan todos los íconos del sitio. */
  --eyebrow-color: var(--navy-dark);
  --icon-color: var(--navy-dark);
  --link-color: var(--navy-dark);
  --link-hover-color: var(--navy);
  --link-underline-color: rgba(var(--gold-rgb), .45);
  --pill-bg: rgba(var(--gold-rgb), .18);
  --pill-fg: var(--navy-dark);
  --pill-border: rgba(var(--gold-rgb), .38);
  --surface-soft: rgba(var(--gold-rgb), .10);
  --surface-soft-border: rgba(var(--gold-rgb), .18);
  --focus-ring: rgba(var(--gold-rgb), .26);
  --focus-outline: var(--gold);

  /* === Tokens tipográficos — se sobreescriben según el contexto de fondo === */
  --text-primary:   var(--navy-dark);
  --text-secondary: var(--gray-mid);
  --text-muted:     rgba(var(--navy-dark-rgb), .58);

  --font-head: 'Epilogue', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.13);

  --max-w: 1200px;
  --section-py: 96px;
  --section-py-sm: 64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-mid);
  background: var(--offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--center { text-align: center; }
.container--narrow { max-width: 760px; }
.container--narrow-lg { max-width: 800px; }

/* --- Utilities --- */
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.text-muted { color: var(--gray-mid); }
.text-light { color: rgba(255,255,255,.75); }
.text-light-strong { color: rgba(255,255,255,.78); }
.text-accent { color: var(--gold); }
.text-sm { font-size: .8rem; }
.text-md { font-size: .95rem; }
.text-lg { font-size: 1.05rem; }
.text-body { line-height: 1.7; }
.text-body-lg { line-height: 1.8; }

.stack-md {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.link-accent {
  display: inline-block;
  color: var(--link-color, var(--gold));
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  transition: color .18s, text-decoration-color .18s;
}

.link-accent:hover {
  color: var(--link-hover-color, var(--navy));
  text-decoration-color: var(--link-underline-color, rgba(var(--gold-rgb), .45));
}

.link-dark {
  color: var(--navy);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s, box-shadow .35s, border-color .35s;
}
.navbar.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 4px 24px rgba(0,0,0,.22);
}

/* Home: el navbar transparente ya es el default para todas las páginas.
   Solo se mantiene esta regla por compatibilidad con scroll en home. */
body[data-page="home"] .navbar.scrolled {
  background: var(--navy-dark);
  border-bottom-color: transparent;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.navbar__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .08em;
  color: var(--white);
  white-space: nowrap;
}
.navbar__logo span { color: var(--gold); }

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__item { position: relative; }

.navbar__link {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.navbar__link:hover,
.navbar__link.active { background: rgba(255,255,255,.1); color: var(--white); }
.navbar__link.active { color: var(--white); font-weight: 600; }

/* Dropdown */
.navbar__item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-light);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .22s ease;
}
.dropdown__link {
  display: block;
  padding: 10px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.dropdown__link:hover { background: var(--offwhite); color: var(--gold); }

.navbar__cta {
  margin-left: 8px;
  padding: 10px 22px;
  background: transparent;
  color: var(--white) !important;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s, transform .15s, border-color .2s;
  white-space: nowrap;
}
.navbar__cta:hover { background: rgba(255,255,255,.12); }

.navbar.scrolled .navbar__cta {
  background: var(--gold);
  border-color: transparent;
  color: var(--navy-dark) !important;
}
.navbar.scrolled .navbar__cta:hover { 
  background: var(--gold-light); 
  transform: translateY(-1px); 
}

.navbar__item--locale {
  margin-left: 8px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  background: rgba(255,255,255,.08);
}

.lang-switcher__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.lang-switcher__item--active {
  background: rgba(255,255,255,.2);
  color: var(--white);
}

.lang-switcher__item--disabled {
  color: rgba(255,255,255,.4);
  opacity: .7;
  cursor: not-allowed;
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(var(--whatsapp-rgb), .4);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(var(--whatsapp-rgb), .5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: var(--white); }

/* WhatsApp area picker */
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 37, 54, .58);
  backdrop-filter: blur(4px);
}

.wa-modal[hidden] { display: none; }

.wa-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  background: var(--white);
  border-radius: 24px;
  border: 1px solid rgba(var(--gold-rgb), .22);
  box-shadow: 0 24px 60px rgba(17, 24, 39, .28);
  padding: 32px;
}

.wa-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), .12);
  color: var(--navy-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

.wa-modal__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.wa-modal__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  color: var(--navy-dark);
  margin-bottom: 14px;
}

.wa-modal__text {
  color: var(--gray-mid);
  margin-bottom: 24px;
}

.wa-modal__areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wa-modal__area-btn {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(var(--gold-rgb), .24);
  background: rgba(var(--gold-rgb), .08);
  color: var(--navy-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s, background-color .18s;
}

.wa-modal__area-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), .14);
  box-shadow: var(--shadow-sm);
}

.wa-modal__cancel {
  margin-top: 20px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  padding-top: calc(72px + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold-alpha-12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero--center .hero__inner {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.78);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero--center .hero__subtitle { margin-left: auto; margin-right: auto; }
.hero__breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.hero__breadcrumb a { color: rgba(255,255,255,.5); }
.hero__breadcrumb span { color: var(--gold); }

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero--center .hero__actions { justify-content: center; }

/* Hero fullbleed — imagen de fondo con gradiente */
.hero--fullbleed {
  background-image:
    linear-gradient(to right, rgba(var(--navy-dark-rgb),.96) 52%, rgba(var(--navy-dark-rgb),.15) 100%),
    url('../img/hero-lady-justice.jpg');
  background-size: cover;
  background-position: right center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}
.hero--fullbleed .container {
  max-width: none;
  padding-left: clamp(24px, 8vw, 140px);
  padding-right: 24px;
}
.hero--fullbleed .hero__body {
  max-width: 540px;
}
@media (min-width: 768px) {
  .hero--fullbleed .container {
    padding-right: 48%;
  }
}

/* Hero visual placeholder */
.hero__visual {
  position: relative;
}
.hero__img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: .85rem;
  overflow: hidden;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-alpha-18);
  border: 1px solid var(--gold-alpha-30);
  color: var(--gold);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-top: 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  line-height: 1.25;
  min-height: 48px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 0 0 0 transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn--primary {
  background:   var(--btn-bg,     var(--gold));
  color:        var(--btn-fg,     var(--navy));
  border-color: var(--btn-border, var(--gold));
}
.btn--primary:hover {
  background:   var(--btn-hover-bg, var(--gold-light));
  border-color: var(--btn-hover-bg, var(--gold-light));
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn--secondary:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn--navy {
  background:   var(--btn-bg,     var(--navy));
  color:        var(--btn-fg,     var(--white));
  border-color: var(--btn-border, var(--navy));
}
.btn--navy:hover {
  background:   var(--btn-hover-bg, var(--navy-mid));
  border-color: var(--btn-hover-bg, var(--navy-mid));
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline-gold:hover { background: var(--gold); color: var(--navy-dark); box-shadow: var(--shadow-sm); }

.btn--lg { padding: 16px 36px; font-size: 1.02rem; min-height: 56px; }
.btn--sm { padding: 10px 20px; font-size: .85rem; min-height: auto; }
.btn--full { width: 100%; }
.btn--success {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}
.btn--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:disabled { cursor: not-allowed; opacity: .9; transform: none; }

.btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn:focus-visible,
.link-accent:focus-visible,
.card__link:focus-visible,
.contact-link:focus-visible,
.footer__link:focus-visible,
.footer__bottom-links a:focus-visible,
.faq__question:focus-visible,
.navbar__link:focus-visible,
.dropdown__link:focus-visible,
.navbar__cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring, rgba(var(--gold-rgb), .26));
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--section-py) 0; }
.section--sm { padding: var(--section-py-sm) 0; }
.section--navy  { background: var(--navy);     --text-primary: var(--white); --text-secondary: rgba(255,255,255,.75); --text-muted: rgba(255,255,255,.5); --eyebrow-color: var(--gold); --icon-color: var(--gold); --link-color: var(--gold); --link-hover-color: var(--white); --link-underline-color: rgba(255,255,255,.42); --pill-bg: rgba(255,255,255,.08); --pill-fg: var(--white); --pill-border: rgba(255,255,255,.18); --surface-soft: rgba(255,255,255,.08); --surface-soft-border: rgba(255,255,255,.16); --focus-ring: rgba(255,255,255,.20); --focus-outline: var(--gold); }
.section--offwhite { background: var(--offwhite); }
.section--white { background: var(--white); }
.section--gold  {
  background: var(--gold);
  --text-primary:   var(--navy-dark);
  --text-secondary: var(--navy-dark-alpha-82);
  --text-muted:     var(--navy-dark-alpha-55);
  --eyebrow-color:  var(--navy-dark);
  --icon-color:     var(--navy-dark);
  --link-color:     var(--navy-dark);
  --link-hover-color: var(--navy);
  --link-underline-color: rgba(var(--navy-dark-rgb), .28);
  --pill-bg:        rgba(255,255,255,.24);
  --pill-fg:        var(--navy-dark);
  --pill-border:    rgba(var(--navy-dark-rgb), .18);
  --surface-soft:   rgba(255,255,255,.26);
  --surface-soft-border: rgba(var(--navy-dark-rgb), .14);
  --focus-ring:     rgba(var(--navy-dark-rgb), .18);
  --focus-outline:  var(--navy-dark);
  /* Botones: fondo oscuro, texto blanco — para contrastar con el fondo gold */
  --btn-bg:       var(--navy-dark);
  --btn-fg:       var(--white);
  --btn-border:   var(--navy-dark);
  --btn-hover-bg: var(--navy);
}
.section--dark  { background: var(--navy-dark); --text-primary: var(--white); --text-secondary: rgba(255,255,255,.75); --text-muted: rgba(255,255,255,.5); --eyebrow-color: var(--gold); --icon-color: var(--gold); --link-color: var(--gold); --link-hover-color: var(--white); --link-underline-color: rgba(255,255,255,.42); --pill-bg: rgba(255,255,255,.08); --pill-fg: var(--white); --pill-border: rgba(255,255,255,.18); --surface-soft: rgba(255,255,255,.08); --surface-soft-border: rgba(255,255,255,.16); --focus-ring: rgba(255,255,255,.20); --focus-outline: var(--gold); }

.section__eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--eyebrow-color, var(--gold));
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section__subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

.section__header { margin-bottom: 56px; }
.section__header--center { text-align: center; }
.section__header--center .section__subtitle { margin-left: auto; margin-right: auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: box-shadow .25s, border-color .25s, transform .25s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.card--xl { padding: 40px; }
.card--navy {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  --text-primary:   var(--white);
  --text-secondary: rgba(255,255,255,.7);
}
.card--navy:hover { border-color: var(--gold); background: rgba(255,255,255,.09); transform: translateY(-3px); }

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--icon-color, var(--gold)); /* SVGs heredan este color via currentColor */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card__text {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.card > .btn,
.card > .card__link { margin-top: auto; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--link-color, var(--gold));
  margin-top: 16px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  transition: gap .2s, color .18s, text-decoration-color .18s;
  align-self: flex-start;
}
.card__link:hover {
  gap: 10px;
  color: var(--link-hover-color, var(--navy));
  text-decoration-color: var(--link-underline-color, rgba(var(--gold-rgb), .45));
}

.service-card__meta {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.service-card__list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.55;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.service-card__list + .btn {
  margin-top: 24px;
}

/* Tags */
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--offwhite);
  color: var(--navy);
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.grid-2--start { align-items: start; }

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col--reversed .two-col__content { order: 1; }
.two-col--reversed .two-col__visual { order: -1; }

/* .two-col__content and .two-col__visual use inherited styles */

.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: .85rem;
  border: 2px dashed var(--gray-light);
  position: relative;
  overflow: hidden;
}
.photo-placeholder::after {
  content: 'Imagen de referencia';
  color: var(--gray-mid);
  font-size: .85rem;
  text-align: center;
}

.editorial-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin: 0;
  background: var(--offwhite);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.editorial-photo--dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 48px rgba(8, 15, 30, 0.28);
}

.editorial-photo--light {
  background: var(--offwhite);
  border: 1px solid var(--gray-light);
}

.editorial-photo__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.editorial-photo--trim-top .editorial-photo__image {
  object-position: center 82%;
  transform: scale(1.03);
}

.editorial-photo--portrait .editorial-photo__image {
  object-position: center 38%;
}

.editorial-photo__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(245,247,250,0.86));
  color: var(--navy);
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.14);
}

.editorial-photo--dark .editorial-photo__caption {
  background: linear-gradient(135deg, rgba(9, 28, 46, 0.84), rgba(20, 48, 72, 0.74));
  color: rgba(255,255,255,0.9);
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.checklist__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: var(--navy-dark); /* SVGs de checkmark usan currentColor → navy sobre gold */
}
.checklist__icon svg { width: 18px; height: 18px; fill: none; stroke-width: 2; }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat__number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
}
.section--navy .stat__number { color: var(--gold); } /* excepción: números en gold sobre navy */
.stat__label { font-size: .9rem; color: var(--text-secondary); line-height: 1.4; }

/* ============================================================
   STEPS / PROCESS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: border-color .2s;
}
.step:hover { border-color: var(--gold); }
.step__num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}
.step__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step__text { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.6; }

.steps--light .step {
  background: var(--white);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}

.steps--light .step:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.steps--light .step__title {
  color: var(--navy-dark);
}

.steps--light .step__text {
  color: var(--navy-dark-alpha-82);
}

.steps--light .step__num {
  color: var(--navy-dark);
}

/* ============================================================
   PILLS / BADGES
   ============================================================ */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 99px;
  background: var(--pill-bg, var(--gold-alpha-15));
  color: var(--pill-fg, var(--gold));
  border: 1px solid var(--pill-border, var(--gold-alpha-30));
}

/* ============================================================
   FAQ / ACCORDION
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.faq__question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .15s;
}
.faq__question:hover { background: var(--offwhite); }
.faq__question::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  transition: transform .3s ease;
}
.faq__question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  transition: transform .3s;
}
.faq__item.open .faq__question svg { transform: rotate(45deg); }
.faq__item.open .faq__question::after { transform: rotate(45deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  padding: 0 24px;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.faq__item.open .faq__answer { max-height: 300px; padding: 0 24px 20px; }
.faq__answer p + p { margin-top: 12px; }

/* ============================================================
   RISK CARDS
   ============================================================ */
.risk-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px;
}
.risk-card__title {
  font-family: var(--font-head);
  font-size: .97rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.risk-card__text { font-size: .88rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: .88rem; font-weight: 600; color: var(--text-primary); }
.form__input,
.form__select,
.form__textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--gray-dark);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus { border-color: var(--navy); }
.form__textarea { resize: vertical; min-height: 110px; }
.form__privacy {
  font-size: .8rem;
  color: var(--gray-mid);
  text-align: center;
  margin-top: 4px;
}

.form__heading {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
}

.form__intro {
  color: var(--gray-mid);
  font-size: .95rem;
  margin-bottom: 32px;
}

/* ============================================================
   CONTACT INFO
   ============================================================ */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
}
.contact-card__icon {
  width: 44px;
  height: 44px;
  background: var(--surface-soft, var(--offwhite));
  border: 1px solid var(--surface-soft-border, transparent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--icon-color); /* SVGs heredan este color via currentColor */
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 3px; }
.contact-card__value { font-size: .95rem; font-weight: 500; color: var(--navy); }

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 200px;
  background: var(--offwhite);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: .85rem;
  border: 1px solid var(--gray-light);
  gap: 8px;
  margin-top: 20px;
}

.map-embed,
.map-static {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.map-embed {
  border: 0;
}

.map-link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.contact-channel-card {
  text-align: center;
  align-items: center;
}

.contact-channel-card .card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 18px;
  background: var(--surface-soft, rgba(255,255,255,.04));
  border: 1px solid var(--surface-soft-border, transparent);
  overflow: visible;
}

.contact-channel-card .card__icon svg {
  width: 32px;
  height: 32px;
  overflow: visible;
}

.contact-link {
  color: var(--link-color, var(--navy));
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
  transition: color .18s, text-decoration-color .18s;
}

.contact-link:hover {
  color: var(--link-hover-color, var(--navy));
  text-decoration-color: var(--link-underline-color, rgba(var(--gold-rgb), .45));
}

.contact-note {
  font-size: .85rem;
  color: var(--gray-mid);
}

.map-placeholder--embed {
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  margin-top: 8px;
}

/* ============================================================
   SHELL ACTIONS
   ============================================================ */
.footer__cta {
  margin-top: 0;
}

.footer__wa-btn {
  margin-top: 12px;
}

/* ============================================================
   TEXT BLOCKS
   ============================================================ */
.copy-block {
  color: var(--text-secondary);
  line-height: 1.7;
}

.copy-block--light {
  color: rgba(255,255,255,.75);
}

.copy-block--light-strong {
  color: rgba(255,255,255,.78);
}

.copy-block--lead {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================================
   COMPARISON
   ============================================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.comparison-card {
  border-radius: 12px;
  padding: 20px;
}

.comparison-card--danger {
  background: var(--danger-bg);
}

.comparison-card--success {
  background: var(--success-bg);
}

.comparison-card__title {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.comparison-card--danger .comparison-card__title {
  color: var(--danger-strong);
}

.comparison-card--success .comparison-card__title {
  color: var(--success-strong);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-list__item {
  position: relative;
  padding-left: 16px;
  font-size: .9rem;
}

.comparison-card--danger .comparison-list__item {
  color: var(--danger-text);
}

.comparison-card--success .comparison-list__item {
  color: var(--success-text);
}

.comparison-list--danger .comparison-list__item::before,
.comparison-list--success .comparison-list__item::before {
  position: absolute;
  left: 0;
  top: 0;
}

.comparison-list--danger .comparison-list__item::before {
  content: 'x';
}

.comparison-list--success .comparison-list__item::before {
  content: '+';
}

/* ============================================================
   ICON LIST
   ============================================================ */
.icon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icon-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}

.icon-list__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   STORY POINTS
   ============================================================ */
.story-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.story-point {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.story-point__number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}

.story-point__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.story-point__text {
  color: var(--text-secondary);
  line-height: 1.7;
}

.stat__number--small {
  font-size: 1.4rem;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 24px 0;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* ============================================================
   FEATURED HIGHLIGHT (navy band)
   ============================================================ */
.highlight {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.highlight__content {
  flex: 1 1 420px;
}
.highlight__badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.highlight__title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.highlight__text { font-size: .9rem; color: rgba(255,255,255,.75); max-width: 500px; }

/* ============================================================
   CTA SECTION (gold background)
   ============================================================ */
.cta-section {
  background: var(--gold);
  padding: 80px 0;
  text-align: center;
  --text-primary:   var(--navy-dark);
  --text-secondary: var(--navy-dark-alpha-82);
  --text-muted:     var(--navy-dark-alpha-55);
  --btn-bg:         var(--navy-dark);
  --btn-fg:         var(--white);
  --btn-border:     var(--navy-dark);
  --btn-hover-bg:   var(--navy);
}
.cta-section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.cta-section__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section__note { font-size: .82rem; color: var(--text-muted); margin-top: 14px; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  padding: 72px 0 0;
  color: rgba(255,255,255,.7);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 14px;
}
.footer__logo span { color: var(--gold); }
.footer__desc { font-size: .88rem; line-height: 1.7; margin-bottom: 24px; }
.footer__col-title {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .18em;
  transition: color .15s, text-decoration-color .15s;
}
.footer__link:hover { color: var(--gold); text-decoration-color: rgba(255,255,255,.32); }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  margin-bottom: 12px;
}
.footer__contact-item svg { flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; stroke: var(--gold); fill: none; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { color: rgba(255,255,255,.4); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; transition: color .15s, text-decoration-color .15s; }
.footer__bottom-links a:hover { color: var(--gold); text-decoration-color: rgba(255,255,255,.32); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet wide (≤1024px) --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-3 { gap: 20px; }
  .grid-2 { gap: 24px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .two-col { gap: 48px; }
  .story-points { gap: 28px; }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  :root { --section-py: 56px; --section-py-sm: 40px; }

  /* === Navbar === */
  .navbar__menu, .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }
  .navbar__menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,255,255,.1);
    gap: 4px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .navbar__item { width: 100%; }
  .navbar__link { width: 100%; font-size: 1rem; padding: 12px 14px; }
  .navbar__menu.open .navbar__cta {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 8px 0 4px;
  }
  /* Navbar con fondo cuando menú está abierto (evita navbar transparente encima) */
  .navbar--menu-open {
    background: var(--navy-dark) !important;
    box-shadow: none !important;
  }
  /* Submenú oculto por defecto — solo se expande al tocar el ítem padre */
  .navbar__menu.open .dropdown { display: none; }
  .navbar__item.menu-expanded .dropdown {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(var(--gold-rgb), .45);
    background: transparent;
    padding: 4px 0 4px 8px;
    min-width: 0;
    margin: 4px 0 8px;
  }
  .navbar__item.menu-expanded .dropdown__link { color: rgba(255,255,255,.7); font-size: .92rem; padding: 9px 14px; }
  .navbar__item.menu-expanded .dropdown__link:hover { background: rgba(255,255,255,.08); color: var(--white); }
  /* Chevron en el ítem que tiene submenú */
  .navbar__link[data-page-link="services"]::after {
    content: '›';
    float: right;
    font-size: 1.1rem;
    line-height: 1;
    opacity: .65;
    transition: transform .2s;
  }
  .navbar__item.menu-expanded .navbar__link[data-page-link="services"]::after {
    transform: rotate(90deg);
  }
  .lang-switcher { width: 100%; justify-content: center; }
  .navbar__item--locale { margin-left: 0; }

  /* === Grids === */
  .grid-2, .grid-3, .steps, .stats, .two-col { grid-template-columns: 1fr; }
  .grid-2 { gap: 16px; }
  .grid-3 { gap: 16px; }
  .grid-4 { gap: 16px; }
  .comparison-grid, .story-points { grid-template-columns: 1fr; }
  .story-points { gap: 20px; margin-top: 32px; }

  /* === Two-col === */
  .two-col { gap: 28px; }
  .two-col--reversed .two-col__content { order: unset; }
  .two-col--reversed .two-col__visual { order: unset; }
  /* Imagen siempre debajo del texto en mobile */
  .two-col .two-col__content { order: 1; }
  .two-col .two-col__visual { order: 2; }
  /* Foto: ratio horizontal, altura controlada */
  .editorial-photo { aspect-ratio: 4/3; max-height: 320px; }
  .editorial-photo--portrait { aspect-ratio: 4/3; max-height: 320px; }

  /* === Hero === */
  .hero { padding-top: calc(72px + 48px); padding-bottom: 48px; }
  .hero__title { font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.2; }
  .hero__subtitle { font-size: 1rem; margin-bottom: 28px; max-width: 100%; }
  .hero__actions { flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Hero fullbleed — overlay uniforme en mobile para máxima legibilidad */
  .hero--fullbleed {
    min-height: 85vh;
    min-height: 85svh;
    background-image:
      linear-gradient(to bottom, rgba(var(--navy-dark-rgb),.95) 0%, rgba(var(--navy-dark-rgb),.88) 100%),
      url('../img/hero-lady-justice.jpg');
    background-position: center center;
    align-items: flex-start;
    padding-top: calc(72px + 48px);
    padding-bottom: 56px;
  }
  .hero--fullbleed .hero__body { max-width: 100%; }

  /* === Secciones === */
  .section__header { margin-bottom: 36px; }
  .section__subtitle { font-size: 1rem; margin-bottom: 36px; }

  /* === Cards === */
  .card { padding: 22px; }
  .card--xl { padding: 26px; }

  /* === Steps === */
  .steps { gap: 14px; }
  .step { padding: 22px 18px; }

  /* === Highlight (banda navy) === */
  .highlight { flex-direction: column; padding: 28px 24px; gap: 24px; }
  .highlight__content { flex: 1 1 auto; }

  /* === Buttons === */
  .btn--lg { padding: 14px 24px; font-size: .97rem; min-height: 52px; }

  /* === CTA === */
  .cta-section { padding: 56px 0; }
  .cta-section__sub { font-size: 1rem; }

  /* === Footer === */
  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer__bottom { flex-wrap: wrap; gap: 12px; }

  /* === Formulario — iOS zoom prevention (font-size mín. 16px en inputs) === */
  .form__input,
  .form__select,
  .form__textarea { font-size: 1rem; padding: 14px 16px; }

  /* === WhatsApp flotante === */
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }

  /* === WA Modal === */
  .wa-modal { padding: 16px; }
  .wa-modal__dialog { padding: 24px 20px; border-radius: 20px; max-height: 88vh; overflow-y: auto; }
  .wa-modal__areas { grid-template-columns: 1fr; }
}

/* --- Mobile pequeño (≤480px) --- */
@media (max-width: 480px) {
  :root { --section-py: 48px; --section-py-sm: 32px; }

  .container { padding: 0 16px; }

  /* === Tipografía === */
  .section__title { font-size: clamp(1.45rem, 6.5vw, 1.8rem); }
  .section__header { margin-bottom: 26px; }
  .section__subtitle { font-size: .97rem; }

  /* === Hero === */
  .hero--fullbleed {
    min-height: 90vh;
    min-height: 90svh;
    padding-top: calc(72px + 36px);
    padding-bottom: 48px;
  }
  .hero__title { font-size: clamp(1.45rem, 7.5vw, 2rem); }
  .hero__eyebrow { font-size: .7rem; margin-bottom: 12px; }
  .hero__subtitle { font-size: .95rem; }

  /* === Cards === */
  .card { padding: 18px; }
  .card--xl { padding: 20px; }
  .card__icon { width: 40px; height: 40px; margin-bottom: 14px; }

  /* === Steps === */
  .step { padding: 18px 14px; }
  .step__num { font-size: 2.2rem; margin-bottom: 12px; }

  /* === Stats === */
  .stats { gap: 20px; }
  .stat__number { font-size: 2rem; }

  /* === Highlight === */
  .highlight { padding: 20px 18px; }
  .highlight__title { font-size: 1.2rem; }

  /* === CTA === */
  .cta-section { padding: 44px 0; }
  .cta-section__title { font-size: clamp(1.4rem, 6.5vw, 1.9rem); }
  .cta-section__sub { font-size: .95rem; }

  /* === Footer === */
  .footer { padding-top: 44px; }
  .footer__grid { gap: 24px; padding-bottom: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__bottom-links { flex-wrap: wrap; gap: 12px; }

  /* === Foto editorial === */
  .editorial-photo { max-height: 260px; }
  .editorial-photo--portrait { max-height: 280px; }

  /* === Story points === */
  .story-point { gap: 14px; }
  .story-point__number { font-size: 2.6rem; }

  /* === Pills === */
  .pills { gap: 8px; margin-top: 18px; }
  .pill { font-size: .76rem; padding: 5px 12px; }

  /* === FAQ === */
  .faq__question { padding: 16px 18px; font-size: .93rem; }
  .faq__answer { padding: 0 18px; }
  .faq__item.open .faq__answer { padding: 0 18px 16px; }

  /* === WA Modal === */
  .wa-modal__area-btn { min-height: 52px; font-size: .92rem; }
  .wa-modal__dialog { padding: 20px 16px; }

  /* === Utilitarios === */
  .divider { margin: 18px 0; }
  .two-col { gap: 22px; }
}

/* ============================================================
   ANIMACIONES — Scroll Reveal + Hero Entrance
   ============================================================ */

/* --- Keyframes --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes heroLineGrow {
  from { width: 0; }
  to   { width: 60px; }
}

/* --- Hero entrance --- */
.hero--animate .hero__eyebrow {
  animation: fadeInDown .55s ease both;
  animation-delay: .1s;
}
.hero--animate .hero__title {
  animation: fadeInUp .65s ease both;
  animation-delay: .22s;
}
.hero--animate .hero__subtitle {
  animation: fadeInUp .65s ease both;
  animation-delay: .38s;
}
.hero--animate .hero__actions {
  animation: fadeInUp .65s ease both;
  animation-delay: .52s;
}
/* Línea decorativa bajo el eyebrow del hero */
.hero__eyebrow::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--gold);
  opacity: .55;
  margin-top: 8px;
  width: 0;
  transition: width .45s ease .8s;
}
.hero--animate .hero__eyebrow::after {
  width: 48px;
}

/* --- Scroll-reveal: estado inicial (invisible) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal--left  { transform: translateX(-24px); }
.reveal--right { transform: translateX(24px); }
.reveal--scale { transform: scale(.94); }

/* Delays para stagger */
.reveal--d1  { transition-delay: .08s; }
.reveal--d2  { transition-delay: .16s; }
.reveal--d3  { transition-delay: .24s; }
.reveal--d4  { transition-delay: .32s; }
.reveal--d5  { transition-delay: .40s; }
.reveal--d6  { transition-delay: .48s; }

/* Estado visible */
.reveal.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* --- Línea decorativa en section__eyebrow --- */
.section__eyebrow {
  position: relative;
  display: inline-block;
}
.section__eyebrow::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 0;
  height: 2px;
  background: var(--gold);
  opacity: .7;
  margin-right: 0;
  transition: width .4s ease, margin-right .4s ease;
}
.is-visible .section__eyebrow::before,
.reveal.is-visible .section__eyebrow::before,
.section__header.is-visible .section__eyebrow::before {
  width: 24px;
  margin-right: 10px;
}

/* --- Respeto por preferencias de movimiento reducido --- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero--animate .hero__eyebrow,
  .hero--animate .hero__title,
  .hero--animate .hero__subtitle,
  .hero--animate .hero__actions {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
