/* Flete Justo · Landing · estilos (diseño). Los textos están en index.html */
:root {
  --azul: #1f3a5f;
  --azul-osc: #14263f;
  --amarillo: #ffd23f;
  --verde: #2e9e4f;
  --rojo: #e2463f;
  --texto: #1b2430;
  --gris: #5b6675;
  --fondo: #f6f4ef;
  --blanco: #ffffff;
  --radio: 16px;
  --sombra: 0 10px 30px rgba(20, 38, 63, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.55;
  font-size: 17px;
  padding-bottom: 84px; /* espacio para el botón flotante */
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Archivo Black", "Arial Black", sans-serif; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); text-align: center; margin-bottom: 14px; }
.sub { text-align: center; color: var(--gris); max-width: 640px; margin: 0 auto 32px; }
.contenedor { width: min(1080px, 100% - 32px); margin-inline: auto; }
section { padding: 64px 0; }

/* Barra superior */
.barra {
  background: var(--azul-osc);
  color: var(--blanco);
  text-align: center;
  font-size: .9rem;
  padding: 8px 16px;
}
.barra strong { color: var(--amarillo); }

/* Semáforo (logo) */
.semaforo { display: inline-flex; gap: 6px; vertical-align: middle; }
.semaforo span { width: 14px; height: 14px; border-radius: 50%; }
.semaforo span:nth-child(1) { background: var(--rojo); }
.semaforo span:nth-child(2) { background: var(--amarillo); }
.semaforo span:nth-child(3) { background: var(--verde); }

/* Botones */
.boton {
  display: inline-block;
  background: var(--amarillo);
  color: var(--azul-osc);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  box-shadow: 0 6px 0 #d9ad16;
  transition: transform .15s, box-shadow .15s;
}
.boton:hover { transform: translateY(2px); box-shadow: 0 4px 0 #d9ad16; }
.boton:active { transform: translateY(6px); box-shadow: none; }
.confianza { margin-top: 12px; font-size: .9rem; color: inherit; opacity: .85; }
.cta { text-align: center; margin-top: 36px; }

/* Hero */
.hero {
  position: relative;
  color: var(--blanco);
  background: linear-gradient(180deg, rgba(20,38,63,.55) 0%, rgba(20,38,63,.75) 70%, var(--azul-osc) 100%),
              url("img/hero-fondo.png") center 70% / cover no-repeat;
  padding: 40px 0 72px;
  overflow: hidden;
}
.hero .marca { font-family: "Archivo Black", sans-serif; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); text-shadow: 0 3px 12px rgba(0,0,0,.35); margin-bottom: 16px; }
.hero p { font-size: 1.15rem; max-width: 560px; margin-bottom: 26px; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.etiquetas span { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }

/* Celular con la captura */
.celular {
  width: min(320px, 82vw);
  margin-inline: auto;
  background: #0d0d0d;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  animation: flotar 5s ease-in-out infinite;
}
.celular img { border-radius: 26px; }
.etiqueta-semaforo {
  margin: -26px auto 0;
  position: relative;
  width: fit-content;
  background: var(--amarillo);
  color: var(--azul-osc);
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--sombra);
}
@keyframes flotar { 50% { transform: translateY(-10px); } }

/* Luces del semáforo que caen (decoración del hero) */
.luces { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.luces i {
  position: absolute; top: -20px; width: 10px; height: 10px; border-radius: 50%;
  opacity: .55; animation: caer linear infinite;
}
.luces i:nth-child(3n+1) { background: var(--rojo); }
.luces i:nth-child(3n+2) { background: var(--amarillo); }
.luces i:nth-child(3n)   { background: var(--verde); }
.luces i:nth-child(1) { left: 6%;  animation-duration: 11s; }
.luces i:nth-child(2) { left: 18%; animation-duration: 14s; animation-delay: 3s; }
.luces i:nth-child(3) { left: 33%; animation-duration: 12s; animation-delay: 6s; }
.luces i:nth-child(4) { left: 52%; animation-duration: 15s; animation-delay: 1s; }
.luces i:nth-child(5) { left: 67%; animation-duration: 13s; animation-delay: 5s; }
.luces i:nth-child(6) { left: 81%; animation-duration: 16s; animation-delay: 2s; }
.luces i:nth-child(7) { left: 93%; animation-duration: 12s; animation-delay: 7s; }
@keyframes caer { to { transform: translateY(110vh); } }
.hero .contenedor { position: relative; z-index: 1; }

/* Problema */
.problema { background: var(--blanco); }
.cuenta {
  max-width: 560px; margin: 0 auto; background: var(--fondo);
  border-radius: var(--radio); padding: 24px; box-shadow: var(--sombra);
}
.cuenta li { list-style: none; display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #d6d1c4; }
.cuenta li:last-child { border: 0; font-weight: 800; color: var(--rojo); font-size: 1.15rem; padding-top: 12px; }
.cuenta .oferta { font-weight: 800; color: var(--azul); }
.nota-wpp { text-align: center; max-width: 600px; margin: 28px auto 0; font-size: 1.1rem; }

/* Dolores y beneficios */
.lista { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.item {
  background: var(--blanco); border-radius: var(--radio); padding: 16px 18px;
  box-shadow: var(--sombra); display: flex; gap: 12px; align-items: flex-start;
}
.item .icono { font-size: 1.3rem; line-height: 1.3; }
.dolores .item { border-left: 6px solid var(--rojo); }
.beneficios { background: var(--blanco); }
.beneficios .item { border-left: 6px solid var(--verde); background: var(--fondo); }

/* Cómo funciona */
.pasos { display: grid; gap: 18px; }
.paso {
  background: var(--blanco); border-radius: var(--radio); padding: 24px; box-shadow: var(--sombra);
  position: relative; padding-top: 44px;
}
.paso .num {
  position: absolute; top: -18px; left: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--azul); color: var(--amarillo); display: grid; place-items: center;
  font-family: "Archivo Black", sans-serif; font-size: 1.2rem;
}
.paso h3 { font-size: 1.2rem; margin-bottom: 6px; }
.luz { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.luz span { padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: .85rem; color: var(--blanco); }
.luz .v { background: var(--verde); } .luz .a { background: var(--amarillo); color: var(--azul-osc); } .luz .r { background: var(--rojo); }

/* Ejemplo real: 3 ofertas */
.ejemplo { background: var(--azul-osc); color: var(--blanco); }
.ejemplo .sub { color: #c9d3e0; }
.ofertas { display: grid; gap: 16px; }
.oferta-viaje { border-radius: var(--radio); padding: 22px; text-align: center; color: var(--azul-osc); }
.oferta-viaje .monto { font-family: "Archivo Black", sans-serif; font-size: 2rem; }
.oferta-viaje .veredicto { font-weight: 800; font-size: 1.2rem; margin: 6px 0; }
.oferta-viaje.r { background: #ffd9d6; } .oferta-viaje.a { background: #fff1b8; } .oferta-viaje.v { background: #d4f2dc; }
.datos-ejemplo { text-align: center; margin-top: 22px; font-size: .9rem; color: #c9d3e0; }

/* Capturas */
.capturas { display: grid; gap: 20px; }
.captura { background: var(--blanco); border-radius: var(--radio); padding: 14px; box-shadow: var(--sombra); }
.captura img { border-radius: 10px; border: 1px solid #e3e0d8; }
.captura p { font-weight: 700; margin-top: 10px; text-align: center; }

/* Para quién */
.para-quien { background: var(--blanco); }
.columnas { display: grid; gap: 18px; max-width: 900px; margin: 0 auto; }
.caja { border-radius: var(--radio); padding: 22px; }
.caja.si { background: #e5f6ea; } .caja.no { background: #fde7e5; }
.caja h3 { font-size: 1.15rem; margin-bottom: 10px; }
.caja li { margin: 8px 0 8px 20px; }

/* Qué recibes + precio */
.recibes-grid { display: grid; gap: 28px; align-items: center; }
.recibes-grid img { border-radius: var(--radio); box-shadow: var(--sombra); }
.recibes-lista li { list-style: none; background: var(--blanco); margin-bottom: 10px; padding: 12px 16px; border-radius: 12px; box-shadow: var(--sombra); }
.precio-caja {
  background: var(--blanco); border: 3px solid var(--amarillo); border-radius: 22px;
  padding: 28px; text-align: center; max-width: 520px; margin: 40px auto 0; box-shadow: var(--sombra);
}
.precio-caja .precio { font-family: "Archivo Black", sans-serif; font-size: 3rem; color: var(--azul); }
.precio-caja .precio small { font-size: 1rem; color: var(--gris); font-family: inherit; }
.precio-caja .detalle { color: var(--gris); margin-bottom: 20px; }

/* Extra (bump) */
.extra { background: var(--blanco); }
.extra-caja {
  display: grid; gap: 20px; align-items: center; max-width: 900px; margin: 0 auto;
  background: var(--fondo); border-radius: 22px; padding: 22px; border: 2px dashed var(--rojo);
}
.extra-caja img { border-radius: 12px; box-shadow: var(--sombra); }
.chip { display: inline-block; background: var(--rojo); color: var(--blanco); font-weight: 800; padding: 4px 12px; border-radius: 999px; font-size: .85rem; margin-bottom: 8px; }

/* Garantía */
.garantia { text-align: center; }
.sello {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px; background: var(--verde); color: var(--blanco);
  display: grid; place-items: center; font-family: "Archivo Black", sans-serif; font-size: 1.1rem; line-height: 1.1;
  box-shadow: 0 0 0 8px #d4f2dc;
}

/* Preguntas frecuentes */
.faq { background: var(--blanco); }
.faq details { max-width: 760px; margin: 0 auto 12px; background: var(--fondo); border-radius: 12px; padding: 16px 18px; }
.faq summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--azul); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--gris); }

/* Cierre */
.cierre { background: var(--azul-osc); color: var(--blanco); text-align: center; }
.cierre h2 { color: var(--amarillo); }

footer { text-align: center; font-size: .85rem; color: var(--gris); padding: 28px 16px; }

/* Botón flotante */
.flotante {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: rgba(20,38,63,.96); padding: 12px 16px; text-align: center;
  box-shadow: 0 -6px 20px rgba(0,0,0,.2);
}
.flotante .boton { width: min(420px, 100%); padding: 14px 20px; }

/* Pantallas grandes */
@media (min-width: 820px) {
  .hero { padding: 48px 0 96px; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; }
  .pasos, .ofertas { grid-template-columns: repeat(3, 1fr); }
  .capturas { grid-template-columns: repeat(3, 1fr); }
  .columnas, .recibes-grid { grid-template-columns: 1fr 1fr; }
  .extra-caja { grid-template-columns: 1fr 1.3fr; }
  .lista { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .celular, .luces i { animation: none; }
  .luces { display: none; }
}
