/* =================================================================
   Wright Consulting — Web 2026
   Design system basado en el Style Guide de Figma
   ================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Quling';
  src: url('../assets/fonts/Quling.woff2') format('woff2'),
       url('../assets/fonts/Quling.woff') format('woff'),
       url('../assets/fonts/Quling.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --teal:        #223D44;   /* Primary / Dark Teal */
  --teal-deep:   #1b3137;   /* deeper shade for gradients */
  --teal-soft:   #2c4c54;   /* card / hover on dark */
  --input-dark:  #385057;   /* Input BG */
  --beige:       #E6DFCE;   /* Warm Beige */
  --cream:       #F1EDE4;   /* Light Cream */
  --gold:        #C1A688;   /* Accent */
  --gold-soft:   #d3bda4;
  --white:       #ffffff;

  --text-dark:   #223D44;
  --text-dark-80: rgba(34, 61, 68, .80);
  --text-dark-60: rgba(34, 61, 68, .60);
  --text-light:  #F1EDE4;
  --text-light-70: rgba(241, 237, 228, .72);
  --line-dark:   rgba(34, 61, 68, .12);
  --line-light:  rgba(230, 223, 206, .18);

  /* Type */
  --font-display: 'Quling', 'Fraunces', Georgia, serif;
  --font-sans: 'Zalando Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale (Figma) */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: 1rem;  --sp-4: 1.5rem;
  --sp-5: 2rem;    --sp-6: 3rem;   --sp-7: 5rem;  --sp-8: 7.5rem;

  /* Layout */
  --container: 1296px;
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shadow-soft: 0 18px 50px -20px rgba(27, 49, 55, .35);
  --shadow-card: 0 12px 40px -24px rgba(27, 49, 55, .45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Lenis (smooth scroll) — si carga, él maneja el scroll; si no, queda el smooth nativo */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--teal); }

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .005em;
}
/* Títulos de sección en Zalando Sans (legibles) — Quling queda solo para el hero */
.h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.9vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -.015em;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  color: var(--text-dark-80);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold);
  --fg: var(--teal);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1rem 1.9rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--fg);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(193, 166, 136, .65); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(-1px); }
.btn--ghost {
  --bg: transparent; --fg: var(--cream);
  border: 1px solid var(--line-light);
}
.btn--ghost:hover { background: rgba(241,237,228,.06); box-shadow: none; }
.btn--dark { --bg: var(--teal); --fg: var(--cream); }

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: clamp(.7rem, 1.4vw, 1.2rem);
  transition: transform .5s var(--ease), padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
/* Se esconde al bajar, reaparece al subir */
.site-header.hide { transform: translateY(-135%); }
/* Al hacer scroll, la barra completa toma fondo con blur */
.site-header.scrolled {
  padding-top: 0;
  background: rgba(27, 49, 55, .85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 14px 40px -26px rgba(0,0,0,.6);
}
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  transition: padding .4s var(--ease);
}
.brand { justify-self: start; }
.brand img { height: 26px; width: auto; }
.header__cta { justify-self: end; }

/* Nav = cápsula flotante centrada, independiente de logo y CTA */
.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
  padding: .72rem 1.7rem;
  border-radius: var(--radius-pill);
  background: rgba(34, 61, 68, .5);
  border: 1px solid rgba(230, 223, 206, .14);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
/* Cuando la barra ya tiene fondo, la cápsula se vuelve plana */
.site-header.scrolled .nav {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav__link {
  position: relative;
  font-size: .92rem;
  font-weight: 400;
  color: var(--text-light-70);
  padding: .35rem 0;
  transition: color .3s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--cream); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--cream); }

.header__cta { display: flex; align-items: center; gap: .6rem; }
.header__cta .btn { padding: .7rem 1.4rem; }

/* Burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.8px;
  background: var(--teal);
  border-radius: 2px;
  transform: translate(-50%,-50%);
  transition: transform .4s var(--ease), opacity .3s ease;
}
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
body.menu-open .burger span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translate(-50%,-50%) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
  padding: 7rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .6s var(--ease), opacity .4s ease, visibility .6s;
}
body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: .4rem; margin-top: 1rem; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.8rem);
  color: var(--cream);
  padding: .35rem 0;
  border-bottom: 1px solid var(--line-light);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
body.menu-open .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu__link:hover { color: var(--gold); }
.mobile-menu__foot { color: var(--text-light-70); font-size: .9rem; display: flex; flex-direction: column; gap: .4rem; }
.mobile-menu__foot a { color: var(--gold); }
.mobile-menu .btn { align-self: flex-start; margin-top: 1.5rem; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(56,80,87,.55) 0%, transparent 55%),
    linear-gradient(165deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--cream);
  padding-top: clamp(8.5rem, 14vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero::after {  /* subtle grain */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__title {
  font-size: clamp(2.7rem, 6.2vw, 4.6rem);
  margin-bottom: 1.6rem;
}
.hero__title .accent { color: var(--gold); font-style: italic; }
.hero__sub { max-width: 30em; color: var(--text-light-70); font-size: clamp(1.02rem, 1.5vw, 1.18rem); }

