/* ============================================================
   Respira Venezuela · styles.css · v2 (rediseño "mini-app de calma")
   Mobile-first · sin frameworks · sin fuentes externas
   ============================================================ */

:root {
  /* Paleta */
  --azul-profundo: #16395a;
  --azul: #1e4e79;
  --azul-medio: #2f6ba0;
  --azul-suave: #7fa8cc;
  --celeste: #eaf4fb;
  --celeste-2: #f4f9fd;
  --celeste-borde: #d8e8f4;
  --blanco: #ffffff;
  --amarillo: #f5c842;
  --rojo: #ce4a4a;
  --coral: #e97b6f;           /* corazón: cálido, no rojo-alarma */
  --texto: #24313d;
  --texto-suave: #55677a;
  --crema-aviso: #fdf6e3;
  --crema-borde: #e8c25a;
  --exito-fondo: #edf8ef;
  --exito-borde: #9fd3a8;

  /* Sistema */
  --radio: 24px;
  --radio-chico: 14px;
  --sombra: 0 6px 24px rgba(30, 78, 121, 0.09);
  --sombra-chica: 0 2px 8px rgba(30, 78, 121, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

.contenedor { max-width: 960px; margin: 0 auto; padding: 0 22px; }
.contenedor-angosto { max-width: 600px; }

h1, h2, h3 { line-height: 1.2; color: var(--azul-profundo); margin: 0 0 0.5em; }
h1 { font-size: 2.5rem; letter-spacing: -1px; font-weight: 800; }
h2 { font-size: 1.55rem; letter-spacing: -0.3px; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--azul-medio); }

.oculto { position: absolute; left: -9999px; }

.icono-corazon {
  width: 16px; height: 16px;
  fill: var(--coral);
  vertical-align: -2px;
}

/* ---------- Barra tricolor superior ---------- */
.barra-tricolor {
  display: flex;
  height: 4px;
}
.barra-tricolor span { flex: 1; }
.barra-tricolor span:nth-child(1) { background: var(--amarillo); }
.barra-tricolor span:nth-child(2) { background: var(--azul-medio); }
.barra-tricolor span:nth-child(3) { background: var(--rojo); }

/* ---------- Navegación sticky ---------- */
.navegacion {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--celeste-borde);
}
.navegacion-pistas {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-start;
}
.navegacion-pistas::-webkit-scrollbar { display: none; }
.navegacion-pistas a {
  flex-shrink: 0;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--azul);
  padding: 7px 15px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.navegacion-pistas a:hover { background: var(--celeste); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--celeste) 0%, var(--celeste-2) 55%, #dcecf8 100%);
  padding: 48px 0 90px;
  overflow: hidden;
}

.hero-rejilla {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--azul-medio);
  background: var(--blanco);
  border: 1px solid var(--celeste-borde);
  border-radius: 999px;
  padding: 7px 16px;
  margin: 0 0 18px;
  box-shadow: var(--sombra-chica);
}

.tricolor-linea {
  display: flex;
  width: 96px;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0 20px;
}
.tricolor-linea span { flex: 1; }
.tricolor-linea span:nth-child(1) { background: var(--amarillo); }
.tricolor-linea span:nth-child(2) { background: var(--azul-medio); }
.tricolor-linea span:nth-child(3) { background: var(--rojo); }

.hero-frase {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--azul);
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--azul-medio);
  margin-bottom: 14px;
}

.hero-parrafo {
  color: var(--texto-suave);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-botones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin-bottom: 22px;
}

.hero-firma { font-size: 0.85rem; color: var(--texto-suave); margin: 0; }

/* Anillos del hero */
.hero-visual {
  display: flex;
  justify-content: center;
  order: -1;               /* en móvil: arriba del texto, pequeño */
  margin-top: 8px;
}
.anillos {
  position: relative;
  width: 190px;
  height: 190px;
}
.anillo {
  position: absolute;
  border-radius: 50%;
  inset: 0;
}
.anillo-1 { background: rgba(47, 107, 160, 0.10); }
.anillo-2 { inset: 13%; background: rgba(47, 107, 160, 0.16); }
.anillo-3 { inset: 27%; background: rgba(47, 107, 160, 0.24); }
.anillo-centro {
  position: absolute;
  inset: 41%;
  border-radius: 50%;
  background: var(--blanco);
  box-shadow: var(--sombra);
  display: flex;
  align-items: center;
  justify-content: center;
}
.anillo-centro .corazon-centro {
  width: 46%;
  fill: var(--coral);
}
/* Latido muy sutil */
@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.anillos { animation: latido 6s ease-in-out infinite; }

.onda {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  display: block;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sombra-chica);
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.boton:active { transform: scale(0.98); }
.boton:hover { box-shadow: var(--sombra); }

.boton-primario { background: var(--azul); color: var(--blanco); }
.boton-primario:hover { background: var(--azul-profundo); }

