/* ==========================================================================
   RBA-Ambiental · Hoja de estilos principal
   Sistema de diseño documentado en /DISENO.md

   01. Fuentes de respaldo          10. Banda de llamado a la acción
   02. Tokens                       11. Quiénes somos + ciclo
   03. Base y accesibilidad         12. Cifras
   04. Layout                       13. Formularios
   05. Íconos                       14. Contacto, resultado y error
   06. Botones                      15. Pie de página
   07. Encabezado y navegación      16. WhatsApp
   08. Hero y portadas internas     17. Movimiento
   09. Servicios                    18. Impresión y alto contraste
   ========================================================================== */

/* 01. Fuentes de respaldo con métricas ajustadas (reduce el CLS al cargar) */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

@font-face {
  font-family: "Oswald Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 500 700;
  size-adjust: 68%;
}

/* 02. Tokens */
:root {
  color-scheme: light;

  /* Marca — derivada del logo RBA Ambiental */
  --leaf-200: #d4ebb0;
  --leaf-300: #a1cd46;
  --leaf-400: #8dc747;
  --leaf-500: #6cb14f;
  --green-600: #16853e;
  --green-700: #0f6e33;
  --green-800: #0b5227;
  --forest-800: #0e3a1d;
  --forest-900: #0a2e17;
  --forest-950: #062611;

  /* Neutros */
  --ink-900: #102016;
  --ink-700: #33423a;
  --ink-500: #5b6b61;
  --ink-300: #9aa79f;
  --line: #dce5d8;
  --line-strong: #c5d3c0;
  --surface: #ffffff;
  --surface-2: #f4f8f2;
  --surface-3: #e8f2e3;
  --field-bg: #f2f5f1;
  --on-dark: rgb(255 255 255 / 0.82);
  --on-dark-muted: rgb(255 255 255 / 0.64);
  --on-dark-line: rgb(255 255 255 / 0.12);

  /* Semánticos */
  --danger-700: #b42318;
  --danger-200: #fecdca;
  --danger-50: #fef3f2;

  /* WhatsApp: tono con 3.1:1 contra blanco (WCAG 1.4.11) */
  --wa: #1da851;
  --wa-hover: #168a42;
  --wa-bright: #25d366; /* verde de marca WhatsApp: solo luz y halos, nunca fondo del ícono */
  --wa-mint: #8df5b3;

  /* Tipografía */
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Oswald", "Oswald Fallback", "Arial Narrow", Arial, sans-serif;
  --fs-300: 0.875rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-600: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-700: clamp(1.9rem, 1.4rem + 1.7vw, 2.9rem);
  --fs-800: clamp(2.6rem, 1.7rem + 3.6vw, 4.6rem);
  --fs-900: clamp(2.6rem, 1.2rem + 6.2vw, 6.6rem);

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(4rem, 2.8rem + 4.5vw, 7rem);

  /* Forma y profundidad */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(16 32 22 / 0.06), 0 1px 3px rgb(16 32 22 / 0.08);
  --shadow: 0 10px 24px -10px rgb(16 32 22 / 0.22), 0 2px 6px rgb(16 32 22 / 0.06);
  --shadow-lg: 0 34px 70px -28px rgb(6 38 17 / 0.4), 0 14px 28px -14px rgb(6 38 17 / 0.16);
  --ring: 0 0 0 4px rgb(22 133 62 / 0.2);

  /* Layout */
  --container: 1200px;
  --container-narrow: 1000px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --header-h: 76px;
  --overlap: clamp(4.5rem, 2.8rem + 6vw, 8.5rem);

  /* Movimiento */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 560ms;
}

/* 03. Base y accesibilidad */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--green-800);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 3px;
}

.hero :focus-visible,
.page-hero :focus-visible,
.cta-band__inner :focus-visible,
.stats :focus-visible,
.info-panel :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--leaf-300);
}

main:focus {
  outline: none;
}

::selection {
  background: var(--leaf-200);
  color: var(--forest-950);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: var(--space-4);
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--forest-950);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: var(--space-4);
  color: #fff;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  pointer-events: none;
}

