/* =========================================================
   Qué Hacer Hoy · estilos
   Colores y tipografía sacados de los afiches (paleta Atardecer)
   ========================================================= */

/* Fuente Figtree, incluida en el sitio (no se carga desde Google) */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta */
  --crema: #FFF6EC;
  --noche: #13263F;      /* texto y títulos */
  --mar: #1F4E6E;        /* botones y links */
  --coral: #E8704F;      /* acentos */
  --coral-claro: #EE7F5E;
  --coral-oscuro: #C4502E; /* texto blanco chico sobre coral */
  --durazno: #F8D9AE;
  --durazno-2: #F2A47E;
  --sol: #FCEBC4;
  --ola-1: #4A8BA8;
  --ola-2: #3A6F8E;
  --ola-3: #2B5878;
  --ola-4: #1F3F5E;
  --gris: #3E5568;       /* texto secundario sobre crema */
  --gris-claro: #B9C7D6; /* texto secundario sobre azul */
  --borde: #EADFD0;

  --ancho: 72rem;
  --radio: 1.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--noche);
  background: var(--crema);
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
h3 { line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--mar); font-weight: 600; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--mar);
  outline-offset: 3px;
  border-radius: 0.35rem;
}
.oscuro :focus-visible { outline-color: var(--sol); }

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

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

.saltar {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--noche);
  color: #fff;
  border-radius: 0.5rem;
}
.saltar:focus { top: 1rem; }

/* ---------- Pastillas y etiquetas ---------- */
.pastilla {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--coral-oscuro);
  color: #fff;
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.etiqueta {
  display: block;
  margin-bottom: 0.9rem;
  font-weight: 900;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.boton:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .boton { transition: none; }
  .boton:hover { transform: none; }
}
.boton-mar { background: var(--mar); color: #fff; }
.boton-mar:hover { background: var(--noche); }
.boton-coral { background: var(--coral-claro); color: var(--noche); }
.boton-coral:hover { background: var(--durazno-2); }
.boton-borde { background: transparent; color: #fff; border-color: var(--ola-1); }
.boton-borde:hover { background: var(--noche); }

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--durazno) 0%, var(--durazno-2) 100%);
  padding: 2.5rem 0 7.5rem;
}
.hero-marca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}
.marca {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--noche);
  text-decoration: none;
}
.hero-ig {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--noche);
  font-size: 0.9375rem;
}
.hero-contenido { position: relative; z-index: 2; max-width: 40rem; }
.hero h1 {
  margin: 1.25rem 0 1.1rem;
  font-size: clamp(2.3rem, 11.4vw, 6.25rem);
  text-wrap: balance;
}
.hero h1 .linea { display: block; }
.hero-bajada {
  max-width: 28rem;
  font-size: clamp(1.2rem, 4.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}
.hero-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}
.hero-acciones a:not(.boton) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--noche);
}

.sol {
  position: absolute;
  z-index: 0;
  right: -4.5rem;
  bottom: 3.25rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: var(--sol);
}
.olas {
  position: absolute;
  z-index: 1;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 6.5rem;
}

@media (min-width: 48rem) {
  .hero { padding: 3rem 0 10rem; }
  .hero-marca { margin-bottom: 4.5rem; }
  .hero-contenido { max-width: 54rem; }
  .sol { width: 24rem; height: 24rem; right: 6%; bottom: 4.5rem; }
  .olas { height: 9.5rem; }
}

/* =========================================================
   Secciones generales
   ========================================================= */
.seccion { padding: 4.5rem 0; }
.seccion h2 { font-size: clamp(2.4rem, 9vw, 4rem); }
.seccion-intro { max-width: 40rem; margin-bottom: 2.5rem; }
.seccion-intro p {
  margin-top: 1rem;
  font-size: 1.1875rem;
  color: var(--gris);
}
.seccion-intro .etiqueta { color: var(--noche); }
@media (min-width: 48rem) {
  .seccion { padding: 6.5rem 0; }
}

