/* ===================================================================
   DULTERRA — Hoja de estilos del sitio
   Basada en la Opción B "Organic Luxury" aprobada por el cliente.
   Tipografía: Cormorant Garamond (títulos) + Montserrat (texto)
   Paleta oficial: verde #327A3C · rojo #F05252 · gris #7E7E7E · blanco
   =================================================================== */

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* --- Paleta oficial de marca --- */
  --verde: #327A3C;
  --verde-rgb: 50, 122, 60;
  --rojo: #F05252;
  --rojo-rgb: 240, 82, 82;
  --gris: #7E7E7E;
  --blanco: #FFFFFF;

  /* Variante accesible del rojo de marca.
     #F05252 sólo alcanza 3.48:1 contra blanco y contra el crema del sitio,
     por debajo del mínimo AA de 4.5:1 para texto normal. Este tono más
     profundo llega a 4.7:1 y se usa en TEXTO rojo y en botones sólidos.
     El #F05252 original se conserva en todo lo decorativo (bordes,
     iconos, puntos de las etiquetas, fondos suaves), donde el mínimo
     aplicable es 3:1. */
  --rojo-texto: #C63A3A;

  /* --- Roles semánticos --- */
  --primary: var(--verde);
  --primary-rgb: var(--verde-rgb);
  --accent: var(--rojo);
  --accent-rgb: var(--rojo-rgb);
  --accent-texto: var(--rojo-texto);

  /* Fondos */
  --bg: #F7F5F0;
  --bg-alt: var(--blanco);
  --bg-deep: #EFEBE3;

  /* Texto. Nota: el gris de marca (#7E7E7E) no alcanza el contraste
     AA 4.5:1 sobre los fondos claros, por eso el texto corrido usa
     una variante levemente más oscura y #7E7E7E queda para metadatos. */
  --text: #1F1F1F;
  --text-body: #6B6B6B;
  --text-muted: var(--gris);

  /* Cristal (dock y header móvil) */
  --glass-bg: rgba(255, 253, 250, 0.82);
  --glass-border: rgba(var(--verde-rgb), 0.14);

  /* Sombras */
  --shadow: 0 20px 60px rgba(45, 38, 28, 0.12);
  --shadow-soft: 0 8px 32px rgba(45, 38, 28, 0.07);
  --shadow-dock: 0 14px 48px rgba(31, 31, 31, 0.13);

  /* Radios */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.4s var(--ease);

  /* Tipografía */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;

  /* Altura reservada para el dock inferior */
  --dock-space: 108px;
}

/* ============================================================
   2. RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--primary);
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

/* Foco visible y coherente en todo el sitio */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Salto al contenido, para teclado y lectores de pantalla */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 2000;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--blanco);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

.oculto-en-movil { display: inline-flex; }

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

/* ============================================================
   3. UTILIDADES DE LAYOUT
   ============================================================ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.container--narrow { max-width: 900px; }

.section { padding: 80px 0; }
.section--tight { padding: 88px 0; }
.section--compact-bottom { padding-bottom: 64px; }

.section-cream { background: var(--bg); }
.section-light { background: var(--bg-alt); }
.section-deep  { background: var(--bg-deep); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent-texto);
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 18px;
}

.section-header p {
  color: var(--text-body);
  font-size: 1.05rem;
}

.section-footnote {
  margin-top: 44px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-body);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 52px;
}

.section-actions--left { justify-content: flex-start; }

/* ============================================================
   4. BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.btn i { font-size: 1.15em; }

.btn-primary {
  background: var(--primary);
  color: var(--blanco);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(var(--verde-rgb), 0.32);
}

.btn-accent {
  background: var(--accent-texto);
  color: var(--blanco);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(var(--rojo-rgb), 0.34);
}

/* Sobre imagen o fondo oscuro */
.btn-outline {
  background: rgba(255, 255, 255, 0.14);
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

/* Sobre fondo claro */
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(var(--verde-rgb), 0.35);
}

.btn-ghost:hover {
  background: rgba(var(--verde-rgb), 0.07);
  border-color: var(--primary);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--blanco);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.36);
}

/* Versión compacta para usar dentro de tarjetas */
.btn-sm {
  padding: 10px 18px;
  font-size: 0.82rem;
}

.btn-sm {
  padding: 11px 22px;
  font-size: 0.82rem;
}

