/* ==========================================================================
   MC Energía · Estilos
   --------------------------------------------------------------------------
   1. Variables (colores, tipografías, radios)  ← cambia aquí la identidad
   2. Base y utilidades
   3. Botones y enlaces
   4. Header
   5. Hero
   6. Cómo funciona
   7. Lee tu factura
   8. Qué hacemos (tarjetas)
   9. Por qué nosotros
   10. Nosotros
   11. Contacto y formulario
   12. Footer, WhatsApp, cookies
   13. Animaciones de entrada y movimiento reducido
   ========================================================================== */

/* 1. VARIABLES ------------------------------------------------------------ */
:root {
  /* Marca (sacados del logo) */
  --navy: #0B3D8F;
  --navy-900: #061A3D;     /* secciones oscuras */
  --navy-800: #0A2656;
  --ink: #0E1B33;          /* texto principal */
  --muted: #4A5878;        /* texto secundario (contraste AA sobre blanco) */
  --green: #2E8B3A;
  --green-700: #1F7A2E;    /* verde para TEXTO sobre blanco (AA) */
  --lime: #8CC63F;
  --orange: #F5A524;
  --blue: #2F7DE1;
  --red: #D93A3A;

  --grad-green: linear-gradient(135deg, #8CC63F 0%, #4DB04A 100%);
  --grad-text: linear-gradient(100deg, #1F7A2E 0%, #3E9F3A 60%, #6BAF2E 100%);

  /* Superficies */
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --line: #E3E9F2;

  /* Tipografía */
  --font-head: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Forma */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(11, 61, 143, .06), 0 2px 8px rgba(11, 61, 143, .05);
  --shadow-md: 0 10px 30px -10px rgba(11, 61, 143, .18), 0 2px 6px rgba(11, 61, 143, .06);
  --shadow-lg: 0 30px 60px -20px rgba(6, 26, 61, .28);

  --header-h: 84px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s; }
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-size: .8125rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green-700);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-green); }
.eyebrow .dot { display: none; }
.eyebrow--light { color: var(--lime); }
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); max-width: 18ch; }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