/* 04. Layout */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2 * var(--gutter), var(--container-narrow));
}

.overlap {
  position: relative;
  z-index: 3;
  margin-top: calc(var(--overlap) * -1);
}

.card {
  border: 1px solid rgb(16 32 22 / 0.05);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.section-head--center {
  justify-items: center;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-700);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink-900);
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: var(--space-4);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--leaf-400));
}

.section-head--center .section-title::after {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf-300);
}

.eyebrow .icon {
  width: 1.35em;
  height: 1.35em;
}

.eyebrow--dark {
  color: var(--green-700);
}

.section-lead {
  max-width: 62ch;
  font-size: var(--fs-500);
  line-height: 1.65;
  color: var(--ink-700);
  text-wrap: pretty;
}

/* 05. Íconos (sprite SVG en línea) */
.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.icon--lg {
  width: 1.75rem;
  height: 1.75rem;
}

/* 06. Botones */
.btn {
  --btn-bg: var(--green-600);
  --btn-fg: #fff;
  --btn-bd: transparent;
  --btn-bg-hover: var(--green-700);
  --btn-fg-hover: var(--btn-fg);
  --btn-bd-hover: var(--btn-bd);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-400);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:hover {
  border-color: var(--btn-bd-hover);
  background: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.btn:active {
  box-shadow: none;
  transform: translateY(0);
}

.btn .icon {
  transition: transform var(--dur) var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn--ghost {
  --btn-bg: rgb(255 255 255 / 0.06);
  --btn-fg: #fff;
  --btn-bd: rgb(255 255 255 / 0.78);
  --btn-bg-hover: #fff;
  --btn-fg-hover: var(--forest-950);
  --btn-bd-hover: #fff;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--forest-950);
  --btn-bg-hover: var(--leaf-200);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--green-700);
  --btn-bd: var(--green-600);
  --btn-bg-hover: var(--green-600);
  --btn-fg-hover: #fff;
  --btn-bd-hover: var(--green-600);
}

.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9375rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0.9rem 1.8rem;
  font-size: 1.0625rem;
}

.btn:disabled {
  opacity: 0.75;
  cursor: progress;
  box-shadow: none;
  transform: none;
}

