/* Zaranda — Sitio público. Móvil primero. Paleta oficial azul + naranja (Manual de Marca, hex corregidos). */

/* ===== Tipografías ===== */
/* Brandon en WOFF2 (subset latino, ~24 KB por peso; el OTF de 90 KB queda de respaldo) */
@font-face {
  font-family: "Brandon";
  src: url("../fonts/Brandon_light.woff2") format("woff2"), url("../fonts/Brandon_light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Brandon";
  src: url("../fonts/Brandon_med.woff2") format("woff2"), url("../fonts/Brandon_med.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Brandon";
  src: url("../fonts/Brandon_bld.woff2") format("woff2"), url("../fonts/Brandon_bld.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Brandon";
  src: url("../fonts/Brandon_blk.woff2") format("woff2"), url("../fonts/Brandon_blk.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --azul: #76aadb;          /* azul corporativo */
  --azul-suave: #eaf3fb;    /* fondos de sección */
  --azul-oscuro: #2b5d8c;   /* titulares y enlaces sobre blanco (contraste AA) */
  --azul-noche: #22405c;    /* fondo del pie de página */
  --naranja: #f5a623;       /* CTAs, acentos */
  --naranja-oscuro: #b26a00;/* texto naranja accesible sobre blanco */
  --texto: #2b2b2b;
  --gris-claro: #f4f4f4;
  --blanco: #ffffff;
  --titulos: "Brandon", "Trebuchet MS", system-ui, sans-serif;
  --cuerpo: "Raleway", "Segoe UI", system-ui, sans-serif;
  --ancho-max: 1120px;
  --radio: 12px;
  --sombra: 0 2px 14px rgba(34, 64, 92, 0.12);
}

/* ===== Base ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--cuerpo);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
}

h1, h2, h3, h4 {
  font-family: var(--titulos);
  line-height: 1.15;
  color: var(--azul-oscuro);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--azul-oscuro); }
a:hover { color: var(--naranja-oscuro); }

img { max-width: 100%; height: auto; }

.contenedor {
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Accesibilidad: saltar al contenido */
.salto {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--naranja);
  color: var(--texto);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radio) 0;
  z-index: 100;
}
.salto:focus { left: 0; }

/* Texto solo para lectores de pantalla */
.solo-lector {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 999px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra); }

.btn-naranja { background: var(--naranja); color: #3a2a00; }
.btn-borde {
  background: transparent;
  color: var(--azul-oscuro);
  border: 2px solid var(--azul);
}
.btn-blanco { background: var(--blanco); color: var(--azul-oscuro); }

/* Botón compacto "Ver en Google Maps" (tarjetas de estaciones/sede) */
.btn-mapa { font-size: 0.95rem; padding: 0.55rem 1.2rem; }

/* ===== Cabecera ===== */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanco);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.cabecera-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  max-width: var(--ancho-max);
  margin: 0 auto;
}

.marca { display: flex; align-items: center; flex-shrink: 0; }
.marca img { height: 44px; width: auto; }

/* Botón hamburguesa (solo móvil) */
.nav-boton {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 2px solid var(--azul);
  border-radius: 8px;
  cursor: pointer;
}
.nav-boton span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--azul-oscuro);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Navegación */
.nav { display: none; width: 100%; }
.nav.abierta { display: block; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
}

.nav a {
  display: block;
  padding: 0.7rem 1.25rem;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--texto);
  border-left: 4px solid transparent;
}
.nav a:hover { color: var(--azul-oscuro); background: var(--azul-suave); }
.nav a[aria-current="page"] {
  color: var(--azul-oscuro);
  border-left-color: var(--naranja);
  background: var(--azul-suave);
}