/* ---------- 2. Qué es ---------- */
.beneficios {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.beneficio {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}
.beneficio-icono {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: var(--durazno);
  color: var(--noche);
}
.beneficio h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.beneficio p { color: var(--gris); }
@media (min-width: 40rem) {
  .beneficios { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .beneficios { grid-template-columns: repeat(4, 1fr); }
  .beneficio { flex-direction: column; }
}

/* ---------- Pasos (secciones 3 y 4) ---------- */
.pasos {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.paso {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.paso-numero {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
}
.paso-texto { padding-top: 0.15rem; font-size: 1.125rem; line-height: 1.4; }
.paso-texto strong {
  display: block;
  font-weight: 900;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

/* ---------- 3. Guarda lo que te interesa ---------- */
.guarda { display: grid; gap: 0.5rem; }
.guarda .paso-texto { color: var(--gris); }
.guarda .paso-texto strong { color: var(--noche); }
@media (min-width: 56rem) {
  .guarda { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
  .guarda .seccion-intro { margin-bottom: 0; }
}

/* Pantallas de la app a tamaño real (390 px de ancho, como un celular).
   Se deslizan de lado; en computador también hay flechas. */
.pantallas-controles {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.flecha {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 2px solid var(--noche);
  border-radius: 50%;
  background: transparent;
  color: var(--noche);
  cursor: pointer;
}
.flecha:hover:not(:disabled) { background: var(--noche); color: #fff; }
.flecha:disabled { opacity: 0.3; cursor: default; }
.pantallas {
  --borde-lateral: max(1.25rem, calc((100vw - var(--ancho)) / 2 + 1.25rem));
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 0.5rem var(--borde-lateral) 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--borde-lateral);
  scrollbar-width: thin;
  scrollbar-color: var(--durazno-2) transparent;
}
.pantalla {
  flex: none;
  width: min(80vw, 410px);
  margin: 0;
  scroll-snap-align: start;
}
.telefono {
  padding: 10px;
  background: var(--noche);
  border-radius: 54px;
  box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(19, 38, 63, 0.45);
}
.telefono img {
  width: 100%;
  height: auto;
  border-radius: 44px;
  background: var(--crema);
}
.pantalla figcaption {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--gris);
}
.nota-pantallas {
  font-size: 0.9375rem;
  color: var(--gris);
}
@media (min-width: 56rem) {
  .pantallas { gap: 2.5rem; }
}

/* =========================================================
   Zona azul (secciones 4 y 5)
   ========================================================= */
.oscuro { background: var(--ola-4); color: #fff; }
.oscuro a { color: #fff; }

.olas-divisor {
  display: block;
  width: 100%;
  height: 5rem;
  margin-bottom: -1px;
  background: var(--crema);
}
@media (min-width: 48rem) {
  .olas-divisor { height: 8rem; }
}

.oscuro .seccion { padding-top: 3rem; }
.oscuro .seccion h2 { color: #fff; }
.oscuro .seccion-intro p { color: var(--gris-claro); }

.tarjeta {
  position: relative;
  padding: 2.75rem 1.4rem 1.75rem;
  background: var(--noche);
  border: 1.5px solid var(--ola-1);
  border-radius: 1.5rem;
}
.tarjeta-etiqueta {
  position: absolute;
  top: 0;
  left: 1.4rem;
  transform: translateY(-50%);
}
@media (min-width: 48rem) {
  .tarjeta { padding: 3.25rem 2.5rem 2.5rem; }
  .tarjeta-etiqueta { left: 2.5rem; }
}

/* ---------- 4. Organizadores ---------- */
.organizadores-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.organizadores-cabecera .etiqueta { margin: 0; }
.organizadores .seccion-intro p.bajada-fuerte {
  color: #fff;
  font-weight: 600;
  font-size: 1.375rem;
}
.organizadores .pasos { margin-bottom: 2rem; }
.organizadores .paso-texto { color: var(--gris-claro); }
.organizadores .paso-texto strong { color: #fff; }
.nota {
  padding-top: 1.5rem;
  border-top: 1px solid var(--ola-3);
  color: var(--gris-claro);
}
.contacto-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.oscuro .boton-coral { color: var(--noche); }
@media (min-width: 56rem) {
  .organizadores-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
    align-items: start;
  }
}

/* ---------- 5. Formulario ---------- */
.formulario-seccion { padding-bottom: 5rem; }
.formulario-grid { display: grid; gap: 3rem; }
@media (min-width: 56rem) {
  .formulario-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
}

.campo { margin-bottom: 1.4rem; }
.campo label,
.campo legend {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: #fff;
}
.opcional { font-weight: 500; color: var(--gris-claro); }
.campo input[type="email"],
.campo select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 500;
  color: var(--noche);
  background: var(--crema);
  border: 2px solid var(--ola-1);
  border-radius: 0.85rem;
}
.campo select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%2313263F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.campo input:focus-visible,
.campo select:focus-visible {
  outline: 3px solid var(--sol);
  outline-offset: 2px;
}

.consentimiento {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 1.75rem 0 1.5rem;
}
.consentimiento input {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0.1rem 0 0;
  accent-color: var(--coral);
  cursor: pointer;
}
.consentimiento label { color: #fff; cursor: pointer; }
.consentimiento a { text-decoration: underline; }

.formulario .boton { width: 100%; }
@media (min-width: 40rem) {
  .formulario .boton { width: auto; min-width: 14rem; }
}
.microtexto {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--gris-claro);
}
.trampa { display: none; }

/* =========================================================
   6. Preguntas frecuentes
   ========================================================= */
.faq-lista { max-width: 48rem; }
.faq {
  border-bottom: 1px solid var(--borde);
}
.faq:first-child { border-top: 1px solid var(--borde); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 1rem 0;
  font-weight: 900;
  font-size: 1.1875rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--durazno) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 2v10M2 7h10' stroke='%2313263F' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
}
.faq[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h10' stroke='%2313263F' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq p {
  padding: 0 3rem 1.25rem 0;
  color: var(--gris);
}

/* =========================================================
   7. Footer
   ========================================================= */
.pie {
  padding: 3rem 0 2.5rem;
  background: var(--noche);
  color: var(--gris-claro);
}
.pie a { color: #fff; }
.pie-grid {
  display: grid;
  gap: 1.5rem;
}
.pie .marca { color: #fff; font-size: 1.5rem; }
.pie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pie-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.pie-legal { font-size: 0.9375rem; }
@media (min-width: 48rem) {
  .pie-grid { grid-template-columns: auto 1fr; align-items: center; }
  .pie-links { justify-content: flex-end; }
}

/* =========================================================
   Páginas simples (gracias, privacidad, 404)
   ========================================================= */
.hero-simple { padding-bottom: 6rem; }
.hero-simple .hero-marca { margin-bottom: 2.5rem; }
.hero-simple h1 { font-size: clamp(2.6rem, 11vw, 5rem); }
@media (min-width: 48rem) {
  .hero-simple { padding-bottom: 8rem; }
  .hero-simple .sol { width: 18rem; height: 18rem; }
}

.texto-legal { max-width: 44rem; padding: 3.5rem 1.25rem 5rem; margin: 0 auto; }
.texto-legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.texto-legal p,
.texto-legal li { color: var(--gris); }
.texto-legal p + p { margin-top: 1.1rem; }
.texto-legal p { font-size: 1.125rem; }
.texto-legal ul { padding-left: 1.25rem; }
.texto-legal li { margin-bottom: 0.4rem; }
.texto-legal strong { color: var(--noche); }
.aviso-borrador {
  padding: 1rem 1.25rem;
  border: 2px solid var(--coral);
  border-radius: 1rem;
  background: #fff;
  color: var(--noche);
  font-weight: 600;
}

/* Etiquetas sobre fondo azul */
.oscuro .seccion-intro .etiqueta { color: var(--durazno-2); }
.pagina-corta { background: var(--noche); }

/* Logo como link: área táctil de al menos 44 px */
.marca { display: inline-flex; align-items: center; min-height: 2.75rem; }
/* Casilla de consentimiento: área táctil más grande */
.consentimiento input { width: 1.75rem; height: 1.75rem; }

/* Opciones "¿Cuál es tu caso?" (obligatorio, una sola) */
.opciones { margin: 0 0 1.4rem; padding: 0; border: 0; min-width: 0; }
.opciones legend { padding: 0; }
.opcion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  margin-top: 0.6rem;
  padding: 0.6rem 1rem;
  border: 2px solid var(--ola-1);
  border-radius: 0.85rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.opcion:hover { border-color: var(--sol); }
.opcion input {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  accent-color: var(--coral);
  cursor: pointer;
}
.opcion:has(input:checked) { border-color: var(--coral-claro); background: var(--ola-4); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--sol); outline-offset: 2px; }

