/* Página de inicio pública y avisos de la plataforma */
html { scroll-behavior: smooth; }
body {
  min-height: 100%;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(0, 204, 190, .16), transparent 62%),
    radial-gradient(700px 480px at -10% 30%, rgba(124, 58, 237, .10), transparent 60%),
    var(--bg);
}
.muted { color: var(--text-3); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .95em; color: var(--text-2); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a, button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 30; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.glass { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), rgba(20, 20, 28, .72); border: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 60px -28px #000; }

.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 22px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; color: var(--text-1); }
.brand-logo { display: block; flex: none; border-radius: 8px; }
.brand-sm { font-size: 16px; gap: 8px; }

.l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--surface-2); color: var(--text-1); font-weight: 650; font-size: 15px; text-decoration: none; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.l-btn:hover { background: var(--surface-4); }
.l-btn:active { transform: translateY(1px); }
.l-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(0, 204, 190, .7); }
.l-btn-primary:hover { background: var(--accent-hover); box-shadow: 0 12px 34px -10px rgba(0, 204, 190, .85); }
.l-btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.l-btn .i { width: 18px; height: 18px; transition: transform .18s ease; }
.l-btn:hover .i { transform: translateX(2px); }
.l-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-2); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 4px; }
.l-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.l-link .i { width: 18px; height: 18px; }

/* Barra superior */
.l-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px max(16px, calc((100% - 1180px) / 2)); background: rgba(11, 11, 16, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-1); }
.l-links { display: flex; gap: 6px; margin-left: auto; }
.l-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 550; transition: color .15s, background .15s; }
.l-links a:hover { color: var(--text-1); background: var(--surface-2); }

main > section { width: min(1180px, 100% - 32px); margin: 0 auto; }
.sec-head { max-width: 720px; margin-bottom: 32px; }
section h2 { margin: 0; font: 400 clamp(30px, 4.4vw, 46px)/1.02 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0, 204, 190, .18); }

