/* ==========================================================================
   ORGANIZACIÓN TIERRA Y PAZ — Hoja de estilos
   Sistema de diseño construido a partir del logotipo original:
   círculo azul (territorio/comunidad) + figuras verdes (vida/familia/tierra).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TIPOGRAFÍA — Lora (encabezados) + Source Sans 3 (cuerpo)
   Archivos variables auto-alojados (assets/fonts) — sin dependencia de
   terceros en tiempo de ejecución.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/lora-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/lora-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1DBF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/lora-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/lora-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1DBF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../assets/fonts/source-sans-3-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../assets/fonts/source-sans-3-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1DBF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. TOKENS DE DISEÑO
   Paleta extraída y validada del logo — contraste comprobado WCAG AA.
   Ver DOCUMENTACION/ENTREGA.md para la tabla de contraste completa.
   -------------------------------------------------------------------------- */
:root {
  /* Color — extraído del logo */
  --color-blue: #0442C2;          /* azul Tierra y Paz — CTA primario, enlaces */
  --color-blue-deep: #0B2A5B;     /* azul profundo institucional — footer, énfasis */
  --color-blue-bg: #E8EEF9;       /* azul muy claro — fondos de sección */
  --color-green: #54A652;         /* verde comunidad — iconos, acentos, títulos grandes */
  --color-green-light: #78B248;   /* verde claro natural — SOLO decorativo/gráfico grande */
  --color-green-deep: #3F7C3D;    /* variante oscurecida accesible (5.05:1 con blanco) para botones/insignias sólidas */
  --color-cream: #F7F4EA;         /* crema cálido — fondos de sección */
  --color-white: #FFFFFF;
  --color-text: #18313B;          /* texto principal — 13.6:1 sobre blanco */
  --color-text-muted: #3F5560;    /* texto secundario — 7.8:1 sobre blanco */
  --color-error: #B3261E;         /* estados de error de formulario — 6.5:1 sobre blanco */
  --color-border: #D7DEE3;

  /* Tipografía */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Escala tipográfica fluida */
  --fs-sm: clamp(0.85rem, 0.82rem + 0.16vw, 0.95rem);
  --fs-base: clamp(1rem, 0.97rem + 0.18vw, 1.125rem);
  --fs-md: clamp(1.15rem, 1.1rem + 0.3vw, 1.375rem);
  --fs-lg: clamp(1.4rem, 1.25rem + 0.7vw, 1.9rem);
  --fs-xl: clamp(1.8rem, 1.5rem + 1.4vw, 2.75rem);
  --fs-xxl: clamp(2.2rem, 1.8rem + 2vw, 3.5rem);

  /* Espaciado */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 2.75rem;
  --space-xl: 4.5rem;
  --space-2xl: 7rem;

  /* Layout */
  --container-max: 74rem;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;
  --radius-full: 999px;

  /* Sombra suave, cálida (no corporativa) */
  --shadow-sm: 0 1px 2px rgba(24, 49, 59, 0.06), 0 1px 3px rgba(24, 49, 59, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 42, 91, 0.08), 0 2px 4px rgba(11, 42, 91, 0.06);
  --shadow-lg: 0 12px 32px rgba(11, 42, 91, 0.12), 0 4px 10px rgba(11, 42, 91, 0.06);

  --transition: 200ms ease;
  --header-height: 4.5rem;
}

/* --------------------------------------------------------------------------
   3. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--color-blue); text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; }
a:hover { color: var(--color-blue-deep); }
[id] { scroll-margin-top: calc(var(--header-height) + 0.75rem); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-blue-deep);
  text-wrap: balance;
}
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }

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

/* Foco visible consistente y accesible en toda la página */
:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus-visible, button:focus-visible { outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--color-blue-deep);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* --------------------------------------------------------------------------
   4. LAYOUT / CONTENEDORES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section {
  padding-block: var(--space-2xl);
  position: relative;
  overflow: clip;
}
.section--cream { background: var(--color-cream); }
.section--blue-bg { background: var(--color-blue-bg); }
.section--deep {
  background: var(--color-blue-deep);
  color: var(--color-white);
}
.section--deep h2, .section--deep h3 { color: var(--color-white); }
.section--deep .section-eyebrow { color: var(--color-green-light); }

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-green-deep);
  margin-bottom: var(--space-sm);
}
.section-eyebrow::before {
  content: '';
  width: 1.5em; height: 1.5em;
  background: currentColor;
  -webkit-mask: var(--icon, none) center / contain no-repeat;
  mask: var(--icon, none) center / contain no-repeat;
  display: none;
}
.section-title { font-size: var(--fs-xl); margin-bottom: var(--space-sm); }
.section-lead { font-size: var(--fs-md); color: var(--color-text-muted); }
.section--deep .section-lead { color: var(--color-blue-bg); }

