:root {
  --bg0: #000; --bg1: #030917; --bg2: #08122e;
  --text: #eaf0ff; --muted: #a9b8da;
  --cyan: #22d3ee; --blue: #3b82f6; --violet: #8b5cf6;
  --line: rgba(34, 211, 238, .28);
  --radius: 16px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-family: var(--sans); line-height: 1.6;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(59, 130, 246, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 40%, rgba(139, 92, 246, .09), transparent 60%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 40%, var(--bg2) 100%);
  background-attachment: fixed;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section.wrap { padding-top: 56px; }

/* Línea de señal */
.signal { position: sticky; top: 0; z-index: 20; height: 2px; opacity: .85;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 30%, var(--violet) 55%, var(--blue) 75%, transparent 100%);
  background-size: 200% 100%; animation: sig 7s linear infinite; }
@keyframes sig { to { background-position: -200% 0; } }

/* Encabezado */
.site-header { padding: 28px 0 8px; }
.header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.eyebrow { font: 500 .72rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; }
.eyebrow::before { content: "> "; opacity: .7; }
.brand { margin: 0; font-size: clamp(2.4rem, 9vw, 4.2rem); line-height: 1.05; letter-spacing: -.01em; font-weight: 800;
  background: linear-gradient(100deg, #fff 30%, #9be8ff 70%, #c4b5fd);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin: 12px 0 0; color: var(--muted); max-width: 44ch; font-size: 1.05rem; }

.lang { display: flex; gap: 6px; flex-shrink: 0; }
.lang button { font: 600 .8rem var(--mono); letter-spacing: .08em; color: var(--muted); background: rgba(5, 12, 32, .7);
  border: 1px solid rgba(59, 130, 246, .45); border-radius: 8px; padding: 0 14px; min-height: 44px; min-width: 48px; cursor: pointer;
  transition: box-shadow .2s, color .2s; }
.lang button:hover { color: var(--text); box-shadow: 0 0 12px rgba(59, 130, 246, .5); }
.lang button[aria-pressed="true"] { color: #00131a; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px rgba(34, 211, 238, .5); }

/* Secciones */
.section-title { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 6px; letter-spacing: -.01em; }
.section-title::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 10px;
  background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 10px var(--cyan); }
.lead { color: var(--muted); margin: 14px 0 20px; max-width: 60ch; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font: 500 .78rem var(--mono); letter-spacing: .04em; color: var(--text); background: rgba(8, 18, 46, .7);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 40px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--cyan); }
.chip[aria-pressed="true"] { background: rgba(34, 211, 238, .16); border-color: var(--cyan); color: #bff4ff; box-shadow: 0 0 14px rgba(34, 211, 238, .3); }

.grid { display: grid; gap: 18px; }
.grid-posters { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-gallery { grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 12px; }

/* Tarjetas: marco frío, imagen cálida protagonista */
.card { position: relative; padding: 0; text-align: left; color: inherit; cursor: pointer; font: inherit;
  background: #04091a; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), inset 0 -80px 60px -40px rgba(0, 0, 0, .85); }
.card img { display: block; width: 100%; object-fit: cover; transition: transform .6s, filter .3s; filter: saturate(1.05); }
.grid-posters .card img { aspect-ratio: 2 / 3; }
.grid-gallery .card img { aspect-ratio: 3 / 4; }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: var(--cyan); outline: none;
  box-shadow: 0 0 0 1px var(--cyan), 0 0 26px rgba(34, 211, 238, .4), 0 0 60px rgba(139, 92, 246, .25); }
.card:hover img { transform: scale(1.04); }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 48px 14px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .94) 10%, transparent); }
.card h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; text-shadow: 0 2px 8px #000; }
.grid-gallery .card h3 { font-size: .92rem; }
.card-genres { margin: 6px 0 0; font: 500 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.card .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }

.tag, .badge { display: inline-block; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em;
  color: #bff4ff; background: rgba(0, 8, 24, .75); border: 1px solid rgba(34, 211, 238, .55); border-radius: 6px; padding: 3px 9px;
  backdrop-filter: blur(4px); }