.btn__spinner {
  display: none;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid rgb(255 255 255 / 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

[data-state="submitting"] .btn__spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 07. Encabezado y navegación */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgb(16 32 22 / 0.35);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  border-radius: var(--radius-sm);
}

.brand img {
  width: auto;
  height: 46px;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
}

.site-nav__panel {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  margin-inline: auto;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  padding: 0.5rem 0.125rem;
  color: var(--ink-700);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.site-nav__link:hover {
  color: var(--ink-900);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink-900);
  font-weight: 600;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

@media (max-width: 959.98px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink-900);
    transition: background-color var(--dur-fast) var(--ease);
  }

  .nav-toggle:hover {
    background: var(--surface-2);
  }

  .nav-toggle .icon {
    width: 24px;
    height: 24px;
  }

  .nav-toggle .icon--close,
  .nav-toggle[aria-expanded="true"] .icon--menu {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .icon--close {
    display: block;
  }

  .site-nav__panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
    max-height: calc(100dvh - var(--header-h));
    padding: var(--space-4) var(--gutter) var(--space-6);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 30px 50px -30px rgb(6 38 17 / 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility 0s linear var(--dur);
  }

  .site-nav__panel[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }

  .site-nav__link {
    display: flex;
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link[aria-current="page"] {
    color: var(--green-700);
  }

  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .site-nav__actions .btn {
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 959.98px) and (scripting: none) {
  .site-header__bar {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav__panel {
    position: static;
    padding: 0 0 var(--space-4);
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* 08. Hero y portadas internas */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--forest-950);
  color: #fff;
}

.media-cover {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.media-cover img,
.media-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.1;
}

.hero {
  display: grid;
  align-items: center;
  min-height: 640px;
  min-height: clamp(600px, 90svh, 860px);
  padding-block: calc(var(--space-8) + var(--space-4)) calc(var(--overlap) + var(--space-8));
}

.hero .media-cover img {
  object-position: 64% 58%;
}

.hero .shade {
  background:
    linear-gradient(90deg, rgb(6 38 17 / 0.94) 0%, rgb(6 38 17 / 0.82) 34%, rgb(6 38 17 / 0.42) 66%, rgb(6 38 17 / 0.16) 100%),
    linear-gradient(180deg, rgb(6 38 17 / 0.4) 0%, rgb(6 38 17 / 0) 28%, rgb(6 38 17 / 0) 62%, rgb(6 38 17 / 0.55) 100%);
}

.hero__title {
  display: grid;
  justify-items: start;
  gap: var(--space-5);
}

.hero__claim {
  display: block;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: var(--fs-900);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.25);
  color: #fff;
}

.hero__claim em,
.page-hero__title em {
  font-style: normal;
  color: var(--leaf-400);
}

.hero__lead {
  max-width: 48ch;
  margin-top: var(--space-5);
  font-size: var(--fs-500);
  line-height: 1.6;
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.35);
  color: rgb(255 255 255 / 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

@media (max-width: 760px) {
  .hero .media-cover img {
    object-position: 58% 50%;
  }

  .hero .shade {
    background: linear-gradient(180deg, rgb(6 38 17 / 0.62) 0%, rgb(6 38 17 / 0.84) 52%, rgb(6 38 17 / 0.93) 100%);
  }
}

@media (max-width: 560px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}
.page-hero {
  display: grid;
  align-items: end;
  min-height: 380px;
  min-height: clamp(320px, 46svh, 470px);
  padding-block: var(--space-8) calc(var(--overlap) + var(--space-6));
}

.page-hero .media-cover img {
  object-position: 28% 62%;
}

.page-hero .shade {
  background:
    linear-gradient(90deg, rgb(6 38 17 / 0.94) 0%, rgb(6 38 17 / 0.76) 55%, rgb(6 38 17 / 0.52) 100%),
    linear-gradient(0deg, rgb(6 38 17 / 0.7) 0%, rgb(6 38 17 / 0) 60%);
}

.page-hero__title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: var(--fs-800);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff;
}

.page-hero__lead {
  max-width: 52ch;
  margin-top: var(--space-4);
  font-size: var(--fs-500);
  color: var(--on-dark);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--leaf-400);
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--leaf-300);
  text-decoration: underline;
}

/* 09. Servicios */
.services {
  padding-bottom: var(--section-y);
}

.services__card {
  padding: clamp(2rem, 1.2rem + 3vw, 3.75rem) clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.service {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-6) clamp(0.25rem, 1.5vw, 2rem);
}

.service + .service {
  border-top: 1px solid var(--line);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: var(--space-2);
  border-radius: 18px;
  background: linear-gradient(140deg, var(--surface-3) 0%, #fff 100%);
  box-shadow: inset 0 0 0 1px rgb(22 133 62 / 0.14);
  color: var(--green-600);
  transition: transform var(--dur) var(--ease);
}

.service__icon .icon {
  width: 28px;
  height: 28px;
}

.service:hover .service__icon {
  transform: translateY(-2px) rotate(-4deg);
}

.service__title {
  font-size: var(--fs-500);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
}

.service__text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-500);
}

@media (min-width: 820px) {
  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service {
    padding-block: var(--space-2);
  }

  .service + .service {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* 10. Cómo funciona */
.steps {
  padding-bottom: var(--section-y);
}

.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  list-style: none;
}

.step {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.step:hover {
  transform: translateY(-3px);
  border-color: var(--leaf-500);
  box-shadow: var(--shadow);
}

.step__number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--green-600) 0%, var(--leaf-500) 100%);
  box-shadow: 0 10px 20px -12px rgb(22 133 62 / 0.9);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--fs-600);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink-900);
}

.step__text {
  line-height: 1.7;
  color: var(--ink-500);
}

.step__text strong {
  font-weight: 600;
  color: var(--green-700);
}

@media (min-width: 640px) {
  .steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .steps__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 11. Rubros */
.sectors {
  padding-bottom: var(--section-y);
}

.sectors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4);
}