.grid {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   5. DECORACIÓN — círculos, raíces/rutas orgánicas, patrón topográfico
   Inspirados en el círculo del logo y los trazos de sus figuras.
   Todo en SVG/CSS: sin peticiones de imagen adicionales.
   -------------------------------------------------------------------------- */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.14;
  pointer-events: none;
}
.deco-topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-color: var(--color-blue-deep);
  -webkit-mask-image: url('../assets/img/topo-pattern.svg');
  mask-image: url('../assets/img/topo-pattern.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: var(--topo-pos, right center);
  mask-position: var(--topo-pos, right center);
  -webkit-mask-size: var(--topo-size, 65% auto);
  mask-size: var(--topo-size, 65% auto);
}
.deco-topo--light { background-color: var(--color-white); opacity: 0.10; }
.deco-topo--left { --topo-pos: left center; }
.deco-path {
  position: absolute;
  pointer-events: none;
  opacity: 0.16;
}

/* --------------------------------------------------------------------------
   6. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.2;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: normal;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-blue-deep); color: var(--color-white); }

.btn--secondary {
  background: transparent;
  color: var(--color-blue-deep);
  border-color: var(--color-blue-deep);
}
.btn--secondary:hover { background: var(--color-blue-deep); color: var(--color-white); }

.btn--on-dark {
  background: var(--color-white);
  color: var(--color-blue-deep);
}
.btn--on-dark:hover { background: var(--color-blue-bg); color: var(--color-blue-deep); }

.btn--on-dark-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn--on-dark-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--color-white); }

.btn--green {
  background: var(--color-green-deep);
  color: var(--color-white);
}
.btn--green:hover { background: #336633; }

.btn--sm { padding: 0.6em 1.2em; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   7. ENCABEZADO / NAVEGACIÓN
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
/* El desenfoque vive en un pseudo-elemento (no en .site-header) a propósito:
   backdrop-filter en el propio contenedor convertiría a .site-header en el
   "containing block" del menú móvil (position:fixed), rompiendo su overlay
   de pantalla completa. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(24,49,59,0.08);
  z-index: -1;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  height: var(--header-height);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: inherit; }
.brand__mark { height: 2.35rem; width: 2.35rem; }
.brand__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-blue-deep);
  line-height: 1.05;
}
.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
}
.nav-toggle:hover { border-color: var(--color-blue); }
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--color-blue-deep);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ''; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-list {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  padding: 0;
  font-weight: 600;
  font-size: var(--fs-sm);
}
.nav-list a {
  color: var(--color-text);
  text-decoration: none;
  padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--color-blue); border-color: var(--color-blue); }
.nav-cta { display: flex; gap: 0.6rem; align-items: center; }

@media (max-width: 899px) {
  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md) var(--container-pad);
    gap: var(--space-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    overflow-y: auto;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list { flex-direction: column; gap: var(--space-xs); font-size: var(--fs-md); }
  .nav-cta { flex-direction: column; align-items: stretch; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--space-xl) var(--space-2xl);
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(84,166,82,0.14), transparent 70%),
    radial-gradient(70% 60% at -5% 100%, rgba(4,66,194,0.10), transparent 70%),
    var(--color-blue-bg);
  overflow: clip;
}
.hero__inner {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--color-white);
  color: var(--color-blue-deep);
  border: 1px solid rgba(11,42,91,0.12);
  padding: 0.45em 1em 0.45em 0.6em;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}
.hero__badge-dot {
  width: 0.55em; height: 0.55em; border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
}
.hero h1 {
  font-size: var(--fs-xxl);
  margin-bottom: var(--space-sm);
  color: var(--color-blue-deep);
}
.hero__lead {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 42rem;
  margin-bottom: var(--space-md);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: var(--space-md);
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}
.hero__meta svg { flex-shrink: 0; color: var(--color-green-deep); }

.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(11,42,91,0.18);
}
.hero__logo-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  max-width: 22rem;
}
.hero__logo-card img { width: 9rem; height: auto; }
.hero__logo-card p {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   9. TARJETAS
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border: 1px solid rgba(24,49,59,0.07);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-blue-bg);
  color: var(--color-blue);
  margin-bottom: var(--space-sm);
}
.card__icon--green { background: #EAF3E7; color: var(--color-green-deep); }
.card h3 { font-size: var(--fs-md); margin-bottom: 0.5em; }
.card p { color: var(--color-text-muted); font-size: var(--fs-sm); }
.card__note {
  margin-top: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-style: italic;
  border-top: 1px dashed var(--color-border);
  padding-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   10. "CÓMO FUNCIONA" — ruta / línea de tiempo
   -------------------------------------------------------------------------- */