/* Enlace con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-texto);
}

.link-arrow i { transition: transform 0.3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ============================================================
   5. BADGE DE DISPONIBILIDAD
   Requisito del criterio de veracidad del documento maestro:
   nada se publica como definitivo si no está confirmado.
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge--disponible {
  background: rgba(var(--verde-rgb), 0.12);
  color: #256030;
}

.badge--temporada {
  background: rgba(217, 123, 74, 0.14);
  color: #A85528;
}

.badge--consulta {
  background: rgba(126, 126, 126, 0.15);
  color: #5A5A5A;
}

.badge--proximamente {
  background: rgba(var(--rojo-rgb), 0.12);
  color: #C23B3B;
}

.badge--cosecha {
  background: rgba(217, 158, 29, 0.16);
  color: #9A6B0A;
}

/* ============================================================
   6. HEADER MÓVIL
   ============================================================ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 22px;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
}

.mobile-logo { display: inline-flex; align-items: center; }
.mobile-logo .logo-img { height: 22px; width: auto; }

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.menu-toggle:hover { background: rgba(255, 255, 255, 0.95); }

/* ============================================================
   7. DOCK DE NAVEGACIÓN
   ============================================================ */
/* Centrado con left/right + margin auto y NO con left:50% + translateX.
   Con left:50% el ancho disponible para el shrink-to-fit queda reducido
   a la mitad del viewport y el dock colapsa a su ancho mínimo, lo que
   provoca que el contenido desborde. */
.main-nav {
  position: fixed;
  bottom: 26px;
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 140px);
  padding: 10px 12px 10px 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-dock);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Sin min-width: el logotipo es un wordmark de proporción 7:1 y
   cualquier ancho mínimo lo deforma. */
.nav-logo .logo-img {
  height: 17px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.81rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-links a i { font-size: 1.05rem; }

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: var(--blanco);
}

/* CTA permanente dentro del dock (documento maestro §3.2) */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  background: var(--accent-texto);
  color: var(--blanco);
  font-size: 0.81rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(var(--rojo-rgb), 0.36);
}

.nav-cta-corto { display: none; }

.nav-mobile-extra { display: none; }

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 700px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.4s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(20, 14, 10, 0.42) 0%,
    rgba(20, 14, 10, 0.30) 45%,
    rgba(20, 14, 10, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--blanco);
  max-width: 880px;
  padding: 0 24px 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 22px;
  opacity: 0.92;
}

.hero h1 {
  color: var(--blanco);
  font-size: clamp(2.4rem, 5.6vw, 3.7rem);
  font-weight: 600;
  margin-bottom: 24px;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 38px;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-indicators {
  position: absolute;
  bottom: calc(var(--dock-space) + 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 12px;
}

.hero-indicators button {
  width: 40px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}

.hero-indicators button.active {
  background: var(--blanco);
  width: 60px;
}

/* ============================================================
   10. SEGMENTOS B2B (§4.3)
   ============================================================ */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.segment-card {
  padding: 34px 26px;
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.section-cream .segment-card { background: var(--bg-alt); }

.segment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.segment-card > i {
  display: block;
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.segment-card h3 {
  font-size: 1.26rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.segment-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Versión B2B (página Empresas, §6.2): lista de productos,
   dato para cotizar y botón específico. */
.segment-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--verde-rgb), 0.12);
}

.segment-meta h4 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 8px;
}

.segment-meta ul {
  list-style: none;
  margin: 0;
}

.segment-meta li {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.segment-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.segment-cotizar {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-body);
}

.segment-card .btn { margin-top: 20px; }

/* ============================================================
   11. TARJETAS DE PRODUCTO (§4.4)
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 28px 30px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(var(--verde-rgb), 0.09);
  color: var(--primary);
  flex-shrink: 0;
}

.product-card h3 {
  font-size: 1.34rem;
  font-weight: 600;
}

.product-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  flex-grow: 1;
  text-align: justify;
}

.product-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-uses li {
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(var(--verde-rgb), 0.07);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 500;
}

/* ============================================================
   11b. CATÁLOGO DE PRODUCTOS (products.html)
   Tarjetas con fotografía real, ficha de datos y filtrado
   dinámico por tags. Reutiliza la paleta y tipografía del sitio.
   ============================================================ */
.page-hero {
  min-height: 460px;
  height: 60vh;
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-chip {
  padding: 11px 22px;
  border: 1px solid rgba(var(--verde-rgb), 0.25);
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.filter-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.filter-chip.active {
  background: var(--primary);
  color: var(--blanco);
  border-color: var(--primary);
}

.filter-count {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.product-grid--catalog .product-card {
  overflow: hidden;
  padding: 0;
}

.product-card.oculto { display: none; }

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-media img { transform: scale(1.05); }

.product-media .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 26px 26px 0;
  flex-grow: 1;
}

.product-uses-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-texto);
}

.product-data {
  margin: 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(var(--verde-rgb), 0.12);
  padding-top: 16px;
}

.product-data > div {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  align-items: baseline;
}

.product-data dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.product-data dd {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-body);
}