.boton-secundario {
  background: var(--blanco);
  color: var(--azul);
  border: 2px solid var(--azul);
}
.boton-secundario:hover { background: var(--celeste); }

.boton-suave { background: var(--celeste); color: var(--azul); box-shadow: none; }
.boton-suave:hover { background: var(--celeste-borde); }
.boton-suave:disabled, .boton-primario:disabled {
  opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none;
}

.boton-claro { background: var(--blanco); color: var(--azul); }
.boton-claro:hover { background: var(--celeste); }

.boton-whatsapp { background: #25d366; color: var(--blanco); }
.boton-whatsapp:hover { background: #1fb658; }

.boton-completo { width: 100%; }

a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 2px;
}

/* ---------- Aviso de emergencia ---------- */
.franja-aviso { padding: 34px 0 0; }
.aviso {
  display: flex;
  gap: 16px;
  background: var(--crema-aviso);
  border: 1px solid #f0e3bd;
  border-left: 6px solid var(--crema-borde);
  border-radius: var(--radio-chico);
  padding: 20px 22px;
  font-size: 0.95rem;
  box-shadow: var(--sombra-chica);
}
.aviso-icono { font-size: 1.4rem; line-height: 1.4; }
.aviso-titulo { font-weight: 800; color: #7a5a00; margin-bottom: 4px; font-size: 1.02rem; }
.aviso p:last-child { margin-bottom: 0; }

/* ---------- Secciones ---------- */
.seccion { padding: 60px 0; }
.seccion-celeste { background: var(--celeste-2); }
.seccion-intro { color: var(--texto-suave); max-width: 560px; }

.seccion-azul {
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-profundo) 100%);
  color: #e8f1f9;
  text-align: center;
  border-radius: 0;
}
.seccion-azul h2 { color: var(--blanco); }
.seccion-azul p { max-width: 580px; margin-left: auto; margin-right: auto; }
.seccion-azul .boton { margin-top: 10px; }
.apoyo-corazon svg { width: 42px; fill: var(--coral); margin-bottom: 6px; }
.apoyo-nota {
  display: inline-block;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 18px;
}

/* ---------- Tarjetas ---------- */
.tarjeta {
  background: var(--blanco);
  border: 1px solid var(--celeste-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 26px 24px;
}
.tarjeta-icono { font-size: 1.8rem; margin-bottom: 8px; }
.tarjeta h3 { color: var(--azul); }
.tarjeta p { margin: 0; font-size: 0.97rem; color: var(--texto-suave); }

.tarjetas-3 { display: grid; gap: 18px; margin-top: 24px; }

/* ---------- Respiración ---------- */
.tarjeta-respiracion {
  text-align: center;
  margin-top: 24px;
  padding: 30px 22px 34px;
}

.respiracion-duraciones {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.chip {
  border: 1.5px solid var(--celeste-borde);
  background: var(--blanco);
  color: var(--texto-suave);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip-activo { background: var(--azul); border-color: var(--azul); color: var(--blanco); box-shadow: var(--sombra-chica); }

.escenario {
  height: 250px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.escenario-anillos { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.anillo-fijo { position: absolute; border-radius: 50%; }
.af-1 { width: 240px; height: 240px; background: rgba(47, 107, 160, 0.07); }
.af-2 { width: 200px; height: 200px; background: rgba(47, 107, 160, 0.10); }

.circulo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #bfe0f7, var(--azul-medio));
  transform: scale(0.6);
  will-change: transform;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  box-shadow: 0 10px 30px rgba(30, 78, 121, 0.25);
}
.corazon-circulo { width: 30px; fill: rgba(255, 255, 255, 0.85); }

.fase {
  position: relative;
  z-index: 1;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--azul-profundo);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.95), 0 0 4px rgba(255, 255, 255, 0.9);
  margin: 0;
  pointer-events: none;
}

.tiempo-restante {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--texto-suave);
  font-variant-numeric: tabular-nums;
  margin: 8px 0 10px;
}

.progreso {
  width: min(280px, 80%);
  height: 6px;
  background: var(--celeste);
  border-radius: 3px;
  margin: 0 auto 22px;
  overflow: hidden;
}
.progreso-barra {
  width: 0%;
  height: 100%;
  background: var(--azul-medio);
  border-radius: 3px;
}

.respiracion-controles {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.respiracion-patron { font-size: 0.85rem; color: var(--texto-suave); margin: 0; }

.mensaje-final {
  margin: 18px auto 0;
  max-width: 400px;
  background: var(--exito-fondo);
  border: 1px solid var(--exito-borde);
  border-radius: var(--radio-chico);
  padding: 14px 18px;
  font-weight: 600;
  color: #256b33;
}

/* ---------- 5-4-3-2-1 ---------- */
.anclaje { display: grid; gap: 12px; margin: 22px 0; }
.anclaje-paso {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--blanco);
  border: 1px solid var(--celeste-borde);
  border-radius: var(--radio-chico);
  box-shadow: var(--sombra-chica);
  padding: 14px 18px;
}
.anclaje-paso p { margin: 0; }
.anclaje-num {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anclaje-cierre { font-weight: 700; color: var(--azul); }

/* ---------- Checklist dormir ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  background: var(--celeste-2);
  border: 1px solid var(--celeste-borde);
  border-radius: var(--radio-chico);
  padding: 14px 18px 14px 50px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--azul-medio);
  color: var(--blanco);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Formulario ---------- */
.tarjeta-form { margin-top: 24px; }

.campo { margin-bottom: 22px; }
.campo label, .campo legend {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--azul-profundo);
  font-size: 0.97rem;
}
.ayuda { font-weight: 400; color: var(--texto-suave); font-size: 0.85rem; }

input[type="text"], input[type="number"], input[type="tel"],
select, textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--texto);
  background: var(--celeste-2);
  border: 1.5px solid var(--celeste-borde);
  border-radius: var(--radio-chico);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--azul-medio);
  background: var(--blanco);
}