.route {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  counter-reset: route;
  position: relative;
}
@media (min-width: 760px) {
  .route {
    grid-template-columns: repeat(5, 1fr);
  }
  .route::before {
    content: '';
    position: absolute;
    top: 1.75rem;
    left: 8%;
    right: 8%;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--color-green-light) 0 10px, transparent 10px 18px);
    border-radius: 3px;
  }
}
.route__item {
  counter-increment: route;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.route__num {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-green);
  color: var(--color-blue-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
}
.route__item h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.route__item p { font-size: var(--fs-sm); color: var(--color-text-muted); }

.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--color-cream);
  border: 1px solid rgba(24,49,59,0.08);
  border-left: 4px solid var(--color-green);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
}
.notice svg { flex-shrink: 0; margin-top: 0.15em; color: var(--color-green-deep); }
.notice strong { color: var(--color-text); }
.notice--error { border-left-color: var(--color-error); background: #FBEEED; }

/* --------------------------------------------------------------------------
   11. TIMELINE (trayectoria)
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
  display: grid;
  gap: var(--space-md);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--color-green-light), var(--color-blue));
  opacity: 0.4;
}
.timeline__item {
  position: relative;
  padding-left: 3rem;
}
.timeline__dot {
  position: absolute;
  left: 0.45rem;
  top: 0.3rem;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-blue);
}
.timeline__year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-blue);
  font-size: var(--fs-md);
  display: block;
  margin-bottom: 0.2em;
}
.timeline__item p { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   12. PERSONA / FICHA
   -------------------------------------------------------------------------- */
.profile {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}
@media (min-width: 860px) {
  .profile { grid-template-columns: 0.85fr 1.15fr; }
}
.profile__card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-md);
  text-align: center;
}
.profile__avatar {
  width: 6.5rem; height: 6.5rem;
  border-radius: 50%;
  background: var(--color-blue-bg);
  color: var(--color-blue-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-sm);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-green-light);
}
.profile__card h3 { font-size: var(--fs-md); margin-bottom: 0.15em; }
.profile__role { color: var(--color-green-deep); font-weight: 700; font-size: var(--fs-sm); margin-bottom: 0.75em; }
.profile__card p:last-child { font-size: var(--fs-sm); color: var(--color-text-muted); }
.profile__body :is(p, ul) + :is(p, ul) { margin-top: var(--space-sm); }
.profile__body ul { color: var(--color-text-muted); font-size: var(--fs-sm); display: grid; gap: 0.4em; padding-left: 1.1em; }

/* --------------------------------------------------------------------------
   13. TRANSPARENCIA — tabla de costos editable
   -------------------------------------------------------------------------- */
.cost-table {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
}
.cost-table caption { text-align: left; padding: var(--space-sm) var(--space-md) 0; color: var(--color-text-muted); font-style: italic; }
.cost-table th, .cost-table td {
  text-align: left;
  padding: 0.9em 1.1em;
  border-bottom: 1px solid var(--color-border);
}
.cost-table thead th {
  background: var(--color-blue-deep);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
}
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table tbody tr:nth-child(even) { background: var(--color-blue-bg); }
.cost-table td[data-pending]::after {
  content: 'Por definir';
  display: inline-block;
  margin-left: 0.6em;
  font-size: 0.8em;
  font-style: italic;
  color: var(--color-text-muted);
  background: var(--color-cream);
  padding: 0.15em 0.6em;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   14. FAQ (acordeón nativo <details>/<summary> — accesible sin JS)
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--color-white);
  border: 1px solid rgba(24,49,59,0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item__q {
  list-style: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1.1em 1.3em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--color-blue-deep);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--color-blue); }
.faq-item__icon {
  flex-shrink: 0;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  border: 2px solid var(--color-green);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-green-deep);
  transition: transform var(--transition);
}
.faq-item__icon::before { width: 0.6rem; height: 2px; }
.faq-item__icon::after { width: 2px; height: 0.6rem; }
.faq-item[open] .faq-item__icon::after { transform: scaleY(0); }