.product-card-footer {
  padding: 20px 26px 26px;
}

.product-card-footer .btn { width: 100%; }

.products-note {
  margin: 44px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* ============================================================
   12. EXPERIENCIA (§4.5)
   ============================================================ */
.experience-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.experience-image {
  height: 560px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.experience-body h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  margin-bottom: 18px;
}

.experience-body > p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* ============================================================
   13. PROCESO — 7 ETAPAS (§4.6)
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 18px;
}

.process-step {
  position: relative;
  padding: 30px 16px 26px;
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.section-light .process-step { background: var(--bg); }

.process-number {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-texto);
  margin-bottom: 8px;
}

.process-step i {
  display: block;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.process-step p {
  font-size: 0.8rem;
  line-height: 1.55;
}

/* Conector: sólo cuando las 7 etapas caben en una fila */
@media (min-width: 1180px) {
  .process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -18px;
    width: 18px;
    height: 2px;
    background: rgba(var(--rojo-rgb), 0.4);
  }
  .process-step:last-child::after { display: none; }
}

/* ============================================================
   14. POR QUÉ ELEGIR DULTERRA (§4.7)
   ============================================================ */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
}

.reason {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 16px;
  margin-left: -16px;
  border-top: 1px solid rgba(var(--verde-rgb), 0.14);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.reason:hover {
  transform: translateX(8px);
  background: rgba(var(--verde-rgb), 0.05);
  border-color: rgba(var(--verde-rgb), 0.3);
  box-shadow: 0 10px 26px rgba(var(--verde-rgb), 0.08);
}

.reason i {
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}

.reason:hover i {
  transform: scale(1.18) rotate(-4deg);
  color: var(--primary);
}

.reason h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 5px;
  transition: color 0.35s var(--ease);
}

.reason:hover h3 { color: var(--primary); }

.reason p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Número de orden de cada punto (página Empresas) */
.reason-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-texto);
  margin-bottom: 6px;
  transition: color 0.35s var(--ease), letter-spacing 0.35s var(--ease);
}

.reason:hover .reason-num {
  color: var(--primary);
  letter-spacing: 0.04em;
}

/* ============================================================
   15. CONFIANZA Y PRUEBA SOCIAL (§4.8)
   ============================================================ */
.trust-panel {
  padding: 52px 44px;
  background: var(--bg-alt);
  border: 1px dashed rgba(var(--verde-rgb), 0.28);
  border-radius: var(--radius-lg);
  text-align: center;
}

.trust-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.trust-panel > p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.75;
}

.trust-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 640px;
  margin-top: 30px;
  padding: 14px 20px;
  background: rgba(var(--rojo-rgb), 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-body);
  text-align: left;
}

.trust-note i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   16. SOSTENIBILIDAD (§9.1)
   Carrusel horizontal con scroll vinculado. Misma mecánica que la
   línea de tiempo de Proceso (sección 21), con diseño propio:
   tarjetas deslizables, nodos numerados y flechas.
   ============================================================ */
.sost {
  position: relative;
}

.sost-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}

.sost-viewport::-webkit-scrollbar { display: none; }

.sost-viewport:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(var(--verde-rgb), 0.25);
}

.sost-track {
  position: relative;
  display: flex;
  gap: 20px;
}

.sost-card {
  position: relative;
  flex: 0 0 58%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-height: 340px;
  padding: 48px 44px;
  background: var(--bg-alt);
  border: 1px solid rgba(var(--verde-rgb), 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sost-card::after {
  content: attr(data-num);
  position: absolute;
  right: 6px;
  bottom: -46px;
  font-family: "Cormorant Garamond", serif;
  font-size: 13rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(var(--verde-rgb), 0.07);
  pointer-events: none;
  user-select: none;
}

.sost-card > i {
  display: block;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 20px;
}

.sost-card h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 14px;
  max-width: 92%;
}

.sost-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 58ch;
}