/* email form */
.email-form {
  display: flex;
  margin-top: 2.4rem;
  max-width: 480px;
  background: var(--input-dark);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  padding: .42rem .42rem .42rem .35rem;
  gap: .4rem;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.email-form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(193,166,136,.16); }
.email-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream);
  padding: .7rem 1.1rem;
  font-size: .98rem;
  min-width: 0;
}
.email-form input::placeholder { color: rgba(241,237,228,.55); }
.email-form .btn { white-space: nowrap; padding: .85rem 1.5rem; }

.hero__media { position: relative; }
.hero__img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
}
.hero__badge {
  position: absolute;
  left: -1.4rem; bottom: 2.2rem;
  background: var(--cream);
  color: var(--teal);
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: .55rem;
  max-width: 235px;
}
.hero__badge strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; display: inline-flex; align-items: center; }
.hero__badge .plus { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; color: var(--gold); margin-left: 3px; }
.hero__badge > span { font-size: .82rem; color: var(--text-dark-60); line-height: 1.25; }

/* =================================================================
   IDENTIFICATION (escenarios)
   ================================================================= */
.identify { background: var(--cream); }
.identify__head { max-width: 50rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.identify__head .h2 { margin-top: 1.1rem; }

.cards { display: grid; gap: 1.4rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.scenario {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 2.2rem 2rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.scenario:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); border-color: rgba(193,166,136,.4); }
.icon-chip {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--cream);
  border: 1px solid var(--line-dark);
  margin-bottom: 1.6rem;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.icon-chip img { width: 30px; height: 30px; }
.scenario:hover .icon-chip { transform: scale(1.06) rotate(-3deg); background: var(--beige); }
.scenario h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; margin-bottom: .8rem; }
.scenario p { color: var(--text-dark-80); font-size: 1rem; }

/* =================================================================
   STRATEGY (Dirección estratégica + checklist)
   ================================================================= */
.strategy { background: var(--beige); }
.strategy__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.strategy__media { position: relative; }
.strategy__img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.strategy__head .h2 { margin: 1.1rem 0 1rem; }
.strategy__head .lead { margin-bottom: 2.4rem; max-width: 34em; }

.check-item { display: flex; gap: 1.1rem; padding: 1.1rem 0; border-top: 1px solid rgba(34,61,68,.14); }
.check-item:first-of-type { border-top: none; }
.check-bullet {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  display: grid; place-items: center;
}
.check-bullet svg { width: 20px; height: 20px; stroke: var(--gold); }
.check-item h4 { font-size: 1.12rem; font-weight: 600; margin-bottom: .3rem; }
.check-item p { color: var(--text-dark-80); font-size: .98rem; }

/* =================================================================
   HOW WE HELP (servicios)
   ================================================================= */
.help { background: var(--cream); overflow: hidden; position: relative; }
.help__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}
.help__intro { position: relative; }
.help__intro .h2 { margin-top: 1.1rem; }
.help__intro p { margin-top: 1.2rem; color: var(--text-dark-80); max-width: 26em; }
/* Isotipo "W" como marca de agua contenida en la sección (img tintada, sin CORS) */
.help__mark {
  position: absolute;
  left: -3%;
  bottom: -8%;
  width: clamp(260px, 38%, 600px);
  height: auto;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.service {
  background: var(--teal);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: 2.2rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 100% 0%, rgba(56,80,87,.9), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -28px rgba(27,49,55,.8); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service .icon-chip { background: var(--teal-soft); border-color: var(--line-light); }
.service:hover .icon-chip { background: var(--input-dark); }
.service h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: .8rem; }
.service p { color: var(--text-light-70); font-size: .97rem; }

/* =================================================================
   ABOUT
   ================================================================= */
.about {
  position: relative;
  text-align: center;
  color: var(--text-light);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(56,80,87,.45), transparent 60%),
    linear-gradient(165deg, var(--teal) 0%, var(--teal-deep) 100%);
  overflow: hidden;
}
.about::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none;
}
.about__inner { position: relative; z-index: 1; max-width: 56rem; margin-inline: auto; }
.about .h2 { margin: 1.2rem 0 1.6rem; }
.about p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--text-light-70); font-weight: 300; }

/* =================================================================
   LEADERSHIP
   ================================================================= */
.leader { background: var(--beige); }
.leader__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.leader__media { position: relative; }
.leader__img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.leader__stat {
  position: absolute;
  right: -1.2rem; top: 2rem;
  background: var(--teal);
  color: var(--cream);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.leader__stat strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; display: block; }
