/* Sakura — web del proyecto.
   Sin librerias ni fuentes externas: carga rapido, que
   cuenta para el posicionamiento, y no depende de
   nadie. */

:root {
  --fondo: #0d0f1a;
  --fondo-2: #12152a;
  --tarjeta: #171b33;
  --borde: #262b4d;
  --texto: #e8eaf6;
  --apagado: #9aa0c8;
  --tenue: #6b7299;
  --lila: #a78bfa;
  --rosa: #f4a7b9;
  --verde: #7dd3a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.contenedor {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--lila); }
a:hover { color: var(--rosa); }

h1, h2, h3 { line-height: 1.25; }

/* ---------- portada ---------- */

.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 420px at 78% 12%,
                    rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(700px 380px at 12% 0%,
                    rgba(244, 167, 185, 0.10), transparent 60%);
  border-bottom: 1px solid var(--borde);
}

.hero-caja {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}

.etiqueta {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--verde);
  border: 1px solid rgba(125, 211, 160, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.entradilla {
  font-size: 1.12rem;
  color: var(--apagado);
  max-width: 48ch;
  margin-bottom: 30px;
}

.botones { display: flex; gap: 12px; flex-wrap: wrap; }

.boton {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 13px 26px;
  border: 1px solid var(--borde);
  border-radius: 11px;
  background: var(--tarjeta);
  color: var(--texto);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s, border-color 0.15s;
}

.boton:hover { transform: translateY(-2px); border-color: var(--lila); }

.boton.principal {
  background: var(--lila);
  border-color: var(--lila);
  color: #14162b;
}

.boton.principal:hover { background: #b9a3fb; color: #14162b; }

.peso {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
}

.apunte {
  margin-top: 18px;
  font-size: 14px;
  color: var(--tenue);
}

/* avatar de la portada */

.hero-avatar { display: flex; justify-content: center; }

.ventanita {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.5));
}

.bocadillo {
  margin-top: -8px;
  padding: 9px 15px;
  background: rgba(24, 27, 48, 0.96);
  border: 1px solid var(--borde);
  border-radius: 13px;
  font-size: 14px;
}

.cara { fill: #ffe3d6; }
.pelo { fill: #e08fa8; }
.coleta { fill: #d97f9b; }
.ropa { fill: #6b5ce7; }
.ceja { stroke: #b06a80; stroke-width: 3; fill: none; stroke-linecap: round; }
.ojo-blanco { fill: #fff; }
.iris { fill: #7c5cd6; }
.pupila { fill: #2a2440; }
.brillo { fill: #fff; }
.mejilla { fill: #ff9db0; opacity: 0.5; }
.boca { fill: #c4566e; }

.ventanita svg { animation: respirar 4.5s ease-in-out infinite; }

@keyframes respirar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .ventanita svg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- secciones ---------- */

.bloque { padding: 62px 24px; }

.bloque h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin-bottom: 14px;
}

.intro {
  color: var(--apagado);
  max-width: 68ch;
  margin-bottom: 30px;
}

.destacado {
  background: var(--fondo-2);
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
  max-width: none;
}

.destacado > * { max-width: 1060px; margin-left: auto; margin-right: auto; }

/* tarjetas */

.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.tarjeta {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 24px;
}

.tarjeta h3 { color: var(--rosa); font-size: 1.12rem; margin-bottom: 9px; }
.tarjeta p { color: var(--apagado); font-size: 0.97rem; }
.tarjeta em { color: var(--texto); font-style: normal; }

kbd {
  background: #232849;
  border: 1px solid var(--borde);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.85em;
  font-family: ui-monospace, monospace;
}

code {
  background: #232849;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, monospace;
}

/* tabla */

.tabla-envoltorio { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  min-width: 420px;
}

caption {
  caption-side: bottom;
  padding-top: 14px;
  color: var(--tenue);
  font-size: 13px;
  text-align: left;
}

th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--borde); }
th { color: var(--rosa); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
td:not(:first-child) { color: var(--verde); font-variant-numeric: tabular-nums; }

/* privacidad */

.lista-privacidad { list-style: none; display: grid; gap: 14px; }

.lista-privacidad li {
  background: var(--tarjeta);
  border-left: 3px solid var(--verde);
  border-radius: 0 11px 11px 0;
  padding: 16px 20px;
  color: var(--apagado);
}

.lista-privacidad strong { color: var(--texto); }

/* pasos */

.pasos { list-style: none; counter-reset: paso; display: grid; gap: 20px; }

.pasos li {
  counter-increment: paso;
  position: relative;
  padding-left: 58px;
}

.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--lila);
  color: #14162b;
  border-radius: 50%;
  font-weight: 700;
}

.pasos h3 { margin-bottom: 5px; font-size: 1.08rem; }
.pasos p { color: var(--apagado); }

/* preguntas */

details {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 11px;
  padding: 16px 20px;
  margin-bottom: 11px;
}

summary { cursor: pointer; font-weight: 600; }
summary::marker { color: var(--lila); }
details p { margin-top: 11px; color: var(--apagado); }

/* pie */

footer {
  border-top: 1px solid var(--borde);
  padding: 34px 0;
  background: var(--fondo-2);
}

.pie { text-align: center; color: var(--apagado); }
.pequeño { font-size: 14px; color: var(--tenue); margin-top: 7px; }

/* ---------- movil ---------- */

@media (max-width: 780px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 44px; }
  .hero-caja { grid-template-columns: 1fr; gap: 34px; }
  .hero-avatar { order: -1; }
  .ventanita svg { width: 150px; }
  .bloque { padding: 46px 24px; }
  .boton { flex: 1 1 auto; justify-content: center; }
}