/* Pie del carrusel: flechas centradas */
.sost-footer {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.sost-arrows {
  display: flex;
  gap: 12px;
}

.sost-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(var(--verde-rgb), 0.3);
  background: var(--bg-alt);
  color: var(--primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.sost-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--blanco);
  transform: translateY(-2px);
}

.sost-arrow:disabled { opacity: 0.3; cursor: default; transform: none; }

/* ============================================================
   17. CONTACTO Y CIERRE (§4.9 · §12.1)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: start;
}

.contact-form {
  padding: 42px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.section-light .contact-form { background: var(--bg); }

.form-row { margin-bottom: 20px; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 20px;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-row .req { color: var(--accent-texto); }

.form-row .opcional {
  font-weight: 400;
  color: var(--text-body);
  font-size: 0.8rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(var(--verde-rgb), 0.18);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--text);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.section-light .form-row input,
.section-light .form-row select,
.section-light .form-row textarea { background: var(--bg-alt); }

.form-row textarea { resize: vertical; min-height: 120px; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--verde-rgb), 0.1);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form-consent label {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
}

.form-status {
  margin-top: 18px;
  font-size: 0.85rem;
  line-height: 1.55;
}

.form-status:empty { margin-top: 0; }

.form-status[data-state="ok"] { color: #256030; }
.form-status[data-state="error"] { color: #C23B3B; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-block > i {
  font-size: 1.55rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-block p {
  font-size: 0.92rem;
  line-height: 1.55;
}

.info-block a:hover { color: var(--accent); }

.info-pending {
  font-size: 0.78rem;
  color: var(--text-body);
  font-style: italic;
}

/* Cierre con CTA */
.closing {
  padding: 100px 0;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.closing h2 {
  color: var(--blanco);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 20px;
}

.closing p {
  max-width: 700px;
  margin: 0 auto 38px;
  line-height: 1.75;
}

.closing .section-eyebrow { color: rgba(255, 255, 255, 0.75); }

.closing-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.closing .btn-primary {
  background: var(--blanco);
  color: var(--primary);
}

.closing .btn-primary:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }

/* ============================================================
   18. FOOTER
   ============================================================ */
.footer {
  padding: 76px 0 28px;
  background: #24331F;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo .logo-img { height: 26px; width: auto; }

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 320px;
}

.footer-tagline {
  margin-top: 14px !important;
  font-family: var(--font-serif);
  font-size: 1.05rem !important;
  font-style: italic;
  color: var(--blanco);
  opacity: 1 !important;
}

.footer-col h3 {
  color: var(--blanco);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 0.89rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.3s var(--ease);
}

.footer-col a:hover { color: var(--blanco); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  font-size: 1.25rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: var(--dock-space);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
  font-size: 0.82rem;
  opacity: 0.7;
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.82rem;
  opacity: 0.7;
}

.footer-legal a { transition: opacity 0.3s var(--ease); }

.footer-legal a:hover { opacity: 1; }

/* ============================================================
   19. WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* ============================================================
   20. ANIMACIONES DE ENTRADA
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-slide.active { animation: none; transform: scale(1); }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   21. LÍNEA DE TIEMPO INTERACTIVA (§8.2, página Proceso)
   ============================================================ */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 310px 1fr;
  height: clamp(540px, 74vh, 700px);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.timeline-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px;
  overflow-y: auto;
  border-right: 1px solid rgba(var(--verde-rgb), 0.12);
  scrollbar-width: none;
}

.timeline-rail::-webkit-scrollbar { display: none; }

.timeline-stage {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid rgba(var(--verde-rgb), 0.14);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.timeline-stage:hover {
  transform: translateX(6px);
  border-color: rgba(var(--verde-rgb), 0.35);
  box-shadow: 0 10px 24px rgba(var(--verde-rgb), 0.1);
}

.timeline-num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-texto);
  flex-shrink: 0;
  transition: color 0.35s var(--ease);
}

.timeline-stage > i {
  font-size: 1.35rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: color 0.35s var(--ease);
}

