/* Página de presentación: oscura, con dos acentos (rosa para Alma, celeste para Mateo) y animaciones suaves. */
:root {
    --bg: #0b0b10;
    --panel: #14141c;
    --panel-2: #1b1b26;
    --line: #2a2a38;
    --text: #f3f3f7;
    --muted: #9c9cad;
    --alma: #ff4d7d;
    --mateo: #5ab0ff;
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h1 em { font-style: normal; display: block; background: linear-gradient(90deg, var(--alma), var(--mateo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: #d8d8e2; }
.muted { color: var(--muted); font-size: 0.92rem; }
.kicker { color: var(--alma); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }

/* Resplandores de fondo que se mueven despacio. */
.glow { position: fixed; z-index: -1; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(110px); opacity: 0.22; pointer-events: none; }
.glow-a { background: var(--alma); top: -25vmax; left: -15vmax; animation: drift 26s ease-in-out infinite alternate; }
.glow-b { background: var(--mateo); bottom: -30vmax; right: -20vmax; animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

/* Barra de arriba. */
.top {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 18px;
    padding: 12px clamp(16px, 4vw, 44px);
    background: rgba(11, 11, 16, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand span { margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: var(--alma); font-size: 0.7rem; vertical-align: middle; }
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.top nav a:hover { color: var(--text); }

/* Botones. */
.button {
    display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
    padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--alma), #c2378f);
    box-shadow: 0 10px 30px -10px rgba(255, 77, 125, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 77, 125, 0.85); filter: brightness(1.08); }
.button:active { transform: translateY(0); }
.button.small { padding: 9px 18px; font-size: 0.92rem; }
.button.big { padding: 18px 38px; font-size: 1.15rem; animation: pulse 2.6s ease-in-out infinite; }
.button.ghost { background: transparent; box-shadow: none; border: 1px solid var(--line); color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 10px 44px -6px rgba(255, 77, 125, 0.95); } }

/* Secciones. */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 44px); }
.block { padding: clamp(48px, 9vw, 110px) 0; }
.block.narrow { max-width: 780px; margin: 0 auto; }
.heading { max-width: 720px; margin-bottom: 34px; }
.heading p { color: var(--muted); }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(36px, 8vw, 96px) 0 clamp(24px, 5vw, 60px); }
.hero .button.big { margin: 10px 0 12px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.badges li { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 0.85rem; color: #cfcfdb; }

/* Contadores: lo que pasó en el juego hasta ahora. */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 22px); padding: 6px 0 clamp(18px, 4vw, 40px); }
.counters[hidden] { display: none; }
.counter { text-align: center; padding: clamp(16px, 3vw, 28px) 12px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.counter b { display: block; font-size: clamp(1.7rem, 5vw, 3rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.counter span { color: var(--muted); font-size: clamp(0.8rem, 1.6vw, 0.98rem); }
.counter.together b { background: linear-gradient(90deg, var(--alma), var(--mateo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter.alma b { color: var(--alma); }
.counter.mateo b { color: var(--mateo); }

/* Formulario de feedback. */
.feedback { display: grid; gap: 10px; }
.feedback:hover { transform: none; }
.feedback label { font-weight: 600; font-size: 0.95rem; }
.feedback input[type="text"], .feedback textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.feedback textarea { resize: vertical; min-height: 120px; }
.feedback input:focus, .feedback textarea:focus { outline: 2px solid var(--alma); outline-offset: 1px; border-color: transparent; }
.feedback .muted { margin: 0; min-height: 1.3em; }
.feedback .button { justify-self: start; margin-top: 4px; }
.feedback .button[disabled] { opacity: 0.45; cursor: not-allowed; animation: none; box-shadow: none; }
.feedback-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feedback-result { margin: 0; min-height: 1.3em; font-weight: 600; }
.feedback-result.good { color: #5fd38d; }
.feedback-result.bad { color: #ff6b6b; }
#feedback-captcha { min-height: 0; max-width: 100%; overflow: hidden; }

/* Imágenes a todo el ancho de la pantalla (se salen del ancho del contenido). */
.band { width: 100vw; margin: clamp(10px, 3vw, 30px) 0 0 calc(50% - 50vw); border-radius: 0; overflow: hidden; }
.band .shot { width: 100%; height: auto; max-height: 86vh; object-fit: cover; border-radius: 0; border-left: 0; border-right: 0; }
.band:hover .shot { transform: none; }
.band figcaption { text-align: center; color: var(--muted); font-size: 0.95rem; padding: 14px clamp(16px, 4vw, 44px) 0; }

/* Tarjetas. */
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-4px); border-color: #3c3c50; }
.card p:last-child { margin-bottom: 0; }

/* Imágenes y lugares para imágenes. */
.shot, .slot { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.shot { transition: filter 0.5s ease, transform 0.4s ease; }
figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
figure:hover .shot { transform: scale(1.03); }
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #6f6f82; border-style: dashed; text-align: center; padding: 12px;
    background: repeating-linear-gradient(135deg, #14141c, #14141c 14px, #181822 14px, #181822 28px); }
.slot small { font-size: 0.78rem; opacity: 0.8; }
/* Hasta confirmar la edad, las capturas se ven fuera de foco. */
.age-pending .shot { filter: blur(26px) brightness(0.6); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.number { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px; font-weight: 800; background: linear-gradient(135deg, var(--alma), var(--mateo)); }
.steps p, .points p, .person li { color: #c4c4d2; font-size: 0.98rem; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

/* Las dos barras que se llenan: lo que el juego es, en chiquito. */
.meters { display: flex; gap: 22px; margin-top: 26px; }
.meter { position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); }
.meter b { font-size: 0.95rem; }
.meter i { position: absolute; inset: 0; border-radius: 50%; padding: 6px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.meter.mateo i { background: conic-gradient(var(--mateo) var(--fill, 0%), #26263380 0); animation: fill-a 7s ease-in-out infinite; }
.meter.alma i { background: conic-gradient(var(--alma) var(--fill, 0%), #26263380 0); animation: fill-b 7s ease-in-out infinite; }
@property --fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes fill-a { 0% { --fill: 8%; } 55% { --fill: 82%; } 80%, 100% { --fill: 100%; } }
@keyframes fill-b { 0% { --fill: 4%; } 55% { --fill: 64%; } 80%, 100% { --fill: 100%; } }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person .shot, .person .slot { margin-bottom: 20px; }
.person ul { margin: 0; padding-left: 1.1em; }
.person li { margin-bottom: 6px; }
.person.alma { border-top: 3px solid var(--alma); }
.person.mateo { border-top: 3px solid var(--mateo); }
.person.alma li::marker { color: var(--alma); }
.person.mateo li::marker { color: var(--mateo); }

details.card { margin-bottom: 12px; padding: 0; }
details summary { cursor: pointer; list-style: none; padding: 20px 26px; font-weight: 600; position: relative; padding-right: 54px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--alma); transition: transform 0.25s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 26px 22px; color: #c4c4d2; }

.final { text-align: center; }
.final .button { margin-top: 10px; }

footer { border-top: 1px solid var(--line); padding: 34px clamp(16px, 4vw, 44px) 46px; text-align: center; font-size: 0.92rem; }
footer p { margin: 0 0 8px; }

/* Aviso de mayoría de edad. */
#age-gate { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 6, 10, 0.86); backdrop-filter: blur(18px); }
.age-pending #age-gate { display: flex; }
.age-pending body { overflow: hidden; }
.gate-card { width: min(100%, 460px); text-align: center; padding: 34px 28px; border-radius: 22px; background: var(--panel-2); border: 1px solid var(--line); animation: rise 0.5s ease both; }
.gate-badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px; font-weight: 800; font-size: 1.2rem; background: linear-gradient(135deg, var(--alma), #c2378f); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } }

/* Aparición al bajar por la página. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.seen { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 960px) {
    .hero, .split { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .top nav { display: none; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .steps, .gallery, .pair { grid-template-columns: 1fr; }
    .button.big { width: 100%; }
    .meters { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* Selector de idioma, en la barra de arriba. */
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.langs a { padding: 4px 10px; border-radius: 999px; text-decoration: none; font-size: 0.8rem; font-weight: 700; color: var(--muted); transition: color 0.2s, background 0.2s; }
.langs a:hover { color: var(--text); }
.langs a.current { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px #3c3c50; }
@media (max-width: 420px) {
    .top { gap: 10px; }
    .brand span { display: none; }
}