.leader__stat span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.leader__head .h2 { margin: 1.1rem 0 1.3rem; }
.leader__head p { color: var(--text-dark-80); margin-bottom: 1rem; max-width: 34em; }
.leader__list { margin-top: 1.8rem; display: grid; gap: 1rem; }
.leader__list li { display: flex; gap: .9rem; align-items: flex-start; color: var(--text-dark-80); }
.leader__list svg { flex: none; width: 22px; height: 22px; stroke: var(--gold); margin-top: 2px; }

/* =================================================================
   CONTACT
   ================================================================= */
.contact {
  position: relative;
  background:
    linear-gradient(165deg, rgba(34,61,68,.93) 0%, rgba(27,49,55,.96) 100%),
    url('../assets/img/contact-bg.jpg') center center / cover fixed;
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.contact::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none;
}
.contact__inner { position: relative; max-width: 46rem; margin-inline: auto; }
.contact .h2 { margin: 1.2rem 0 1.2rem; }
.contact p { color: var(--text-light-70); font-size: 1.12rem; max-width: 34em; margin-inline: auto; }
.contact .email-form { margin-inline: auto; margin-top: 2.6rem; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: var(--teal-deep); color: var(--text-light-70); padding-block: clamp(3rem, 5vw, 4.5rem); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
}
.footer__brand img { height: 28px; margin-bottom: 1.2rem; }
.footer__brand p { max-width: 26em; font-size: .96rem; }
.footer__col h5 { color: var(--cream); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__col a, .footer__col li { display: block; padding: .3rem 0; font-size: .96rem; transition: color .3s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { padding-top: 1.6rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; }
.footer__credit { color: rgba(241, 237, 228, .5); }
.footer__credit a { color: rgba(241, 237, 228, .72); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.footer__credit a:hover { color: var(--gold); border-color: var(--gold); }

/* =================================================================
   REVEAL ANIMATIONS
   ================================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* =================================================================
   RESPONSIVE — TABLET
   ================================================================= */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 2rem; }
  .strategy__grid, .leader__grid { grid-template-columns: 1fr 1fr; }
  /* En tablet "Cómo ayudamos" se apila: intro arriba, servicios full-width */
  .help__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .help__intro { display: flex; flex-direction: column; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr; }
}

/* =================================================================
   RESPONSIVE — MOBILE (layouts dedicados, no reutilizar desktop)
   ================================================================= */
@media (max-width: 760px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: .55rem .9rem .55rem 1.3rem; }
  .brand img { height: 23px; }

  .section { padding-block: clamp(3.5rem, 12vw, 5rem); }

  /* Hero -> columna, foto de Sonia primero (lead visual) */
  .hero { padding-top: 6rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.2rem); margin-bottom: 1.2rem; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; margin-bottom: .6rem; }
  .hero__img { aspect-ratio: 4 / 3.7; object-position: top center; }
  .hero__badge { left: .7rem; bottom: -1.1rem; }
  .hero__sub { font-size: 1.02rem; }
  .email-form { flex-direction: column; background: transparent; border: none; padding: 0; gap: .7rem; max-width: 100%; }
  .email-form input { background: var(--input-dark); border: 1px solid var(--line-light); border-radius: var(--radius-pill); padding: 1rem 1.3rem; }
  .email-form .btn { width: 100%; padding: 1rem; }

  /* Cards -> una columna */
  .cards--3, .services { grid-template-columns: 1fr; }

  /* Strategy / leader / help -> apilados, imagen arriba */
  .strategy__grid, .help__grid, .leader__grid { grid-template-columns: 1fr; gap: 2rem; }
  .strategy__media, .leader__media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .strategy__img, .leader__img { aspect-ratio: 4 / 3.4; }
  .help__intro p { max-width: none; }
  .help__mark { width: 64%; bottom: -4%; opacity: .85; }
  /* background-attachment: fixed es inestable en móvil */
  .contact { background-attachment: scroll; }

  .leader__stat { right: .6rem; top: auto; bottom: -1.2rem; padding: .9rem 1.1rem; }
  .leader__stat strong { font-size: 1.9rem; }

  .scenario, .service { padding: 1.8rem 1.5rem; }
}

@media (max-width: 420px) {
  :root { --gutter: 1.15rem; }
  .hero__title { font-size: clamp(2.1rem, 12vw, 2.8rem); }
}

/* Fix: las imágenes con atributos width/height deben tomar la altura del
   aspect-ratio del CSS (no la altura intrínseca del atributo) */
.hero__img,
.strategy__img,
.leader__img { height: auto; }

/* Mensaje de estado del formulario */
.form-status { margin-top: .9rem; font-size: .92rem; line-height: 1.4; }
.form-status.is-ok { color: #c2e5cc; }
.form-status.is-err { color: #f0c4b6; }