.timeline-stage h3 {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  transition: color 0.35s var(--ease);
}

.timeline-stage.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(var(--verde-rgb), 0.28);
}

.timeline-stage.active .timeline-num { color: rgba(255, 255, 255, 0.85); }
.timeline-stage.active > i { color: var(--blanco); }
.timeline-stage.active h3 { color: var(--blanco); }

/* Navegación Anterior / Siguiente */
.timeline-nav {
  display: flex;
  gap: 10px;
  margin-top: 2px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--verde-rgb), 0.12);
}

.timeline-nav button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(var(--verde-rgb), 0.28);
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              opacity 0.3s var(--ease);
}

.timeline-nav button:hover {
  background: rgba(var(--verde-rgb), 0.08);
  border-color: var(--primary);
}

.timeline-nav button:disabled { opacity: 0.35; cursor: default; }

/* Viewport de scroll vinculado a las etapas */
.timeline-scroll {
  position: relative;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  outline: none;
}

.timeline-scroll::-webkit-scrollbar { display: none; }

.timeline-scroll:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(var(--verde-rgb), 0.25);
}

.timeline-slide {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 38px;
  align-items: center;
  padding: 44px;
  box-sizing: border-box;
}

.timeline-slide:nth-child(even) .timeline-media { order: 2; }

.timeline-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.timeline-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-body h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.timeline-body p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-body);
}

.timeline-body .info-pending { margin-top: 18px; }

/* Pista de uso del scroll */
.timeline-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
  font-size: 0.85rem;
  color: var(--text-body);
}

.timeline-hint i { font-size: 1.15rem; color: var(--primary); }

/* ============================================================
   22. PÁGINA NOSOTROS — historia, origen y valores
   ============================================================ */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.historia-media {
  margin: 0;
}

.historia-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.historia-media figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.historia-quote {
  position: relative;
  margin: 0 0 32px;
  padding: 26px 30px;
  background: var(--bg-deep);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.historia-quote > i {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.4rem;
  color: rgba(var(--verde-rgb), 0.18);
}

.historia-quote p {
  margin: 0;
  max-width: 88%;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.bio-grid {
  display: grid;
  gap: 20px;
}

.bio-block {
  position: relative;
  padding: 34px 30px;
  background: var(--blanco);
  border: 1px solid rgba(var(--verde-rgb), 0.14);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

.bio-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.bio-block:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--verde-rgb), 0.32);
  box-shadow: var(--shadow);
}

.bio-block:hover::before { opacity: 1; }

.bio-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
}