.sector {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-weight: 600;
  color: var(--ink-900);
}

.sector__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgb(22 133 62 / 0.14);
  color: var(--green-600);
}

.sector__icon .icon {
  width: 1.4em;
  height: 1.4em;
}

/* 12. Cobertura */
.coverage {
  padding-bottom: var(--section-y);
}

.coverage__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, var(--surface-3) 0%, var(--surface) 100%);
}

.coverage__intro {
  display: grid;
  gap: var(--space-3);
}

.coverage__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

@media (min-width: 900px) {
  .coverage__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-8);
  }
}

/* 13. Banda de llamado a la acción */
.cta-band {
  padding-bottom: var(--section-y);
}

.cta-band__inner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  gap: var(--space-6);
  overflow: hidden;
  padding: clamp(2rem, 1.2rem + 3.5vw, 4rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(141 199 71 / 0.3) 0%, rgb(141 199 71 / 0) 55%),
    linear-gradient(120deg, var(--forest-950) 0%, var(--forest-800) 58%, var(--green-800) 100%);
  box-shadow: var(--shadow-lg);
  color: var(--on-dark);
}

.cta-band__ring {
  position: absolute;
  top: 50%;
  right: -70px;
  z-index: -1;
  width: 340px;
  height: 340px;
  color: var(--leaf-400);
  opacity: 0.16;
  transform: translateY(-50%);
}

.cta-band__title {
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.6rem);
  font-weight: 500;
  line-height: 1.12;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff;
}

.cta-band__title strong {
  font-weight: 700;
  color: var(--leaf-400);
}

.cta-band__lead {
  margin-top: var(--space-4);
  font-size: var(--fs-500);
  color: var(--on-dark);
}

.cta-band__inner > .btn {
  justify-self: start;
}

@media (max-width: 560px) {
  .cta-band__inner > .btn {
    justify-self: stretch;
  }
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* 14. Quiénes somos + ciclo */
.about {
  padding-block: var(--section-y);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.about__grid {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.about__copy {
  display: grid;
  gap: var(--space-5);
}

.about__lead {
  padding-left: var(--space-5);
  border-left: 4px solid var(--leaf-500);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-900);
}

.about__lead strong {
  font-weight: 700;
  color: var(--green-700);
}

.about__text {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-700);
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.cycle {
  width: min(100%, 440px);
  margin-inline: auto;
}

.cycle svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.cycle__dash {
  fill: none;
  stroke: var(--leaf-500);
  stroke-width: 1.5;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  opacity: 0.6;
}

.cycle__ring {
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.cycle__arc {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}

.cycle__head {
  fill: var(--green-600);
}

.cycle__node,
.cycle__core {
  transform-box: fill-box;
  transform-origin: center;
}

.cycle__node {
  filter: drop-shadow(0 10px 16px rgb(6 38 17 / 0.16));
}

.cycle__node circle {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1.5;
}

.cycle__node use,
.cycle__core use {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cycle__node use {
  color: var(--green-600);
}

.cycle__node--accent circle {
  fill: var(--green-600);
  stroke: none;
}

.cycle__node--accent use,
.cycle__core use {
  color: #fff;
}

.stop-mist {
  stop-color: var(--surface-3);
}

.stop-clear {
  stop-opacity: 0;
}

.stop-leaf {
  stop-color: var(--leaf-400);
}

.stop-green {
  stop-color: var(--green-600);
}

.stop-forest {
  stop-color: var(--forest-950);
}

/* 15. Cifras */
.stats {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.4rem + 4vw, 6rem);
  background: var(--forest-950);
  color: #fff;
}

.stats__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.stats__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.14;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 15% 0%, rgb(22 133 62 / 0.35) 0%, rgb(22 133 62 / 0) 70%),
    radial-gradient(50% 80% at 100% 100%, rgb(141 199 71 / 0.18) 0%, rgb(141 199 71 / 0) 70%);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7) var(--space-5);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding-inline: var(--space-3);
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.7rem + 3vw, 4.3rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--leaf-400);
}