.badge { color: #e5dcff; border-color: rgba(139, 92, 246, .8); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }

/* Cómo funciona / Próximamente */
.how p, .soon p { margin: 14px 0 0; max-width: 60ch; }
.how { }
.soon > div, .how > div { }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: linear-gradient(135deg, rgba(8, 18, 46, .8), rgba(4, 9, 26, .6)); }
.panel.soon-panel { border-style: dashed; border-color: rgba(139, 92, 246, .6); }
.panel .tag { margin-bottom: 4px; }
.panel .section-title { margin-top: 0; }
.soon-panel .tag { color: #d8ccff; border-color: var(--violet); }

/* "Cómo funciona" como botón */
.how-card { display: block; width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; transition: border-color .3s, box-shadow .3s, transform .3s; }
.how-card:hover, .how-card:focus-visible { border-color: var(--cyan); transform: translateY(-3px); outline: none;
  box-shadow: 0 0 0 1px var(--cyan), 0 0 26px rgba(34, 211, 238, .35); }
.how-card .section-title { display: block; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; margin: 0 0 6px; }
.how-card .how-text { display: block; margin-top: 14px; max-width: 60ch; }
.how-card .how-cta { display: inline-block; margin-top: 16px; font: 600 .8rem var(--mono); letter-spacing: .06em; color: var(--cyan); }

.modal-body.plain { margin-top: 0; padding-top: 28px; }
.steps { margin: 0 0 4px; padding-left: 1.3em; color: #d4def5; }
.steps li { margin: 6px 0; }
.platforms { display: grid; gap: 10px; }
.platform { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 9, 26, .6); }
.platform small { display: block; color: var(--muted); font: .78rem var(--mono); margin-top: 2px; }
.platform .visit { text-decoration: none; font-weight: 700; color: #00131a; background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 10px; padding: 0 18px; min-height: 44px; display: inline-flex; align-items: center; }
.fine { font-size: .82rem; color: var(--muted) !important; margin-bottom: 0; }

/* Buzón de ideas */

.modal-body form label { display: block; margin: 14px 0 6px; font: 600 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.modal-body form textarea, #iForm select { width: 100%; font: inherit; color: var(--text); background: #050c20; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.modal-body form textarea { resize: vertical; min-height: 120px; }
.modal-body form textarea:focus, #iForm select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.modal-body form input[type="email"] { width: 100%; font: inherit; color: var(--text); background: #050c20; border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 48px; }
.modal-body form input[type="email"]:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.modal-body form label.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font: .85rem var(--sans); letter-spacing: 0; text-transform: none; color: #d4def5; cursor: pointer; }
.modal-body form label.check input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; accent-color: var(--cyan); }
.modal-body form label.check a { color: var(--cyan); }
.site-footer a { color: var(--cyan); }
.counter { text-align: right; font: .72rem var(--mono); color: var(--muted); margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; margin: 8px 0; color: var(--cyan) !important; font-family: var(--mono); font-size: .85rem; }
.app-btn.submit { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.app-btn.submit:disabled { opacity: .6; cursor: default; }

.site-footer { margin-top: 64px; padding: 24px 0 44px; color: var(--muted); font-size: .85rem; border-top: 1px solid rgba(59, 130, 246, .2); }
.site-footer p { margin: 0; max-width: 70ch; }

/* Modal */
.modal { width: min(580px, 94vw); max-height: 92vh; margin: auto; padding: 0; color: var(--text); overflow: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #050c20, #0a1535); border: 1px solid var(--cyan); border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .2), 0 0 50px rgba(34, 211, 238, .28), 0 0 100px rgba(139, 92, 246, .2); }
.modal[open] { animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal::backdrop { background: rgba(0, 3, 12, .82); backdrop-filter: blur(3px); }
.modal-img { display: block; width: 100%; max-height: 340px; object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.modal-body { padding: 0 20px 22px; margin-top: -24px; position: relative; }
.modal-body h3 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.modal-body p { color: #d4def5; }
#mIntro { white-space: pre-line; }
.modal-body .app-btn small { margin-top: 2px; }
.modal-body h4 { margin: 20px 0 10px; font: 600 .75rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1;
  color: var(--text); background: rgba(0, 0, 0, .65); border: 1px solid rgba(34, 211, 238, .55); border-radius: 50%; cursor: pointer; }
.apps { display: grid; gap: 10px; }
.app-btn { display: block; text-decoration: none; text-align: center; font-weight: 700; font-size: 1.05rem; color: #00131a;
  background: linear-gradient(90deg, var(--cyan), var(--blue)); border-radius: 12px; padding: 13px; min-height: 52px;
  box-shadow: 0 0 18px rgba(34, 211, 238, .4); transition: box-shadow .2s, transform .2s; }
.app-btn:hover { box-shadow: 0 0 30px rgba(34, 211, 238, .75); transform: translateY(-1px); }
.app-btn.is-soon { color: var(--muted); background: rgba(8, 18, 46, .8); border: 1px dashed rgba(139, 92, 246, .7); box-shadow: none; cursor: default; }
.app-btn.is-soon:hover { box-shadow: none; transform: none; }
.app-btn small { display: block; font: 500 .72rem var(--mono); letter-spacing: .06em; opacity: .75; }
.code { font: .85rem var(--mono); color: var(--muted); text-align: center; margin: -2px 0 6px; }
.code b { color: var(--cyan); user-select: all; }
.empty { color: var(--muted); font-family: var(--mono); }

@media (min-width: 720px) {
  .panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .panel { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