section { position: relative; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head__lead { color: var(--muted); max-width: 56ch; font-size: 1.125rem; }
.section-head--light .h2 { color: #fff; }

/* 3. BOTONES -------------------------------------------------------------- */
.btn {
  --pad-y: .85em; --pad-x: 1.4em;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.1;
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn--sm { font-size: .9rem; --pad-y: .65em; --pad-x: 1.15em; }
.btn--lg { font-size: 1.0625rem; --pad-y: 1em; --pad-x: 1.6em; }
.btn--block { width: 100%; }
/* Texto azul muy oscuro sobre verde claro: contraste AA garantizado */
.btn--primary { background: var(--grad-green); color: #061F4A; box-shadow: 0 8px 20px -8px rgba(46, 139, 58, .55); }
.btn--primary:hover { box-shadow: 0 14px 30px -10px rgba(46, 139, 58, .7); }
.btn--ghost { background: rgba(255,255,255,.6); color: var(--navy); border-color: rgba(11, 61, 143, .22); }
.btn--ghost:hover { border-color: var(--navy); background: #fff; }
.btn__icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn__icon--lead { width: 1.15em; height: 1.15em; }
.btn:hover .btn__icon--lead { transform: none; }

.link-arrow { display: inline-flex; gap: .4em; font-family: var(--font-head); font-weight: 600; color: var(--green-700); text-decoration: none; margin-top: auto; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }

/* 4. HEADER (efecto cristal) ---------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 12px var(--gutter);
  transition: padding .35s var(--ease);
}
.site-header.is-scrolled { padding-block: 8px; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 12px 10px 20px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 34px -22px rgba(6, 26, 61, .35);
  transition: box-shadow .35s var(--ease);
}
.site-header.is-scrolled .site-header__inner { box-shadow: 0 16px 40px -22px rgba(6, 26, 61, .45); }
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; gap: 16px; }
.nav__link {
  position: relative; font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0;
}
/* Subrayado animado */
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad-green); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.8); box-shadow: var(--shadow-sm); cursor: pointer; position: relative; }
.burger__line { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .35s var(--ease); }
.burger__line { top: 18px; }
.burger__line + .burger__line { top: 25px; }
.burger[aria-expanded="true"] .burger__line { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line + .burger__line { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; z-index: 2; }
  /* El backdrop-filter de la tarjeta la convierte en "containing block" y el menú
     (position: fixed) se quedaba dentro de ella. En móvil se quita. */
  .site-header__inner { background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 8px 8px 8px 14px; }
  .brand img { height: 36px; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 36px;
    background: rgba(247, 249, 252, .98); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 18px; }
  .nav__link { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--navy); }
  body.menu-open { overflow: hidden; }
}

/* 5. HERO ----------------------------------------------------------------- */
.hero { display: flex; align-items: center; padding: calc(var(--header-h) + clamp(16px, 3vw, 48px)) 0 clamp(32px, 4vw, 56px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(140, 198, 63, .16), transparent 70%),
    radial-gradient(50% 50% at 95% 80%, rgba(245, 165, 36, .12), transparent 70%),
    radial-gradient(70% 60% at 10% 10%, rgba(47, 125, 225, .08), transparent 70%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.hero__media { position: relative; }
.hero__title { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem); font-weight: 700; letter-spacing: -.035em; max-width: 15ch; margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 40ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.hero__actions .btn--lg { --pad-x: 1.3em; }

/* Foto del hero */
.hero__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: 50% 42%; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); background: #EAF2FB;
}

/* Tres ventajas bajo los botones del hero */
.hero__features { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 0; }
.hero__features li {
  display: grid; justify-items: center; gap: 8px; padding: 0 16px;
  text-align: center; font-size: .95rem; line-height: 1.35; color: var(--muted);
}
.hero__features li + li { border-left: 1px solid var(--line); }
.hero__features svg {
  width: 48px; height: 48px; fill: none; stroke: var(--navy); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Banda "¿Cómo prefieres empezar?" */
/* Tres formas de empezar, dentro del hero y sobre el pliegue */
.hero__start { margin-top: 24px; }
.hero__start .start__title { margin: 0 0 8px; }
.hero__start .start__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 560px; }
.hero__start .start__opt { padding: 10px; gap: 8px; border-radius: 14px; }
.hero__start .start__ico { width: 28px; height: 28px; border-radius: 8px; }
.hero__start .start__label { font-size: .84rem; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { order: 1; }
  .hero__media { order: 2; width: 100%; max-width: 460px; margin-inline: auto; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .hero__features { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .hero__features li { grid-template-columns: 30px 1fr; justify-items: start; align-items: center; gap: 14px; padding: 14px 0; text-align: left; }
  .hero__features li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) { .hero__features br { display: none; } }
@media (max-width: 620px) {
  .hero__start .start__options { grid-template-columns: 1fr; }
}

/* 6. CÓMO FUNCIONA (pasos + conversación) --------------------------------- */
.how { padding: clamp(80px, 10vw, 140px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.how__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.steps { display: grid; gap: 8px; margin: 28px 0 28px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 16px; border-radius: var(--r-md); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; color: #061F4A; background: var(--grad-green); }
.step__title { margin: 0 0 4px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Conversación de ejemplo */
.how__visual { max-width: 460px; margin-inline: auto; width: 100%; }
.chat { border-radius: var(--r-xl); background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--navy-900); color: #fff; }
.chat__avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.chat__who { display: grid; font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
.chat__who small { font-size: .74rem; font-weight: 400; color: rgba(255, 255, 255, .7); }
.chat__body { display: grid; gap: 10px; padding: 18px; }
.chat__row { display: flex; }
.chat__row--out { justify-content: flex-end; }
.chat__bubble { max-width: 86%; padding: 11px 14px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .92rem; line-height: 1.45;
  opacity: 0; transform: translateY(12px); }
.chat__bubble strong { font-family: var(--font-head); }
.chat__bubble--file { display: flex; align-items: center; gap: 12px; }
.chat__fileicon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #EAF0FA; color: var(--navy); }
.chat__fileicon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat__filedata { display: grid; line-height: 1.3; }
.chat__filedata small { color: var(--muted); font-size: .78rem; }
.chat__bubble--save { background: #EAF6E3; border-color: rgba(62, 154, 62, .3); color: var(--green-700); }
.chat__note { margin: 12px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }

/* Los mensajes van llegando cuando la sección entra en pantalla */
.how__visual.is-visible .chat__bubble { animation: bubbleIn .55s var(--ease) forwards; }
.chat.is-visible .chat__row:nth-child(1) .chat__bubble { animation-delay: .4s; }
.chat.is-visible .chat__row:nth-child(2) .chat__bubble { animation-delay: 1.3s; }
.chat.is-visible .chat__row:nth-child(3) .chat__bubble { animation-delay: 2.3s; }
.chat.is-visible .chat__row:nth-child(4) .chat__bubble { animation-delay: 3.2s; }
@keyframes bubbleIn { to { opacity: 1; transform: none; } }
html:not(.js) .chat__bubble { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .how__grid { grid-template-columns: 1fr; }
  .how__visual { order: -1; }
}

/* 7. LEE TU FACTURA (desglose en barras) ---------------------------------- */
.read { padding: clamp(80px, 10vw, 140px) 0; }
.bd { max-width: 860px; margin-inline: auto; padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.bd__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: .92rem; color: var(--muted); }
.bd__list { display: grid; gap: 4px; }
.bd__item { border-radius: 12px; }
.bd__item + .bd__item { border-top: 1px solid var(--line); }
.bd__row { display: grid; grid-template-columns: minmax(150px, 1.1fr) 2fr auto 20px;
  align-items: center; gap: 16px; width: 100%; padding: 14px 12px;
  background: none; border: 0; border-radius: 12px; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink); transition: background-color .25s; }
.bd__row:hover { background: var(--bg); }
.bd__name { font-weight: 600; }
.bd__bar { display: block; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bd__bar i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--navy); transition: width .9s var(--ease); }
.bd.is-visible .bd__bar i, html:not(.js) .bd__bar i { width: var(--w, 0%); }
.bd__bar--luz i { background: linear-gradient(90deg, #2F7DE1, #0B3D8F); }
.bd__bar--gas i { background: linear-gradient(90deg, #FDB813, #E86E12); }
.bd__bar--extra i { background: linear-gradient(90deg, #E86A5E, #B42318); }
.bd__bar--neutro i { background: #8C9AB4; }
.bd__amount { font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.bd__chev { width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg); transition: transform .3s var(--ease); }
.bd__row[aria-expanded="true"] { background: var(--bg); }
.bd__row[aria-expanded="true"] .bd__chev { transform: rotate(-135deg); }
.bd__detail { padding: 0 12px 16px; }
.bd__detail p { margin: 0; max-width: 68ch; color: var(--muted); font-size: .95rem; }
.bd__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--ink);
  font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.bd__total b { font-size: 1.25rem; }
.bd__note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }

.read__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; max-width: 860px;
  margin: 24px auto 0; padding: 22px 24px; border-radius: var(--r-lg); background: #EEF6E6; }
.read__cta p { margin: 0; flex: 1 1 240px; }

@media (max-width: 720px) {
  .bd__row { grid-template-columns: 1fr auto 20px; row-gap: 8px; }
  .bd__name { grid-column: 1 / -1; }
  .bd__bar { grid-column: 1; }
}

/* 9. POR QUÉ NOSOTROS ----------------------------------------------------- */
.why { padding: clamp(90px, 11vw, 150px) 0; background: var(--navy-900); color: rgba(255,255,255,.8); overflow: hidden; }
.why__wave { position: absolute; inset: auto -10% -40% -10%; height: 80%; opacity: .5; pointer-events: none;
  background: radial-gradient(50% 60% at 30% 50%, rgba(47, 125, 225, .35), transparent 70%), radial-gradient(40% 50% at 80% 40%, rgba(140, 198, 63, .18), transparent 70%); }
.why__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { padding: 28px 24px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); transition: background-color .4s, transform .4s var(--ease); }
.why__item:hover { background: rgba(255,255,255,.07); transform: translateY(-4px); }
.why__item h3 { color: #fff; font-size: 1.15rem; }
.why__item p { margin: 0; font-size: .98rem; }
.why__icon { width: 48px; height: 48px; margin-bottom: 20px; fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Trazo que se dibuja al entrar en pantalla */
@media (max-width: 960px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why__grid { grid-template-columns: 1fr; } }

/* 10. NOSOTROS ------------------------------------------------------------ */
.about { padding: clamp(80px, 10vw, 140px) 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__text > p { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.partners { display: grid; gap: 12px; margin-top: 28px; }
.partners li { display: flex; align-items: center; gap: 14px; }
.partners__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #E4EEFC; color: var(--navy); font-family: var(--font-head); font-weight: 700; }
.partners strong { display: block; color: var(--navy); }
.partners span:not(.partners__avatar) { font-size: .9rem; color: var(--muted); }
.about__photos { display: grid; grid-template-columns: 1fr; gap: 16px; }
.photo-slot { aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); display: grid; place-items: center; text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, #EEF2F8 0 12px, #E6ECF5 12px 24px); border: 2px dashed #C3CFE2; color: var(--muted); font-weight: 600; font-size: .9rem; }
.photo-slot--tall { aspect-ratio: 4 / 5; }
.about__photos picture, .about__photos img { border-radius: var(--r-lg); width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }

/* 11. CONTACTO ------------------------------------------------------------ */
.contact { padding: clamp(80px, 10vw, 140px) 0; background: var(--surface); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form { position: relative; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); background: var(--bg); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend, .field__label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; padding: 0; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #D5DEEB; border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 61, 143, .12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.field.is-valid input:not([type="checkbox"]):not([type="file"]) { border-color: var(--green);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%232E8B3A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center/18px no-repeat; }
.field__error { margin: 5px 0 0; min-height: 0; font-size: .85rem; color: #B42318; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1.5px solid #D5DEEB; background: #fff; font-weight: 500; color: var(--ink); transition: all .25s; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.file { position: relative; display: flex !important; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px dashed #B9C6DB; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 500 !important; color: var(--muted) !important; transition: border-color .2s; }
.file:hover { border-color: var(--navy); }
.file:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; flex: none; }
.file__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.field--check { margin-top: 6px; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; color: var(--ink) !important; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.form__legal { margin: 10px 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 12px 0 0; font-size: .92rem; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-error { color: #B42318; }

.btn__spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(6, 31, 74, .25); border-top-color: #061F4A; border-radius: 50%; animation: spin .8s linear infinite; }
.is-sending .btn__spinner { display: inline-block; }
.is-sending { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__success { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; border-radius: inherit; background: var(--bg); }
.form__success[hidden] { display: none; }
.form__success p { color: var(--muted); max-width: 36ch; }
.success-check { width: 84px; height: 84px; margin-bottom: 18px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { stroke: var(--lime); }
.success-check path { stroke: var(--green); }
.success-check { animation: checkPop .5s var(--ease) both; }
@keyframes checkPop { from { opacity: 0; transform: scale(.55); } }

.contact__info { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.info-list { display: grid; gap: 4px; padding: 10px; border-radius: var(--r-lg); background: var(--navy-900); color: rgba(255,255,255,.88); }
.info-list li { display: flex; gap: 14px; padding: 14px; border-radius: var(--r-md); }
.info-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-list a { color: #fff; }
.info-list__label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.map { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #EEF2F8; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; color: var(--muted); font-size: .92rem;
  background: radial-gradient(circle at 50% 45%, rgba(140, 198, 63, .18), transparent 40%), repeating-linear-gradient(0deg, transparent 0 34px, rgba(11, 61, 143, .05) 34px 35px), repeating-linear-gradient(90deg, transparent 0 34px, rgba(11, 61, 143, .05) 34px 35px); }
.map__placeholder p { margin: 0; }
.map__link { font-size: .88rem; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .contact__info { position: static; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* 12. FOOTER, WHATSAPP, COOKIES ------------------------------------------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding: 72px 0 28px; font-size: .95rem; }
.footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.footer a:hover { color: var(--lime); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { height: 50px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; }
.footer__title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.footer__list { display: grid; gap: 8px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: .85rem; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer .link-btn { color: rgba(255,255,255,.88); text-decoration: none; font-size: inherit; }
.footer .link-btn:hover { color: var(--lime); text-decoration: underline; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1F9E55; box-shadow: 0 12px 28px -8px rgba(31, 158, 85, .6); transition: transform .35s var(--ease); }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: #fff; }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1F9E55; animation: pulse 2.6s var(--ease) infinite; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px; padding: 20px 22px; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: .92rem; animation: slideUp .6s var(--ease); }
@media (max-width: 640px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 16px 16px 14px; font-size: .86rem; }
  .cookie p { margin-bottom: 12px; }
  .cookie__actions { gap: 8px; justify-content: stretch; }
  .cookie__actions .btn { flex: 1 1 0; --pad-x: .8em; }
}
.cookie p { margin: 0 0 14px; color: var(--ink); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } }
body.has-cookie-banner .wa { bottom: calc(var(--cookie-h, 0px) + 28px); }

.cookie-dialog { width: min(520px, calc(100% - 32px)); border: 0; border-radius: var(--r-lg); padding: 0; box-shadow: var(--shadow-lg); color: var(--ink); }
.cookie-dialog::backdrop { background: rgba(6, 26, 61, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cookie-dialog__inner { padding: 26px; display: grid; gap: 16px; }
.cookie-dialog h2 { font-size: 1.3rem; margin: 0; }
.switch { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; font-size: .92rem; color: var(--muted); cursor: pointer; position: relative; }
.switch strong { color: var(--navy); }
.switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch__ui { width: 44px; height: 26px; border-radius: 999px; background: #CBD5E3; position: relative; transition: background .25s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--green); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:disabled + .switch__ui { opacity: .6; }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--orange); outline-offset: 2px; }

/* 13. ENTRADAS Y MOVIMIENTO REDUCIDO -------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Páginas legales */
.legal { max-width: 780px; margin: 0 auto; padding: calc(var(--header-h) + 48px) var(--gutter) 80px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .92rem; margin-bottom: 1em; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.legal__back { display: inline-block; margin-bottom: 24px; }
.site-header--solid .site-header__inner { background: #fff; }

/* ==========================================================================
   14. NUEVAS SECCIONES (acción única, informe, asesor, casos, FAQ)
   ========================================================================== */

/* --- Selector de arranque del hero (3 opciones) --- */
.start { margin: 1.75rem 0 1.5rem; }
.start__title {
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.start__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 600px; }
.start__text { display: grid; gap: 1px; text-align: left; }
.start__opt {
  display: flex; flex-direction: row; align-items: center; gap: 16px;
  padding: 12px 16px; border-radius: var(--r-md); text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink);
  text-decoration: none; font: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s, background-color .25s;
}
.start__opt:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.start__ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: #EAF0FA; color: var(--navy); }
.start__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.start__label { font-family: var(--font-head); font-weight: 600; font-size: .97rem; color: var(--navy); line-height: 1.2; }
.start__hint { font-size: .8rem; color: var(--muted); }
.start__opt--primary { background: var(--navy-900); border-color: transparent; }
.start__opt--primary:hover { box-shadow: var(--shadow-lg); }
.start__opt--primary .start__label { color: #fff; }
.start__opt--primary .start__hint { color: rgba(255,255,255,.72); }
.start__opt--primary .start__ico { background: var(--grad-green); color: #061F4A; }
@media (max-width: 620px) { .start__options { grid-template-columns: 1fr; } }

/* --- Lista con checks --- */
.checklist { display: grid; gap: 12px; margin: 1.5rem 0 2rem; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23061F4A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* --- Etiqueta "Ejemplo" --- */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  background: #FFF1DA; color: #8A5200;
}
.badge--ghost { background: rgba(11, 61, 143, .08); color: var(--navy); }

/* --- Tu informe --- */
.report-section { padding: clamp(80px, 10vw, 140px) 0; }
.report__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.report__text .checklist { margin-bottom: 1.5rem; }
.report { max-width: 460px; margin-inline: auto; padding: 26px 26px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.report__head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.report__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.report__rows { display: grid; gap: 8px; margin: 0 0 16px; }
.report__rows > div { display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: .95rem; }
.report__rows dt { color: var(--muted); }
.report__rows dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.report__rows dd.is-bad { color: #B42318; }
.report__rows dd.is-good { color: var(--green-700); }
.report__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1.5px dashed var(--line); font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.report__total strong { font-size: 1.9rem; color: var(--green-700); }
.report__total small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.report__note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .report__grid { grid-template-columns: 1fr; } }

/* --- Equipo (quién te atiende) --- */
.team-section { padding: clamp(80px, 10vw, 140px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 660px; margin-inline: auto; }
.team__member { display: grid; gap: 12px; justify-items: center; padding: 22px 18px; text-align: center;
  border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.team__photo img { display: block; width: 128px; height: 128px; border-radius: 50%; object-fit: cover; }
.team__mail { font-size: .8rem; color: var(--green-700); text-decoration: none; overflow-wrap: anywhere; }
.team__mail:hover { text-decoration: underline; }
.team__info { display: grid; gap: 2px; }
.team__name { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); }
.team__role { font-size: .9rem; color: var(--muted); }
.team__note { max-width: 62ch; margin: 28px auto 0; text-align: center; font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr 1fr; gap: 14px; } .photo-slot--advisor { width: 108px; height: 108px; } }
@media (max-width: 400px) { .team { grid-template-columns: 1fr; } }

/* --- Casos --- */
.cases { padding: clamp(80px, 10vw, 140px) 0; }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.case .badge { align-self: flex-start; }
.case__who { margin: 0; font-size: .82rem; color: var(--muted); }
.case__title { margin: 0; font-size: 1.2rem; }
.case__amounts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 4px 0 0; font-size: .95rem; color: var(--muted); }
.case__amounts b { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.case__amounts .is-good b { color: var(--green-700); }
.case__arrow { color: var(--muted); }
.case__quote { margin: 6px 0 0; padding-left: 12px; border-left: 3px solid var(--lime); font-size: .95rem; color: var(--ink); }
.cases__note { margin: 22px 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .cases__grid { grid-template-columns: 1fr; } }

/* --- Preguntas frecuentes --- */
.faq { padding: clamp(80px, 10vw, 140px) 0; }
.faq__list { display: grid; gap: 10px; max-width: 820px; }
.faq details { padding: 4px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 12px; min-height: 58px; list-style: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--green-700); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* --- Ajustes de flujo entre secciones --- */
.about { border-top: 1px solid var(--line); }
.field[hidden] { display: none !important; }
.form__success-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }

/* --- Formulario progresivo (asistente por pasos) --- */
.wizard__top { margin-bottom: 18px; }
.wizard__step-label { margin: 0 0 8px; font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.wizard__bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.wizard__bar span { display: block; height: 100%; width: 100%; background: var(--grad-green);
  transform: scaleX(.2); transform-origin: left; transition: transform .45s var(--ease); }
.wizard__aside { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 10px 16px;
  border-radius: 999px; background: #EEF6E6; color: var(--green-700); font-size: .88rem; }
.wizard__aside img { flex: none; }
.wizard__aside strong { color: var(--navy); }

.wizard__step { display: none; }
.wizard__step.is-active { display: block; animation: swapIn .4s var(--ease); }
.wizard__q { margin: 0 0 6px; font-family: var(--font-head); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem);
  font-weight: 600; color: var(--navy); letter-spacing: -.02em; }
.wizard__help { margin: 0 0 16px; font-size: .95rem; color: var(--muted); }

.chips--big { gap: 10px; }
.chips--big .chip span { padding: 12px 22px; font-size: 1.02rem; }

.wizard .field input.input--big { font-size: 1.15rem; padding: 16px 18px; }

.wizard__nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.wizard__nav .btn { flex: 1 1 auto; }
.wizard__nav .btn--block { flex: 1 1 auto; width: auto; }
#wizard-back { flex: 0 0 auto; }
@media (max-width: 480px) { .wizard__nav { flex-direction: column-reverse; } .wizard__nav > * { width: 100%; } }

/* El atributo hidden debe ganar a los display de los componentes (.btn usa
   inline-flex y anulaba hidden, mostrando botones de más). */
[hidden] { display: none !important; }

/* --- Comparativa entre comercializadoras --- */
.section-head--center { text-align: center; }
.section-head--center .h2,
.section-head--center .section-head__lead { margin-inline: auto; }

.compare { padding: clamp(80px, 10vw, 140px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.compare__card { max-width: 920px; margin-inline: auto; padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-xl); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.compare__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.compare__meta p { margin: 0; font-size: .95rem; color: var(--muted); }
.compare__table { display: grid; gap: 6px; }
.compare__row { display: grid; grid-template-columns: 1.7fr 1fr 1fr .8fr; gap: 10px; align-items: center;
  padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1.5px solid transparent; font-size: .95rem; }
.compare__row--head { padding: 0 16px 6px; background: none; }
.compare__row--head span { font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.compare__row--current { background: #FDF1F1; }
.compare__row--best { background: #EAF6E3; border-color: rgba(62, 154, 62, .35); }
.compare__row > span:nth-child(2),
.compare__row > span:nth-child(3) { color: var(--muted); }
.compare__row b { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.compare__row--best b { color: var(--green-700); }
.compare__row--current b { color: #B42318; }
.compare__tag { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px;
  background: var(--grad-green); color: #061F4A; font-size: .66rem; font-style: normal; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; vertical-align: middle; }
.compare__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 20px; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.compare__save { margin: 0; font-family: var(--font-head); color: var(--navy); }
.compare__save strong { color: var(--green-700); }
.compare__note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }

@media (max-width: 760px) {
  .compare__row { grid-template-columns: 1fr; row-gap: 6px; padding: 16px; }
  .compare__row--head { display: none; }
  .compare__row > span:first-child { font-weight: 600; color: var(--navy); }
  .compare__row--current > span:first-child { color: #B42318; }
  .compare__row > span:nth-child(2),
  .compare__row > span:nth-child(3),
  .compare__row > span:nth-child(4) {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px; white-space: nowrap;
  }
  .compare__row > span:nth-child(2)::before { content: "Luz"; }
  .compare__row > span:nth-child(3)::before { content: "Gas"; }
  .compare__row > span:nth-child(4)::before { content: "Estimado"; }
  .compare__row b { font-size: 1rem; }
}

/* ==========================================================================
   15. ACCESIBILIDAD Y ESTADOS (repaso UI/UX)
   ========================================================================== */

/* Placeholder legible (por defecto suele quedar por debajo de AA) */
.field input::placeholder,
.field textarea::placeholder { color: #5A6A8A; opacity: 1; }

/* Estado deshabilitado explícito, para cualquier botón */
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

/* La nota del equipo y el aside del asistente pueden envolver */
.wizard__aside { flex-wrap: wrap; row-gap: 4px; }
.team__note { text-wrap: pretty; }

/* Enlaces de contacto del equipo: área táctil cómoda en móvil */
@media (max-width: 760px) {
  .team__mail { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; }
}

/* Foco visible también en los desplazables y en los summary */
.faq summary:focus-visible, .read-list summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

/* Evita que un nombre o un texto largo rompa la maquetación */
.team__name, .case__title, .compare__row > span:first-child { overflow-wrap: anywhere; }

/* Objetivos táctiles: mínimo cómodo (44px) en móvil */
.brand { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 960px) {
  .btn { min-height: 44px; }
}

@media (max-width: 760px) {
  .link-arrow { min-height: 44px; align-items: center; }
  .info-list a, .map__link, .footer__list a, .footer__legal a, .link-btn,
  .team__mail, .form__legal a, .check a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .footer__list { gap: 0; }
  .footer__legal { gap: 0 24px; }
  .form__legal a, .check a { min-height: 0; }
}

/* ==========================================================================
   16. FRASES DE MARCA (claims)
   ========================================================================== */
.claim {
  position: relative; margin: 0 0 14px; padding-left: 14px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--navy);
  border-left: 3px solid var(--lime);
}
.claim--light { color: #fff; }
.section-head--center .claim { border-left: 0; padding-left: 0; }
.footer__claim {
  margin: 0 0 12px; font-family: var(--font-head); font-weight: 600;
  font-size: 1.15rem; color: var(--lime);
}

/* Enlaces dentro de un párrafo: área táctil algo mayor sin romper el texto
   (WCAG 2.2 exime los enlaces en línea, pero así se acerca a los 24px). */
@media (max-width: 760px) {
  .cookie p a, .check a, .form__legal a { padding-block: 4px; }
}

/* Punto de recogida de paquetes */
.pickup { padding: clamp(40px, 5vw, 72px) 0; }
.pickup__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(16px, 3vw, 32px); padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.pickup__icon { display: grid; place-items: center; flex: none; width: 72px; height: 72px;
  border-radius: 20px; background: #EAF6E3; color: var(--green-700); }
.pickup__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pickup__text .eyebrow { margin-bottom: 8px; }
.pickup__text p { margin: 0; color: var(--muted); max-width: 52ch; }
.h2--sm { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.8rem); max-width: none; margin-bottom: 8px; }
@media (max-width: 800px) {
  .pickup__inner { grid-template-columns: 1fr; justify-items: start; }
  .pickup__icon { width: 56px; height: 56px; border-radius: 16px; }
}

/* Entrada del mensaje de éxito del formulario (antes lo hacía GSAP) */
.form__success.is-in > * { animation: fadeUp .5s var(--ease) both; }
.form__success.is-in > *:nth-child(2) { animation-delay: .08s; }
.form__success.is-in > *:nth-child(3) { animation-delay: .16s; }
.form__success.is-in > *:nth-child(4) { animation-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* Salida alternativa si el envío falla (por si el formulario no está operativo) */
.form__fallback { display: grid; gap: 12px; justify-items: center; margin-top: 16px; padding: 16px;
  border-radius: var(--r-md); background: #FFF7E8; border: 1px solid #F3DFB8; text-align: center; }
.form__fallback p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Foto real de la oficina en "Nosotros" */
.about__photo { display: grid; gap: 10px; margin: 0; }
.about__photo img { width: 100%; height: 100%; display: block; border-radius: var(--r-lg); object-fit: cover; object-position: 50% 62%; }
.about__photo img { aspect-ratio: 4 / 5; }
.about__photo figcaption { font-size: .82rem; color: var(--muted); }
.team__cta { margin: 24px 0 0; text-align: center; }
