/* Portada de owmio.com (sesión 69). Solo la usa index.html: las demás
   páginas siguen con estilo.css. Colores de la app (marca_owmio.dart) y su
   misma letra, Plus Jakarta Sans, servida desde aquí (nada de Google Fonts:
   mandaría la IP de cada visitante a Google). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fuentes/plus-jakarta-sans-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fuentes/plus-jakarta-sans-600.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fuentes/plus-jakarta-sans-800.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}

:root {
  --noche: #040918;
  --noche-2: #0f1626;
  --naranja: #fe7a2f;
  --verde: #2fbf86;
  --morado: #6632fb;
  --morado-claro: #9b7bff;

  --fondo: #f4f3fb;
  --superficie: #ffffff;
  --tinte: #efeaff;
  --texto: #121629;
  --suave: #4f5470;
  --borde: #dcd8ee;
  --enlace: var(--morado);

  --ancho: 72rem;
  --hueco-seccion: clamp(4rem, 8vw, 7.5rem);
  --radio: 1.25rem;
  --salida: cubic-bezier(0.23, 1, 0.32, 1);

  --texto-h1: clamp(2.25rem, 1.4rem + 2.8vw, 3.5rem);
  --texto-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --texto-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --texto-grande: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #080d1d;
    --superficie: var(--noche-2);
    --tinte: #161d33;
    --texto: #e9e8f5;
    --suave: #a4a8c0;
    --borde: rgba(255, 255, 255, 0.1);
    --enlace: var(--morado-claro);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--enlace); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: var(--texto-h1); font-weight: 800; }
h2 { font-size: var(--texto-h2); font-weight: 800; }
h3 { font-size: var(--texto-h3); font-weight: 800; }

p { margin: 0; }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 48rem) {
  .contenedor { padding: 0 2rem; }
}

.saltar {
  position: absolute;
  left: -100vw;
}
.saltar:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--superficie); padding: 0.5rem 1rem; border-radius: 0.5rem; }

:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 0.4rem; }

/* -- Botones ------------------------------------------------------------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms var(--salida), background-color 200ms var(--salida);
}
.boton:active { transform: scale(0.97); }
.boton svg { width: 1.35rem; height: 1.35rem; flex: none; }

/* Naranja con texto noche: el blanco sobre este naranja no llega a 4,5:1. */
.boton-principal { background: var(--naranja); color: var(--noche); }

.boton-secundario { color: #ffffff; border: 1.5px solid rgba(255, 255, 255, 0.28); }

@media (hover: hover) and (pointer: fine) {
  .boton-principal:hover { background: #ff9152; }
  .boton-secundario:hover { background: rgba(255, 255, 255, 0.08); }
}

/* -- Cabecera y portada (siempre de noche, como la cabecera de la app) ---- */

.heroe {
  position: relative;
  overflow: hidden;
  background: var(--noche);
  color: #ffffff;
}

/* Brillos de los gajos del logo, detrás de todo. */
.heroe::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40rem 28rem at 85% 15%, rgba(102, 50, 251, 0.35), transparent 70%),
    radial-gradient(30rem 22rem at 10% 95%, rgba(254, 122, 47, 0.18), transparent 70%);
  pointer-events: none;
}

.navegacion {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
}
.marca img { width: 2.5rem; height: 2.5rem; border-radius: 0.65rem; }

.navegacion .boton { min-height: 2.75rem; padding: 0 1.1rem; font-size: 0.95rem; }

.heroe-cuerpo {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

@media (min-width: 60rem) {
  .heroe-cuerpo { grid-template-columns: 1.3fr 0.7fr; align-items: center; }
}

.heroe-texto { max-width: 42rem; }

.heroe h1 span { color: var(--naranja); }

.heroe-entradilla {
  margin-top: 1.25rem;
  font-size: var(--texto-grande);
  color: #c9cbe0;
  max-width: 32rem;
}

.heroe-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.heroe-nota {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #9a9db8;
}

/* Las dos piezas de la derecha: el móvil con el reparto y, encima, la
   tarjeta del resultado. */
.heroe-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
  padding-bottom: 2rem;
}

.heroe-visual .movil { width: 17rem; margin-left: auto; }

.heroe-tarjeta {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 12.5rem;
  border-radius: 0.9rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.45);
  transform: rotate(-4deg);
}

@media (max-width: 26rem) {
  .heroe-visual .movil { width: 14.5rem; }
  .heroe-tarjeta { width: 10rem; }
}

/* Entrada al cargar (una vez, la primera impresión). */
@media (prefers-reduced-motion: no-preference) {
  .heroe-texto > * { animation: subir 700ms var(--salida) both; }
  .heroe-texto > :nth-child(2) { animation-delay: 60ms; }
  .heroe-texto > :nth-child(3) { animation-delay: 120ms; }
  .heroe-texto > :nth-child(4) { animation-delay: 180ms; }
  .heroe-visual .movil { animation: subir 800ms 150ms var(--salida) both; }
  .heroe-tarjeta { animation: tarjeta 800ms 380ms var(--salida) both; }
}

@keyframes subir {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}
@keyframes tarjeta {
  from { opacity: 0; transform: translateY(1.5rem) rotate(-4deg) scale(0.95); }
  to { opacity: 1; transform: rotate(-4deg); }
}