.stat__label {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--on-dark);
}

@media (min-width: 900px) {
  .stats__grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
  }

  .stat + .stat {
    border-left: 1px solid var(--on-dark-line);
  }
}

/* 16. Formularios */
.form-section {
  padding-bottom: var(--section-y);
}

.form-card {
  padding: clamp(1.5rem, 0.9rem + 3vw, 3.5rem);
}

.form-card__intro {
  max-width: 62ch;
  margin-bottom: var(--space-6);
  font-size: var(--fs-500);
  line-height: 1.6;
  color: var(--ink-700);
}

.form {
  position: relative;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.field__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-900);
}

.field__req {
  margin-left: 0.15rem;
  color: var(--danger-700);
}

.field__input {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--ink-900);
  font-size: 1rem;
  line-height: 1.4;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.field__input:hover {
  border-color: var(--line-strong);
}

.field__input:focus {
  border-color: var(--green-600);
  background: #fff;
  box-shadow: var(--ring);
  outline: none;
}

textarea.field__input {
  min-height: 160px;
  resize: vertical;
}

.field__input[aria-invalid="true"] {
  border-color: var(--danger-700);
  background: var(--danger-50);
}

.field__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgb(180 35 24 / 0.16);
}

.field__error {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--danger-700);
}

.field__error::before {
  content: "!";
  display: grid;
  flex: none;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--danger-700);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: var(--space-5);
  padding: 1rem 1.25rem;
  border: 1px solid var(--danger-200);
  border-radius: var(--radius);
  background: var(--danger-50);
  color: var(--danger-700);
  font-weight: 500;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.form__legend {
  font-size: 0.9rem;
  color: var(--ink-500);
}

.form__legend span {
  color: var(--danger-700);
}

@media (max-width: 560px) {
  .form__footer .btn {
    width: 100%;
  }
}

/* 17. Contacto, resultado y error */
.contact-card {
  display: grid;
  padding: clamp(0.5rem, 0.3rem + 0.6vw, 0.75rem);
}

.contact-card__main {
  padding: clamp(1.25rem, 0.7rem + 2.6vw, 3rem);
}

@media (min-width: 1000px) {
  .contact-card {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  }
}

.info-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--forest-900) 0%, var(--forest-950) 100%);
  color: var(--on-dark);
}

.info-panel::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  z-index: -1;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(141 199 71 / 0.28) 0%, rgb(141 199 71 / 0) 70%);
}

.info-panel__name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}

.info-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.info-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  overflow-wrap: anywhere;
}

.info-list__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.08);
  color: var(--leaf-400);
}

.info-panel a {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 0.4);
}

.info-panel a:hover {
  color: var(--leaf-300);
}

.wa-regions {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--on-dark-line);
}

.wa-regions__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.wa-regions__title .icon {
  color: var(--leaf-400);
}

.wa-regions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.07);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.info-panel .chip {
  text-decoration: none;
}

.chip:hover,
.info-panel .chip:hover {
  border-color: var(--wa);
  background: var(--wa);
  color: #fff;
  transform: translateY(-1px);
}

/* Variante sobre fondo claro (cobertura): debe ir después de `.chip`. */
.chip--light {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-900);
}

.chip--light .icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--wa);
}

.chip--light:hover,
.chip--light:focus-visible {
  border-color: var(--wa);
  background: var(--wa);
  color: #fff;
}

.chip--light:hover .icon,
.chip--light:focus-visible .icon {
  color: #fff;
}

.contact-card .info-panel {
  border-radius: 14px;
}

.result__main {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--space-4);
}

.result__badge {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--green-600);
}

.result__badge svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink-900);
}

.result__text {
  font-size: var(--fs-500);
  color: var(--ink-700);
}

.result__subtitle {
  margin-top: var(--space-3);
  font-weight: 700;
  color: var(--ink-900);
}

.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.page-hero .eyebrow {
  margin-bottom: var(--space-4);
}

[data-state="submitting"] .icon--arrow {
  display: none;
}