.faq-item__a-inner {
  padding: 0 1.3em 1.2em;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  max-width: 60ch;
}
@media (prefers-reduced-motion: no-preference) {
  .faq-item__a-inner { animation: faq-in 220ms ease; }
  @keyframes faq-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* --------------------------------------------------------------------------
   15. FORMULARIO
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg);
}
.form-grid { display: grid; gap: var(--space-md); }
@media (min-width: 700px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-text);
}
.field .hint { font-size: 0.82rem; color: var(--color-text-muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.9em;
  background: var(--color-white);
  font-size: var(--fs-base);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9FAEB6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(4,66,194,0.14);
  outline: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--color-error);
  background: #FDF6F5;
}
.field .error-msg {
  display: none;
  font-size: 0.82rem;
  color: var(--color-error);
  font-weight: 600;
}
.field.has-error .error-msg { display: block; }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(179,38,30,0.14);
}

.checkbox-field {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
.checkbox-field input {
  width: 1.25rem; height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15em;
  accent-color: var(--color-blue);
}
.checkbox-field a { font-weight: 600; }

.form-avisos { display: grid; gap: 0.6rem; margin-block: var(--space-md); }
.form-avisos p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-blue-bg);
  border-radius: var(--radius-sm);
  padding: 0.7em 1em;
}

.form-status {
  margin-top: var(--space-sm);
  padding: 0.9em 1.1em;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #EAF3E7; color: #285A27; display: block; }
.form-status.is-error { background: #FBEEED; color: var(--color-error); display: block; }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-blue-deep);
  color: var(--color-blue-bg);
  padding-block: var(--space-xl) var(--space-md);
}
.footer-top {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  margin-bottom: var(--space-md);
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr; }
}
.footer-brand { display: flex; align-items: flex-start; gap: 0.85rem; }
.footer-brand img { width: 3rem; height: 3rem; flex-shrink: 0; }
.footer-brand h2 {
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: 0.3em;
}
.footer-brand p { font-size: var(--fs-sm); color: var(--color-blue-bg); opacity: 0.85; }
.footer-col h3 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 0.9em;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6em; font-size: var(--fs-sm); }
.footer-col a { color: var(--color-blue-bg); text-decoration: none; }
.footer-col a:hover { color: var(--color-white); text-decoration: underline; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: rgba(232,238,249,0.7);
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0.4em 1.2em; list-style: none; padding: 0; }
.footer-legal-links a { color: rgba(232,238,249,0.85); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(232,238,249,0.65);
  max-width: 60ch;
  margin-top: var(--space-sm);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   17. UTILIDADES / ANIMACIONES DISCRETAS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: var(--radius-full);
  background: var(--color-blue-bg);
  color: var(--color-blue-deep);
}
.badge--soon { background: var(--color-cream); color: var(--color-text-muted); }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; }
.pill-list a, .pill-list span {
  display: inline-flex;
  padding: 0.5em 1em;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
}

.divider-organic {
  display: block;
  width: 100%;
  height: clamp(2.5rem, 6vw, 5rem);
  color: var(--color-cream);
}

/* Placeholder de fotografía real pendiente — bloque honesto, sin fabricar imágenes */
.photo-placeholder {
  position: relative;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-blue-bg), #DCEAD9);
  border: 1.5px dashed rgba(11,42,91,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: var(--space-md);
  min-height: 14rem;
  color: var(--color-blue-deep);
}
.photo-placeholder svg { opacity: 0.55; }
.photo-placeholder span {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--color-text-muted);
  max-width: 22rem;
}

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

/* --------------------------------------------------------------------------
   18. PÁGINAS LEGALES (privacidad, tratamiento de datos, términos)
   -------------------------------------------------------------------------- */
.legal-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--color-blue-deep);
}
.legal-content {
  max-width: 42rem;
  margin-inline: auto;
}
.legal-content h1 { font-size: var(--fs-xl); margin-bottom: 0.3em; }
.legal-content .updated { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-lg); }
.legal-content h2 {
  font-size: var(--fs-md);
  margin-top: var(--space-lg);
  margin-bottom: 0.6em;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content p, .legal-content li { color: var(--color-text-muted); }
.legal-content p + p, .legal-content ul { margin-top: 0.8em; }
.legal-content li + li { margin-top: 0.4em; }
.legal-content strong { color: var(--color-text); }