/* Franja de los tres gajos del logo. */
.franja {
  height: 0.35rem;
  background: linear-gradient(90deg, var(--naranja), var(--verde) 50%, var(--morado));
}

/* -- Marco de móvil para las capturas ------------------------------------ */

.movil {
  border: 0.45rem solid #1b2236;
  border-radius: 2.1rem;
  background: #1b2236;
  box-shadow: 0 2rem 4rem rgba(4, 9, 24, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.movil img { border-radius: 1.65rem; width: 100%; }

/* -- Secciones ----------------------------------------------------------- */

.seccion { padding: var(--hueco-seccion) 0; }

.cabeza-seccion { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cabeza-seccion p { margin-top: 1rem; font-size: var(--texto-grande); color: var(--suave); }

.antetitulo {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--enlace);
}

/* Cómo funciona: cada paso, texto y captura; se alternan de lado. */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3.5rem, 8vw, 6rem); }

.paso { display: grid; gap: 2rem; align-items: center; }

.paso .movil { width: min(100%, 15.5rem); justify-self: center; }

/* Una pieza suelta de una pantalla (la hoja del código), sin marco de móvil. */
.tarjeta-captura {
  width: min(100%, 22rem);
  justify-self: center;
  border-radius: var(--radio);
  box-shadow: 0 2rem 4rem rgba(4, 9, 24, 0.18), 0 0 0 1px var(--borde);
}

@media (min-width: 48rem) {
  .paso { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .paso .movil { width: 17.5rem; }
  .paso:nth-child(even) .paso-texto { order: 2; }
}

.paso-texto { max-width: 30rem; }

.paso-numero {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--naranja);
  color: var(--noche);
  font-weight: 800;
  font-size: 1.15rem;
}

.paso-texto p { margin-top: 0.85rem; color: var(--suave); font-size: var(--texto-grande); }

.paso-texto ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.paso-texto li {
  position: relative;
  padding-left: 1.75rem;
}
.paso-texto li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--verde);
}

/* Premium: IA y grupos, sobre el tinte morado. */
.premium { background: var(--tinte); }

.etiqueta-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--noche);
  color: #ffd27a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.etiqueta-premium svg { width: 1rem; height: 1rem; }
.cabeza-seccion .etiqueta-premium { margin-bottom: 1rem; }

.extras { display: grid; gap: clamp(3rem, 6vw, 4rem); }

@media (min-width: 60rem) {
  .extras { grid-template-columns: 1fr 1fr; }
}

.extra { display: grid; gap: 2rem; align-content: start; }
.extra .movil { width: min(100%, 15rem); justify-self: center; }
.extra h3 { margin-top: 1rem; }
.extra p { margin-top: 0.75rem; color: var(--suave); }

.cita {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem 1rem 1rem 0.25rem;
  background: var(--superficie);
  font-weight: 600;
}

/* Gratis y Premium. */
.planes { display: grid; gap: 1.25rem; }

@media (min-width: 48rem) {
  .planes { grid-template-columns: 1fr 1fr; }
}

.plan {
  padding: 2rem;
  border-radius: var(--radio);
  background: var(--superficie);
  border: 1px solid var(--borde);
}
.plan-premium { background: var(--noche); color: #ffffff; border-color: transparent; }

.plan h3 { display: flex; align-items: center; gap: 0.6rem; }
.plan-precio { margin-top: 0.5rem; color: var(--suave); }
.plan-premium .plan-precio { color: #b4b7d0; }

.plan ul { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.plan li { display: flex; gap: 0.75rem; align-items: flex-start; }
.plan li svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.15rem; color: var(--verde); }
.plan-premium li svg { color: var(--naranja); }

/* Tus datos: tres compromisos en fila, sin tarjetas. */
.compromisos {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 2.5rem 0 0;
  list-style: none;
  border-top: 1px solid var(--borde);
}

@media (min-width: 48rem) {
  .compromisos { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.compromisos h3 { font-size: 1.15rem; }
.compromisos p { margin-top: 0.5rem; color: var(--suave); }

/* Preguntas. */
.preguntas { max-width: 46rem; }

.preguntas details { border-bottom: 1px solid var(--borde); }

.preguntas summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1rem 0;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--enlace);
  transition: transform 200ms var(--salida);
}
.preguntas details[open] summary::after { transform: rotate(45deg); }

.preguntas details p { padding: 0 0 1.25rem; color: var(--suave); max-width: 65ch; }

/* Llamada final. */
.final {
  position: relative;
  overflow: hidden;
  background: var(--noche);
  color: #ffffff;
  text-align: center;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(36rem 20rem at 50% 120%, rgba(102, 50, 251, 0.45), transparent 70%);
  pointer-events: none;
}
.final .contenedor { position: relative; }
.final p { margin: 1rem auto 0; max-width: 32rem; color: #c9cbe0; font-size: var(--texto-grande); }
.final-acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Pie. */
.pie {
  padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom));
  font-size: 0.9rem;
  color: var(--suave);
}
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; }
.pie nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.pie a { color: var(--suave); }

@media (hover: hover) and (pointer: fine) {
  .pie a:hover, .preguntas summary:hover { color: var(--enlace); }
}