/* Página de mensajes generada por el servidor (errores sin JavaScript) */
.page-message {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--space-6) var(--gutter);
  background:
    radial-gradient(70% 60% at 0% 0%, rgb(141 199 71 / 0.18) 0%, rgb(141 199 71 / 0) 70%),
    var(--surface-2);
}

.page-message__card {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  width: min(100%, 560px);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}

.page-message__logo {
  width: auto;
  height: 44px;
  margin-bottom: var(--space-2);
}

.page-message__status {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
}

.page-message__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink-900);
}

.page-message__text {
  color: var(--ink-700);
}

.page-message__list {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.2rem;
  font-weight: 500;
  color: var(--danger-700);
}

.page-message__ref {
  font-size: 0.8125rem;
  color: var(--ink-500);
}

/* 18. Pie de página */
.site-footer {
  position: relative;
  isolation: isolate;
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem);
  background:
    radial-gradient(80% 120% at 0% 0%, rgb(22 133 62 / 0.26) 0%, rgb(22 133 62 / 0) 60%),
    var(--forest-950);
  color: var(--on-dark);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--leaf-300);
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
}

@media (min-width: 820px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-8);
  }
}

.site-footer__logo {
  width: auto;
  height: 52px;
  margin-bottom: var(--space-5);
}

.site-footer__title {
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer__about {
  max-width: 48ch;
  line-height: 1.75;
}

.footer-links,
.contact-list {
  display: grid;
  gap: var(--space-3);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-wrap: anywhere;
}

.contact-list .icon {
  color: var(--leaf-400);
}

.site-footer__bottom {
  padding-block: var(--space-5);
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}

/* 19. WhatsApp */
.wa-fab {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 90;
  width: 62px;
  height: 62px;
}

/* Aura: halo de luz verde detrás del botón (estático; con movimiento habilitado, respira) */
.wa-fab::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--wa-bright) 55%, transparent) 0%,
    color-mix(in srgb, var(--wa-bright) 16%, transparent) 60%,
    transparent 100%
  );
  opacity: 0.65;
  pointer-events: none;
  transition: scale var(--dur-slow) var(--ease);
}

.wa-fab:hover::before {
  scale: 1.2;
}

.wa-fab__button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wa);
  box-shadow:
    0 16px 32px -12px color-mix(in srgb, var(--wa) 80%, transparent),
    0 4px 12px rgb(6 38 17 / 0.22),
    inset 0 2px 0 rgb(255 255 255 / 0.28),
    inset 0 -6px 12px rgb(6 38 17 / 0.22);
  color: #fff;
  translate: var(--wa-mx, 0px) var(--wa-my, 0px);
  transition:
    background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    scale var(--dur) var(--ease),
    translate 200ms var(--ease);
}

.wa-fab__button:hover {
  box-shadow:
    0 22px 40px -12px color-mix(in srgb, var(--wa) 90%, transparent),
    0 6px 16px rgb(6 38 17 / 0.26),
    inset 0 2px 0 rgb(255 255 255 / 0.32),
    inset 0 -6px 12px rgb(6 38 17 / 0.22);
  scale: 1.06;
}

.wa-fab__button:active {
  scale: 0.95;
}

.wa-fab__icon {
  grid-area: 1 / 1;
  transition:
    opacity var(--dur) var(--ease),
    rotate var(--dur) var(--ease),
    scale var(--dur) var(--ease);
}

.wa-fab__icon--wa {
  width: 32px;
  height: 32px;
  transform-origin: 50% 60%;
}

.wa-fab__icon--close {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
  opacity: 0;
  rotate: -90deg;
  scale: 0.6;
}

/* Etiqueta que aparece con el mouse o con foco de teclado */
.wa-fab__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--forest-950) 90%, transparent);
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  translate: 10px -50%;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    opacity var(--dur) var(--ease),
    translate var(--dur) var(--ease);
}

.wa-fab__button:hover .wa-fab__label,
.wa-fab__button:focus-visible .wa-fab__label {
  opacity: 1;
  translate: 0 -50%;
}

/* Estado abierto: el botón se oscurece y el ícono se transforma en una cruz */
.wa-fab[data-open="true"] .wa-fab__button {
  background: var(--forest-900);
}