/* Portada */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; padding: 72px 0 56px; }
.hero h1 { margin: 0; font: 400 clamp(46px, 6.6vw, 88px)/.94 var(--font-display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 22px 0 28px; max-width: 54ch; font-size: 18px; line-height: 1.6; color: var(--text-2); }

.enter-form { display: flex; gap: 10px; }
.hero-enter { max-width: 560px; }
.slug-field { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 52px; border-radius: 12px; border: 1px solid var(--line-3); background: rgba(255, 255, 255, .04); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.slug-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.slug-prefix { padding-left: 16px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.slug-field input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; outline: none; color: var(--text-1); font-size: 16px; font-weight: 650; padding-right: 14px; }
.enter-form .l-btn { min-height: 52px; }
.enter-help { margin: 10px 0 0; color: var(--text-3); font-size: 14px; }
.enter-error { min-height: 22px; margin-top: 6px; color: var(--danger); font-weight: 600; }
.hero-alt { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 6px; }

/* Demostración */
.hero-demo { position: relative; margin: 0; display: grid; gap: 14px; }
.demo-glow { position: absolute; inset: 8% 6% 30%; background: radial-gradient(closest-side, rgba(0, 204, 190, .35), transparent); filter: blur(40px); z-index: -1; }
.demo-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 28% 22%, #1f5a78, #0a1220 70%); }
.demo-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); pointer-events: none; }
.demo-chrome { position: absolute; inset: 12px 12px auto; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.demo-where { padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .35); color: var(--text-2); font-size: 11px; font-weight: 600; }
.demo-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: var(--danger-soft); border: 1px solid var(--danger-border); color: var(--danger); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.demo-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.demo-slide { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: 32px; z-index: 1; }
.demo-line { font: 400 clamp(22px, 3.1vw, 40px)/1.08 var(--font-display); text-transform: uppercase; text-shadow: 0 2px 20px rgba(0, 0, 0, .55); animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.demo-line + .demo-line { animation-delay: .12s; }
.demo-ref { color: #ffd166; font: 700 13px/1 Onest, sans-serif; letter-spacing: .14em; text-transform: uppercase; animation: rise .5s both; }
.demo-verse { max-width: 30ch; margin: 0 auto; font: 400 clamp(17px, 2.1vw, 26px)/1.35 'Lora', Georgia, serif; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); animation: rise .6s .08s cubic-bezier(.2, .8, .2, 1) both; }
.demo-panel { display: grid; gap: 10px; padding: 12px; border-radius: 16px; }
.demo-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 12px; border-radius: 11px; background: rgba(255, 255, 255, .05); border: 1px solid var(--accent-border); font-weight: 650; }
.demo-key { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-4); color: var(--text-3); font-size: 12px; }
.demo-typed { white-space: pre; }
.demo-caret { width: 2px; height: 18px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.demo-go { margin-left: auto; padding: 7px 12px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 13px; transition: transform .15s, box-shadow .15s; }
.demo-go.press { transform: scale(.94); box-shadow: 0 0 0 6px rgba(0, 204, 190, .25); }
.demo-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.demo-thumbs span { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 9px; background: #0b1220; border: 1px solid var(--line-1); color: var(--text-3); font-size: 12px; font-weight: 650; transition: border-color .25s, color .25s, box-shadow .25s; }
.demo-thumbs .on { border-color: var(--danger); color: var(--text-1); box-shadow: 0 0 0 1px var(--danger); }
.demo-devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.demo-mini { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; padding: 10px 12px; border-radius: 14px; font-size: 12px; color: var(--text-3); }
.demo-mini .i { grid-row: span 2; width: 18px; height: 18px; color: var(--accent); }
.demo-mini b { color: var(--text-1); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-mini b.flash { animation: flash .6s ease; }

/* Franja de valores */
.values { margin-top: 8px !important; }
.values ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-radius: 18px; border: 1px solid var(--line-1); background: rgba(255, 255, 255, .02); overflow: hidden; }
.values li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.values li + li { border-left: 1px solid var(--line-1); }
.values .i { width: 22px; height: 22px; color: var(--accent); }
.values span { display: grid; color: var(--text-3); font-size: 13px; line-height: 1.35; }
.values b { color: var(--text-1); font-size: 15px; }

/* Funciones */
.features { padding: 96px 0 40px; }
.f-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.f-big { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; border: 1px solid var(--line-1); background: var(--surface-1); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.f-big:hover { border-color: var(--accent-border); transform: translateY(-3px); box-shadow: 0 24px 50px -30px #000; }
.f-visual { aspect-ratio: 16 / 9; display: grid; place-content: center; gap: 8px; padding: 18px; background: radial-gradient(circle at 30% 20%, #17344a, #0a0f1a 75%); border-bottom: 1px solid var(--line-1); }
.f-copy { padding: 20px 22px 24px; }
.f-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.f-big h3 { margin: 0 0 8px; font-size: 19px; }
.f-big p { margin: 0; color: var(--text-3); line-height: 1.6; }
.vb-input { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--accent-border); font-weight: 700; font-size: 14px; }
.vb-input span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--surface-4); color: var(--text-3); font-size: 11px; }
.vb-slide { max-width: 26ch; text-align: center; font: 400 15px/1.4 'Lora', Georgia, serif; }
.vb-slide small { display: block; margin-bottom: 4px; color: #ffd166; font: 700 10px Onest, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.v-chords { font-size: 15px; justify-items: start; gap: 0; }
.vc-line { display: flex; gap: 34px; color: #fbbf24; font-weight: 800; font-size: 13px; }
.vc-text { margin-bottom: 8px; font-weight: 600; }
.v-screens { grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.v-screens span { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--text-3); font-size: 11px; font-weight: 650; }
.v-screens .vs-main { grid-column: 1 / -1; aspect-ratio: auto; height: 64px; border-color: var(--accent-border); color: var(--text-1); background: rgba(0, 204, 190, .08); font-size: 13px; }

.f-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.f-more li { display: flex; gap: 14px; padding: 20px; border-radius: 16px; border: 1px solid var(--line-1); background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s; }
.f-more li:hover { border-color: var(--line-3); background: var(--surface-1); }
.f-more .i { margin-top: 2px; color: var(--accent); }
.f-more h3 { margin: 0 0 4px; font-size: 16px; }
.f-more p { margin: 0; color: var(--text-3); line-height: 1.55; font-size: 14.5px; }

/* Pasos */
.steps { padding: 64px 0 40px; }
.s-list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.s-list::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-border), transparent); }
.s-list li { position: relative; z-index: 1; padding: 24px; border-radius: 18px; border: 1px solid var(--line-1); background: var(--surface-1); }
.s-n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 400 22px/1 var(--font-display); box-shadow: 0 0 0 6px var(--bg); position: relative; }
.s-list h3 { margin: 0 0 6px; font-size: 18px; }
.s-list p { margin: 0; color: var(--text-3); line-height: 1.6; }

/* Llamado final */
.cta { padding: 64px 0 80px; }
.cta-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; padding: 36px; border-radius: 24px; background: radial-gradient(600px 240px at 0% 0%, rgba(0, 204, 190, .16), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), rgba(20, 20, 28, .8); }
.cta-copy p { margin: 8px 0 0; color: var(--text-2); }
.cta-card > *, .hero > * { min-width: 0; }
.cta-card .enter-error { grid-column: 2; margin-top: -16px; }