.campo-mitad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

fieldset.campo { border: none; padding: 0; margin-left: 0; margin-right: 0; }

.opciones { display: grid; gap: 4px; }
.opciones label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--texto);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.opciones label:hover { background: var(--celeste-2); }
.opciones input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--azul);
  flex-shrink: 0;
}

.campo-consentimiento label {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--texto-suave);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.campo-consentimiento input[type="checkbox"] {
  width: 22px; height: 22px;
  margin-top: 2px;
  accent-color: var(--azul);
  flex-shrink: 0;
}

.alerta-urgente {
  background: #fdecec;
  border: 1.5px solid var(--rojo);
  border-left-width: 6px;
  border-radius: var(--radio-chico);
  padding: 18px 20px;
  margin-bottom: 22px;
  font-size: 0.94rem;
}
.alerta-urgente p:last-child { margin-bottom: 0; }
.alerta-urgente strong { color: #9c2b2b; }

.form-error { margin-top: 14px; color: #9c2b2b; font-weight: 700; }

.form-exito {
  background: var(--exito-fondo);
  border: 1.5px solid var(--exito-borde);
  border-radius: var(--radio-chico);
  padding: 24px;
}
.form-exito h3 { color: #256b33; }
.form-exito p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
details {
  background: var(--blanco);
  border: 1px solid var(--celeste-borde);
  border-radius: var(--radio-chico);
  box-shadow: var(--sombra-chica);
  padding: 4px 20px;
  margin-bottom: 12px;
}
summary {
  font-weight: 700;
  color: var(--azul-profundo);
  cursor: pointer;
  padding: 14px 26px 14px 0;
  position: relative;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--azul-medio);
  transition: transform 0.2s ease;
}
details[open] summary::after { content: "–"; }
details p { color: var(--texto-suave); padding-bottom: 14px; margin: 0; }

/* ---------- Compartir ---------- */
.seccion-compartir { text-align: center; padding-bottom: 70px; }
.seccion-compartir .seccion-intro { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.pie {
  background: var(--azul-profundo);
  color: #b9cede;
  font-size: 0.83rem;
  line-height: 1.75;
  padding: 44px 0 34px;
  text-align: center;
}
.pie-marca {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pie-sub { color: #d7e5f0; margin-bottom: 26px; }
.pie-legal { max-width: 640px; margin: 0 auto 28px; }

.pie-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  opacity: 0.85;
}
.pie-logo-etiqueta { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; }
.pie-logo img { display: block; height: 40px; width: auto; }
.pie-logo-texto { display: none; font-weight: 800; color: var(--blanco); letter-spacing: 1px; }
.pie-logo-texto em { font-style: normal; font-weight: 400; }
.pie-logo.sin-logo img { display: none; }
.pie-logo.sin-logo .pie-logo-texto { display: block; }

.tricolor-pie { margin: 0 auto; }

/* ---------- Botón flotante ---------- */
.whatsapp-flotante {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--blanco);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  z-index: 50;
}
.whatsapp-flotante:hover { background: #1fb658; }
.whatsapp-flotante span { display: none; }   /* en móvil: solo ícono, no tapa contenido */

/* ---------- Escritorio ---------- */
@media (min-width: 720px) {
  h1 { font-size: 3.3rem; }
  h2 { font-size: 1.85rem; }

  .hero { padding: 70px 0 100px; }
  .hero-rejilla { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
  .hero-visual { order: 0; }
  .anillos { width: 320px; height: 320px; }
  .hero-botones { flex-direction: row; max-width: none; }

  .navegacion-pistas { justify-content: center; }

  .tarjetas-3 { grid-template-columns: repeat(3, 1fr); }

  .escenario { height: 300px; }
  .af-1 { width: 300px; height: 300px; }
  .af-2 { width: 250px; height: 250px; }
  .circulo { width: 190px; height: 190px; }

  .whatsapp-flotante span { display: inline; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