.wa-fab[data-open="true"] .wa-fab__icon--wa {
  opacity: 0;
  rotate: 90deg;
  scale: 0.6;
}

.wa-fab[data-open="true"] .wa-fab__icon--close {
  opacity: 1;
  rotate: 0deg;
  scale: 1;
}

.wa-fab[data-open="true"] .wa-fab__label {
  opacity: 0;
}

.wa-fab__menu {
  position: fixed;
  inset: auto clamp(1rem, 2vw, 1.5rem) calc(clamp(1rem, 2vw, 1.5rem) + 80px) auto;
  display: none;
  width: min(300px, calc(100vw - 2rem));
  margin: 0;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, #fff 92%, transparent);
  box-shadow: var(--shadow-lg);
  color: var(--ink-900);
  transform-origin: calc(100% - 31px) calc(100% + 49px);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.wa-fab__menu.is-open {
  display: block;
}

.wa-fab__menu:popover-open {
  display: block;
}

.wa-fab__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.5rem 0.8rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink-900);
}

.wa-fab__head .icon {
  width: 22px;
  height: 22px;
  color: var(--wa-hover);
}

.wa-fab__list {
  display: grid;
  gap: 0.15rem;
}

.wa-fab__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.6rem;
  border-radius: var(--radius);
  color: var(--ink-900);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}

.wa-fab__link:hover,
.wa-fab__link:focus-visible {
  background: var(--surface-2);
  color: var(--green-700);
}

.wa-fab__dot {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wa) 12%, transparent);
  color: var(--wa-hover);
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.wa-fab__dot .icon {
  width: 18px;
  height: 18px;
}

.wa-fab__link:hover .wa-fab__dot,
.wa-fab__link:focus-visible .wa-fab__dot {
  background: var(--wa);
  color: #fff;
}