.bio-block > i {
  display: block;
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.bio-block h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.bio-block p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* --- Pestañas: Propósito · Misión · Visión --- */
.values {
  background: var(--bg-alt);
  border: 1px solid rgba(var(--verde-rgb), 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.values-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 6px;
  background: var(--bg-deep);
  border-radius: var(--radius-md);
}

.values-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 10px;
  border: 0;
  border-radius: calc(var(--radius-md) - 6px);
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.values-tab i { font-size: 1.25rem; }

.values-tab:hover { color: var(--text); }

.values-tab.active {
  background: var(--blanco);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.values-panels {
  margin-top: 18px;
}

.values-panel {
  animation: valuesFade 0.45s var(--ease);
}

.values-panel[hidden] { display: none; }

@keyframes valuesFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.values-panel-num {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-texto);
}

.values-panel > i {
  display: block;
  font-size: 2.4rem;
  color: var(--primary);
  margin: 18px 0 20px;
}

.values-panel h3 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.values-panel p {
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* ============================================================
   23. PÁGINA EXPERIENCIA — RECORRIDO POR ESTACIONES (§7.3)
   ============================================================ */

/* --- Progreso: nodos numerados unidos por una línea que se llena --- */

.route-path {
  list-style: none;
  display: flex;
  margin: 0 0 42px;
  padding: 0;
}

.route-path li {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.route-path li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -50%;
  width: 100%;
  height: 2px;
  background: rgba(var(--verde-rgb), 0.18);
  transition: background 0.5s var(--ease);
}

.route-path li:first-child::before { display: none; }

.route-node {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(var(--verde-rgb), 0.25);
  background: var(--bg-alt);
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}

.route-node:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.route-path li.is-done::before { background: var(--primary); }

.route-node.is-done {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--blanco);
}

.route-node.is-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 7px rgba(var(--verde-rgb), 0.14);
}

.route-node:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* --- Escenario de la estación activa --- */

.route-stage {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid rgba(var(--verde-rgb), 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.station {
  display: none;
  grid-template-columns: 300px 1fr;
  min-height: 320px;
}

.station.is-active {
  display: grid;
  animation: stationIn 0.55s var(--ease);
}

@keyframes stationIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.station-art {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--blanco);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 58px),
    linear-gradient(155deg, #3E8A49, #24522B);
}

.station-num {
  position: absolute;
  top: 14px;
  left: 20px;
  font-family: var(--font-serif);
  font-size: 4.2rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
}

.station-art .ph {
  font-size: 4.8rem;
  opacity: 0.95;
  transform: translateY(10px);
}

.station.is-active .station-art .ph {
  animation: stationIcon 0.7s var(--ease) 0.15s both;
}

@keyframes stationIcon {
  from { opacity: 0; transform: translateY(16px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.station-body {
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.station-meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-texto);
  margin-bottom: 14px;
}

.station-body h3 {
  font-family: var(--font-serif);
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}

.station-body p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 560px;
}

.station-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Cierre: mismo escenario, acento de marca sobre verde profundo */

.station--fin .station-art {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 58px),
    linear-gradient(155deg, #F05252, #C63A3A);
}

.station--fin .station-num {
  font-size: 2.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Controles: anterior / reproducir / siguiente --- */

.route-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.route-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              transform 0.3s var(--ease);
}

.route-btn--ghost {
  background: var(--bg-alt);
  border-color: rgba(var(--verde-rgb), 0.3);
  color: var(--primary);
}

.route-btn--ghost:hover:not(:disabled) {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.route-btn--play {
  background: var(--accent);
  color: var(--blanco);
  min-width: 214px;
}

.route-btn--play:hover:not(:disabled) {
  background: var(--accent-texto);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(var(--rojo-rgb), 0.3);
}

.route-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.route-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.route-note {
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- Experiencias interactivas (§7.2) --- */

.act-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.act-card {
  background: var(--bg-alt);
  border: 1px solid rgba(var(--verde-rgb), 0.14);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

.act-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--verde-rgb), 0.3);
  box-shadow: var(--shadow-soft);
}

.act-card i {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.act-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.act-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* ============================================================
   24. PÁGINAS LEGALES — AVISOS Y POLÍTICAS (§15)
   ============================================================ */

.legal-intro p { margin: 0 0 14px; }

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-body);
  letter-spacing: 0.02em;
}

.legal-toc {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.legal-toc a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.legal-toc a:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.legal-toc a i { color: var(--accent-texto); font-size: 1.05rem; }

.legal-content { max-width: 760px; margin: 0 auto; }

.legal-content h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 600;
  margin: 60px 0 16px;
  scroll-margin-top: 140px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 30px 0 10px;
}

.legal-content p { margin: 0 0 16px; }

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.legal-content li { margin-bottom: 10px; }

.legal-content strong { color: var(--text); }

.legal-note {
  background: var(--bg-deep);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 0.95rem;
}

/* ============================================================
   25. RESPONSIVE
   ============================================================ */

/* Dock compacto: sólo iconos, para que el CTA siempre entre.
   El umbral es 1279px porque con las etiquetas visibles el dock mide
   ~1082px y necesita margen respecto de calc(100vw - 140px). */
@media (max-width: 1279px) {
  .nav-links a span { display: none; }
  .nav-links a { padding: 11px 13px; }
  .nav-links a i { font-size: 1.2rem; }
}

/* Franja estrecha entre el menú móvil (768px) y el dock cómodo:
   el CTA pasa a su etiqueta corta para no quedar al límite. */
@media (max-width: 960px) {
  .nav-cta-largo { display: none; }
  .nav-cta-corto { display: inline; }
}

@media (max-width: 1100px) {
  .segment-grid  { grid-template-columns: repeat(2, 1fr); }
  .product-grid  { grid-template-columns: repeat(2, 1fr); }
  .reason-grid   { grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
  .timeline      { grid-template-columns: 280px 1fr; }
  .sost-card     { flex-basis: 78%; }
  .act-grid      { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .section { padding: 92px 0; }
  .experience-layout { grid-template-columns: 1fr; gap: 40px; }
  .experience-image { height: 340px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .historia-grid { grid-template-columns: 1fr; gap: 36px; }
  .historia-media img { aspect-ratio: 16 / 10; }
  .values { padding: 22px; }

  .timeline { grid-template-columns: 1fr; height: auto; border-radius: var(--radius-lg); }
  .timeline-rail {
    flex-direction: row;
    overflow-x: auto;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid rgba(var(--verde-rgb), 0.12);
  }
  .timeline-stage { flex: 0 0 auto; min-width: 200px; }
  .timeline-nav { flex: 0 0 auto; min-width: 200px; border-top: none; padding-top: 0; margin-top: 0; }
  .timeline-scroll { height: 560px; }
  .timeline-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 22px;
    padding: 26px;
    align-content: center;
  }
  .timeline-slide:nth-child(even) .timeline-media { order: 0; }
  .timeline-media { aspect-ratio: 16 / 10; }

  .station { grid-template-columns: 240px 1fr; }
  .station-art .ph { font-size: 3.6rem; }
  .station-num { font-size: 3.4rem; }
}

@media (max-width: 768px) {
  :root { --dock-space: 0px; }

  .mobile-header { display: flex; }

  /* El dock se convierte en menú de pantalla completa */
  .main-nav {
    position: fixed;
    inset: 0;
    width: auto;
    max-width: none;
    margin-inline: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 80px 32px 40px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: rgba(247, 245, 240, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }

  .main-nav.open { opacity: 1; visibility: visible; }

  .nav-logo { margin-bottom: 28px; }
  .nav-logo .logo-img { height: 26px; }

  .nav-links { flex-direction: column; gap: 6px; width: 100%; max-width: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a { justify-content: center; font-size: 1.05rem; padding: 13px 24px; }
  .nav-links a span { display: inline; }

  .nav-cta { display: none; }

  /* En móvil los dos CTA del documento §3.2 van juntos al final */
  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin-top: 26px;
  }

  .nav-mobile-extra .btn { width: 100%; }

  .hero { min-height: 640px; height: auto; padding: 140px 0 90px; }
  /* Alto constante para los 3 slides: se reserva el espacio del slide más
     alto y el contenido se centra dentro, para que la portada no salte al
     rotar el slider. */
  .hero-content {
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .hero-content h1,
  .hero-content .hero-subtitle { width: 100%; }
  .hero-indicators { bottom: 42px; }

  .segment-grid,
  .product-grid,
  .reason-grid,
  .form-grid-3 { grid-template-columns: 1fr; }

  .reason { padding: 18px 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-panel { padding: 38px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }

  .sost-card { flex-basis: 88%; padding: 32px 26px; min-height: 300px; }

  .station { grid-template-columns: 1fr; min-height: 0; }
  .station-art { min-height: 190px; }
  .station-body { padding: 30px 26px; }
  .route-path { margin-bottom: 30px; }
  .route-node { width: 46px; height: 46px; }
  .act-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .oculto-en-movil { display: none; }

  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 22px; }
  .process-grid { grid-template-columns: 1fr; }
  .closing { padding: 76px 0; }

  .hero-cta,
  .closing-actions,
  .section-actions { flex-direction: column; align-items: stretch; }

  .hero-cta .btn,
  .closing-actions .btn,
  .section-actions .btn { width: 100%; }

  .timeline-scroll { height: 520px; }
  .timeline-slide { padding: 20px; gap: 18px; }
  .timeline-stage { padding: 12px 16px; }

  .values { padding: 14px; }
  .values-tabs { grid-template-columns: 1fr; }
  .values-panel h3 { font-size: 1.6rem; }
  .historia-quote p { font-size: 1.35rem; }

  .sost-card { flex-basis: 92%; padding: 30px 24px; min-height: 280px; }
  .sost-arrow { width: 42px; height: 42px; }

  .station-art { min-height: 160px; }
  .station-art .ph { font-size: 3rem; }
  .station-body { padding: 26px 22px; }
  .station-body h3 { font-size: 1.55rem; }
  .station-actions { flex-direction: column; align-items: stretch; }
  .station-actions .btn { width: 100%; }
  .route-node { width: 42px; height: 42px; font-size: 0.85rem; }
  .route-btn { width: 100%; }
  .route-btn--play { min-width: 0; }
  .act-grid { grid-template-columns: 1fr; }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    bottom: 18px;
    right: 18px;
  }
}