.contact { padding: 0 0 88px; text-align: center; }
.c-ico { width: 32px; height: 32px; color: var(--accent); margin-bottom: 10px; }
.contact p { margin: 10px 0 22px; color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .hero-cta { justify-content: center; }

.l-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px max(16px, calc((100% - 1180px) / 2)); border-top: 1px solid var(--line-1); color: var(--text-3); font-size: 13px; }
.l-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-3); text-decoration: none; }
.l-foot a:hover { color: var(--text-1); }

/* Aparición al bajar */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.reveal.shown { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes flash { 0% { color: var(--accent); } 100% { color: var(--text-1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 40px; }
  .values ul { grid-template-columns: repeat(2, 1fr); }
  .values li:nth-child(3) { border-left: 0; }
  .values li:nth-child(n + 3) { border-top: 1px solid var(--line-1); }
  .f-main, .f-more { grid-template-columns: repeat(2, 1fr); }
  .f-main .f-big:last-child { grid-column: 1 / -1; }
  .cta-card { grid-template-columns: minmax(0, 1fr); }
  .cta-card .enter-error { grid-column: 1; margin-top: -12px; }
}
@media (max-width: 640px) {
  .l-links { display: none; }
  .l-nav { gap: 12px; }
  .l-nav .l-btn { margin-left: auto; padding: 0 14px; }
  .lead { font-size: 16px; }
  .enter-form { flex-direction: column; }
  .slug-prefix { max-width: 60%; }
  .values ul, .f-main, .f-more, .s-list { grid-template-columns: 1fr; }
  .values li, .values li:nth-child(3) { border-left: 0; }
  .values li + li { border-top: 1px solid var(--line-1); }
  .f-main .f-big:last-child { grid-column: auto; }
  .s-list::before { display: none; }
  .demo-devices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .demo-mini { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 6px; }
  .demo-mini .i { grid-row: auto; }
  .cta-card { padding: 24px 18px; }
  .features { padding-top: 64px; }
  .l-foot { flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* Avisos: iglesia suspendida o inexistente */
.notice-page { display: grid; place-items: center; padding: 16px; }
.notice { width: min(460px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 36px 28px; border-radius: 18px; background: var(--surface-overlay); border: 1px solid var(--line-2); }
.notice h1 { margin: 10px 0 0; font: 400 30px/1.05 var(--font-display); text-transform: uppercase; }
.notice p { margin: 0 0 8px; color: var(--text-3); line-height: 1.6; }

/* Páginas de error: una pantalla de proyector «sin señal» con el código */
.err-page { min-height: 100vh; display: flex; flex-direction: column; }
.err-nav { padding: 16px max(16px, calc((100% - 1180px) / 2)); }
.err-main { flex: 1; width: min(560px, 100% - 32px); margin: 0 auto; padding: 24px 0 64px; display: grid; justify-items: center; align-content: center; text-align: center; }
.err-screen { position: relative; width: min(420px, 100%); aspect-ratio: 16 / 9; margin-bottom: 32px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 0 0 8px rgba(255, 255, 255, .03), 0 40px 80px -30px #000, 0 0 80px -20px rgba(0, 204, 190, .35); background: #0a0f1a; }
.err-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); opacity: .5; animation: err-flicker 4s steps(1) infinite; }
.err-bars i:nth-child(1) { background: #c9c9c9; } .err-bars i:nth-child(2) { background: #c9c400; } .err-bars i:nth-child(3) { background: #00c4c4; }
.err-bars i:nth-child(4) { background: #00c400; } .err-bars i:nth-child(5) { background: #c400c4; } .err-bars i:nth-child(6) { background: #c40000; } .err-bars i:nth-child(7) { background: #0000c4; }
.err-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 4px), radial-gradient(circle at 50% 50%, transparent 30%, rgba(0, 0, 0, .55)); pointer-events: none; }
.err-code { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; gap: 4px; }
.err-code b { font: 400 clamp(64px, 16vw, 104px)/.9 var(--font-display); color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .8), 0 0 2px #000; }
.err-code span { display: inline-block; justify-self: center; padding: 4px 12px; border-radius: 99px; background: rgba(0, 0, 0, .65); color: var(--text-1); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.err-main h1 { margin: 0; font: 400 clamp(30px, 6vw, 44px)/1.02 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.err-main p { margin: 14px 0 28px; max-width: 46ch; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.err-foot { margin-top: 28px; color: var(--text-3); font-size: 13px; }
@keyframes err-flicker { 0%, 91%, 100% { opacity: .5; } 92% { opacity: .2; } 94% { opacity: .55; } 96% { opacity: .3; } }
@media (max-width: 480px) { .err-actions { flex-direction: column; width: 100%; } .err-actions .l-btn { width: 100%; } }