.wa-fab__link .icon--chevron {
  margin-left: auto;
  color: var(--ink-300);
  transition:
    translate var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.wa-fab__link:hover .icon--chevron,
.wa-fab__link:focus-visible .icon--chevron {
  color: var(--green-700);
  translate: 3px 0;
}

/* 20. Movimiento (siempre opcional: prefers-reduced-motion lo anula) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero .eyebrow,
  .hero__claim,
  .hero__lead,
  .hero__actions,
  .page-hero__content {
    animation: rise var(--dur-slow) var(--ease) both;
  }

  .hero__claim {
    animation-delay: 90ms;
  }

  .hero__lead {
    animation-delay: 135ms;
  }

  .hero__actions {
    animation-delay: 180ms;
  }

  .hero .media-cover img,
  .hero .media-cover video,
  .page-hero .media-cover img {
    animation: settle 1.8s var(--ease) both;
  }

  .reveal-ready [data-reveal] {
    transition:
      opacity var(--dur-slow) var(--ease),
      transform var(--dur-slow) var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal-ready [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(22px);
  }

  .cycle__ring {
    transition:
      transform 1100ms var(--ease),
      opacity 700ms var(--ease);
  }

  .cycle__node,
  .cycle__core {
    transition:
      transform 600ms var(--ease),
      opacity 600ms var(--ease);
  }

  .cycle__core {
    transition-delay: 150ms;
  }

  .cycle__node--1 {
    transition-delay: 380ms;
  }

  .cycle__node--2 {
    transition-delay: 500ms;
  }

  .cycle__node--3 {
    transition-delay: 620ms;
  }

  .cycle__node--4 {
    transition-delay: 740ms;
  }

  .reveal-ready .cycle:not(.is-visible) .cycle__ring {
    opacity: 0;
    transform: rotate(-70deg);
  }

  .reveal-ready .cycle:not(.is-visible) .cycle__node,
  .reveal-ready .cycle:not(.is-visible) .cycle__core {
    opacity: 0;
    transform: scale(0.6);
  }

  /* WhatsApp: entrada con rebote, aura que respira, órbita de luz y un "llamado"
     (vibración + onda) cada 6 s que se apaga cuando el menú ya se abrió una vez. */
  .wa-fab {
    animation: wa-enter 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 400ms both;
  }

  .wa-fab::before {
    will-change: transform, opacity;
    animation: wa-breathe 3.2s ease-in-out infinite alternate;
  }

  .wa-fab::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 2px solid color-mix(in srgb, var(--wa-bright) 75%, transparent);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    animation: wa-wave 6s var(--ease) 1.6s infinite;
  }

  .wa-fab__button::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
      from 0deg,
      transparent 0deg,
      var(--wa-bright) 60deg,
      var(--wa-mint) 84deg,
      #fff 96deg,
      transparent 150deg,
      transparent 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    opacity: 0.9;
    pointer-events: none;
    will-change: transform;
    transition: opacity var(--dur) var(--ease);
    animation: wa-orbit 3.6s linear infinite;
  }

  .wa-fab__icon--wa {
    animation: wa-ring 6s var(--ease) 1.6s infinite;
  }

  .wa-fab.is-engaged::after,
  .wa-fab[data-open="true"]::after,
  .wa-fab.is-engaged .wa-fab__icon--wa,
  .wa-fab[data-open="true"] .wa-fab__icon--wa {
    animation: none;
  }

  .wa-fab[data-open="true"] .wa-fab__button::after {
    opacity: 0;
  }

  .wa-fab__menu {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      overlay var(--dur) allow-discrete,
      display var(--dur) allow-discrete;
  }

  .wa-fab__menu.is-open {
    opacity: 1;
    transform: none;
  }

  .wa-fab__menu:popover-open {
    opacity: 1;
    transform: none;
  }

  @starting-style {
    .wa-fab__menu:popover-open {
      opacity: 0;
      transform: translateY(10px) scale(0.94);
    }
  }

  .wa-fab__menu.is-open .wa-fab__list li {
    animation: wa-item 420ms var(--ease) both;
  }

  .wa-fab__menu:popover-open .wa-fab__list li {
    animation: wa-item 420ms var(--ease) both;
  }

  .wa-fab__list li:nth-child(2) {
    animation-delay: 45ms;
  }

  .wa-fab__list li:nth-child(3) {
    animation-delay: 90ms;
  }

  .wa-fab__list li:nth-child(4) {
    animation-delay: 135ms;
  }

  .wa-fab__list li:nth-child(5) {
    animation-delay: 180ms;
  }

  .result__check {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: draw 700ms var(--ease) 250ms forwards;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

@keyframes wa-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.6);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wa-breathe {
  from {
    opacity: 0.45;
    transform: scale(0.92);
  }

  to {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

@keyframes wa-orbit {
  to {
    transform: rotate(1turn);
  }
}

@keyframes wa-wave {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }

  24%,
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes wa-ring {
  0%,
  14%,
  100% {
    transform: rotate(0deg);
  }

  2% {
    transform: rotate(-14deg);
  }

  4% {
    transform: rotate(12deg);
  }

  6% {
    transform: rotate(-10deg);
  }

  8% {
    transform: rotate(7deg);
  }

  10% {
    transform: rotate(-4deg);
  }

  12% {
    transform: rotate(2deg);
  }
}

@keyframes wa-item {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 21. Impresión y alto contraste */
@media print {
  .site-header,
  .wa-fab,
  .skip-link,
  .hero__actions,
  .media-cover,
  .shade {
    display: none !important;
  }

  .hero,
  .page-hero,
  .stats,
  .site-footer,
  .cta-band__inner,
  .info-panel {
    background: none !important;
    color: #000 !important;
  }

  .hero__claim,
  .hero__lead,
  .page-hero__title,
  .cta-band__title,
  .stat__value,
  .site-footer__title,
  .info-panel__name {
    color: #000 !important;
    text-shadow: none !important;
  }

  .overlap {
    margin-top: 0;
  }
}

@media (forced-colors: active) {
  .btn,
  .field__input,
  .card,
  .wa-fab__button {
    border: 1px solid CanvasText;
  }

  .site-nav__link[aria-current="page"] {
    text-decoration: underline;
  }
}