@media (min-width: 900px) {
  .nav-boton { display: none; }
  .nav { display: block !important; width: auto; }
  .nav ul { display: flex; gap: 0.25rem; padding: 0; }
  .nav a {
    padding: 0.5rem 0.9rem;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .nav a:hover { background: transparent; }
  .nav a[aria-current="page"] {
    background: transparent;
    border-bottom-color: var(--naranja);
  }
  .marca img { height: 52px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--azul) 0%, #9ec4e8 60%, var(--azul-suave) 100%);
  color: var(--texto);
  overflow: hidden;
}

.hero-contenido {
  position: relative;
  z-index: 1;
  padding: 4rem 0 4.5rem;
  max-width: 40rem;
}

.hero h1 { color: #17344d; }
.hero .lema-vida { color: var(--blanco); text-shadow: 0 1px 8px rgba(23, 52, 77, 0.45); }
.hero .lema-naranja, .hero .lema-naturaleza { color: var(--naranja); text-shadow: 0 1px 6px rgba(23, 52, 77, 0.25); }

.hero p {
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}

/* Página interior: franja de título */
.franja {
  background: linear-gradient(160deg, var(--azul) 0%, #9ec4e8 100%);
  padding: 2.75rem 0;
}
.franja h1 { color: #17344d; margin: 0; }
.franja p { margin: 0.5rem 0 0; font-size: 1.1rem; max-width: 46rem; }

/* ===== Secciones ===== */
.seccion { padding: 3.25rem 0; }
.seccion-azul { background: var(--azul-suave); }
.seccion-gris { background: var(--gris-claro); }

.seccion h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.35rem;
  border-radius: 2px;
  background: var(--naranja);
}
.seccion .centrado h2::after, .seccion h2.centrado::after { margin-left: auto; margin-right: auto; }
.centrado { text-align: center; }

/* Tarjetas genéricas */
.tarjetas {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 720px) { .tarjetas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tarjetas-3 { grid-template-columns: repeat(3, 1fr); } }

.tarjeta {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tarjeta .btn { align-self: flex-start; margin-top: auto; }

/* Aviso "próximamente" (placeholders ECA/PQR) */
.aviso {
  background: #fff7e8;
  border: 1px solid var(--naranja);
  border-radius: var(--radio);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* ===== Banner pre-footer (CTA) ===== */
.banner-cta {
  background: linear-gradient(120deg, var(--naranja) 0%, #f7bb55 100%);
  padding: 3rem 0;
  text-align: center;
}
.banner-cta h2 { color: #3a2a00; }
.banner-cta h2::after { display: none; }
.banner-cta .btn { margin-top: 0.75rem; }

/* ===== Hero con fotografía (Inicio) ===== */
.hero-foto {
  position: relative;
  background: var(--azul-noche);
  color: var(--blanco);
}
.hero-foto .hero-fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-foto .hero-velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 52, 77, 0.85) 0%, rgba(23, 52, 77, 0.6) 100%);
}
@media (min-width: 900px) {
  .hero-foto .hero-velo {
    background: linear-gradient(100deg, rgba(23, 52, 77, 0.88) 0%, rgba(23, 52, 77, 0.62) 55%, rgba(23, 52, 77, 0.35) 100%);
  }
}
.hero-foto .hero-contenido { padding: 4.5rem 0 5rem; }
.hero-foto h1 { color: var(--blanco); }
.hero-foto .lema-naranja { color: var(--naranja); }
.hero-foto p { color: #e8f0f7; }

/* ===== Fila media: imagen + texto ===== */
.fila-media {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}
.fila-media img {
  width: 100%;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  object-fit: cover;
}
@media (min-width: 900px) {
  .fila-media { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .fila-media.invertida .fila-media-texto { order: -1; }
  .fila-media img { height: 100%; max-height: 460px; }
}

/* ===== Valores ===== */
.valores {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.8rem;
  padding: 0;
  margin: 1.5rem 0;
}
.valores li {
  background: var(--blanco);
  border: 2px solid var(--azul);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-family: var(--titulos);
  font-weight: 700;
  color: var(--azul-oscuro);
}
.valores li:nth-child(even) { border-color: var(--naranja); }
.valores-remate {
  border-left: 4px solid var(--naranja);
  padding: 0.35rem 0 0.35rem 1.1rem;
  font-style: italic;
  font-size: 1.08rem;
  max-width: 46rem;
}

/* ===== Misión / Visión ===== */
.tarjeta-acento-azul { border-top: 5px solid var(--azul); }
.tarjeta-acento-naranja { border-top: 5px solid var(--naranja); }

/* ===== En Cifras ===== */
.cifras {
  position: relative;
  overflow: hidden;
  background: var(--azul-noche);
  color: var(--blanco);
  padding: 3.5rem 0;
  text-align: center;
}
.cifras-fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cifras-velo {
  position: absolute;
  inset: 0;
  background: rgba(29, 53, 76, 0.86);
}
.cifras .contenedor { position: relative; }
.cifras h2 { color: var(--blanco); }
.cifras h2::after { margin-left: auto; margin-right: auto; }
.cifras-circulo {
  width: 250px;
  height: 250px;
  margin: 2rem auto 1.25rem;
  border: 6px solid var(--naranja);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 1.5rem;
}
.cifras-numero {
  font-family: var(--titulos);
  font-weight: 900;
  font-size: 3.1rem;
  line-height: 1;
  color: var(--naranja);
}
.cifras-etiqueta {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}
.cifras-nota { color: #c9d9e7; font-size: 0.95rem; max-width: 34rem; margin: 0 auto; }

/* ===== Aliados ===== */
.aliados-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3.5rem;
  margin-top: 2.25rem;
}
.aliados-logos img { height: 52px; width: auto; }
@media (min-width: 720px) { .aliados-logos img { height: 64px; } }

/* ===== Tarjetas con foto (servicios) ===== */
.tarjeta-foto {
  width: calc(100% + 3rem);
  max-width: none;
  height: 210px;
  object-fit: cover;
  margin: -1.75rem -1.5rem 1rem;
  border-radius: var(--radio) var(--radio) 0 0;
}
.botones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: auto; padding-top: 0.75rem; }
.botones .btn { margin-top: 0; }
.tarjeta .botones { align-self: stretch; }

/* ===== Tarjetas de descarga (Documentos) ===== */
.doc-tipo {
  display: inline-block;
  align-self: flex-start;
  background: var(--azul-suave);
  color: var(--azul-oscuro);
  border-radius: 6px;
  padding: 0.15rem 0.6rem;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ===== ECA y Rutas ===== */
.banner-enlace { display: block; margin-top: 2rem; }
.banner-enlace img { display: block; border-radius: var(--radio); box-shadow: var(--sombra); }

.color-muestra {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #d5e2ec;
  flex-shrink: 0;
}
/* Código de colores nacional (Resolución 2184 de 2019) — clases y no estilos
   inline: la CSP de producción (style-src 'self') bloquea el atributo style. */
.muestra-blanca { background: #ffffff; }
.muestra-negra { background: #2b2b2b; }
.muestra-verde { background: #3d8b40; }

.ruta-codigo {
  display: inline-block;
  align-self: flex-start;
  background: var(--azul-suave);
  color: var(--azul-oscuro);
  border-radius: 6px;
  padding: 0.15rem 0.6rem;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.lista-condiciones { padding-left: 1.2rem; margin: 1rem 0 0; }
.lista-condiciones li { margin-bottom: 0.6rem; }

/* ===== PQR ===== */
.ayuda-pqr { font-size: 0.92rem; color: #51626f; max-width: 46rem; }

/* ===== Contacto ===== */
.contacto-rotulo {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 0.9rem;
  color: #51626f;
  margin: 0.5rem 0 0;
}

.contacto-enlace {
  display: block;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.12rem;
  word-break: break-word;
}

/* Enlaces de redes: icono de la marca + nombre, en una línea. */
.contacto-red {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.icono-red {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: currentColor;
}

/* ===== Formulario (PQR) ===== */
.formulario { max-width: 640px; display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.formulario fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.formulario fieldset[disabled] { opacity: 0.65; }
.campo { display: grid; gap: 0.4rem; }
.campo label {
  font-family: var(--titulos);
  font-weight: 700;
  color: var(--azul-oscuro);
}
.campo input,
.campo select,
.campo textarea {
  padding: 0.7rem 0.9rem;
  border: 2px solid #b9cddd;
  border-radius: 8px;
  font-family: var(--cuerpo);
  font-size: 1rem;
  color: var(--texto);
  background: var(--blanco);
  width: 100%;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: 3px solid var(--naranja);
  outline-offset: 1px;
  border-color: var(--azul-oscuro);
}
.campo .ayuda { font-size: 0.88rem; color: #51626f; margin: 0; }

/* ===== Pie de página ===== */
.pie {
  background: var(--azul-noche);
  color: #dbe7f1;
  padding: 3rem 0 0;
  font-size: 0.95rem;
}

.pie a { color: var(--blanco); }
.pie a:hover { color: var(--naranja); }

.pie-columnas {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 720px) {
  .pie-columnas { grid-template-columns: 1.3fr 1fr 1fr; }
}

.pie h3 { color: var(--blanco); font-size: 1.1rem; }
.pie-logo { max-width: 190px; margin-bottom: 0.75rem; }

.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin-bottom: 0.5rem; }

.pie-final {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}
.pie-final p { margin: 0; }

/* Acceso al módulo de registro (uso interno): discreto, fuera del menú. */
.pie a.pie-acceso {
  color: #a9c2d8;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.pie a.pie-acceso:hover,
.pie a.pie-acceso:focus-visible {
  color: var(--naranja);
  border-bottom-color: var(--naranja);
}
