/* Portada /demo/ — muro de pantallas */
.hub { background: var(--paper); }
.hub-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hub-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; text-decoration: none; white-space: nowrap; }
.hub-top nav { display: flex; align-items: center; gap: 10px; }
.hub-top nav > a:not(.btn) { padding: 8px 10px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.hub-top nav > a:not(.btn):hover { color: var(--ink); }

.hub-main { width: min(1240px, 100%); margin: 0 auto; padding: clamp(36px, 7vw, 88px) clamp(16px, 4vw, 48px) 40px; }
.hub-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 24px 56px; margin-bottom: clamp(36px, 6vw, 64px); }
.hub-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; line-height: .96; letter-spacing: -.035em; }
.hub-intro { display: grid; gap: 18px; padding-bottom: 8px; }
.hub-intro p { color: var(--ink-2); font-size: 1.08rem; max-width: 46ch; }
.hub-cred { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--lagoon-soft); font-size: .9rem !important; }
.hub-cred b { color: var(--ink); font-weight: 600; }

/* Muro: 10 pantallas que se encienden en secuencia */
.wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.tv a { display: grid; gap: 12px; height: 100%; padding: 10px 10px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease); }
.tv a:hover { transform: translateY(-4px); border-color: var(--lagoon); box-shadow: var(--shadow-lg); }
.tv-screen { position: relative; display: block; aspect-ratio: 7 / 4; border-radius: 12px; overflow: hidden; background: #0A2F37; }
.screen-ui { width: 100%; height: 100%; }
.screen-ui .s-soft { fill: rgba(127, 211, 222, .16); }
.screen-ui .s-soft2 { fill: rgba(127, 211, 222, .3); }
.screen-ui .s-card, .screen-ui .s-card-c { fill: rgba(255, 255, 255, .07); stroke: rgba(127, 211, 222, .22); stroke-width: 1; }
.screen-ui .s-acc, .screen-ui .s-acc-c { fill: #4CC3D2; }
.screen-ui .s-warn { fill: #F2B04E; }
.screen-ui .s-ink { fill: rgba(232, 240, 242, .85); }
.screen-ui .s-line { fill: rgba(232, 240, 242, .55); }
.screen-ui .s-line2 { fill: rgba(232, 240, 242, .25); }
.screen-ui .s-path { fill: none; stroke: #4CC3D2; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.screen-ui .s-dash { stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.screen-ui .s-stamp { fill: none; stroke: #4CC48D; stroke-width: 2.5; }
.screen-ui .s-check { fill: none; stroke: #4CC48D; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tv-flash { position: absolute; inset: 0; background: linear-gradient(transparent 46%, rgba(255, 255, 255, .9) 50%, transparent 54%); opacity: 0; pointer-events: none; }
.tv-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 4px; }
.tv-ic { display: none !important; }
.tv-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--lagoon-soft); color: var(--lagoon); }
.tv-info b { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.2; }
.tv-info small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.tv-go { color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.tv a:hover .tv-go { color: var(--lagoon); transform: translateX(3px); }

/* Encendido tipo monitor CRT: línea que se abre, destello y la interfaz aparece */
.js .wall .tv .screen-ui { opacity: 0; transform: scaleY(.02); }
.js .wall.on .tv .screen-ui { animation: tv-on .7s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
.js .wall.on .tv .tv-flash { animation: tv-flash .7s ease-out forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
@keyframes tv-on { 0% { opacity: 1; transform: scaleY(.02) scaleX(.6); filter: brightness(3); } 45% { opacity: 1; transform: scaleY(.02) scaleX(1); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes tv-flash { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }

.hub-close { display: grid; justify-items: start; gap: 14px; margin-top: clamp(56px, 8vw, 96px); padding: clamp(28px, 5vw, 48px); border-radius: 24px; background: var(--petrol); color: var(--on-petrol); }
:root[data-theme="dark"] .hub-close { background: #0E3A44; color: #E8F0F2; }
.hub-close h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.hub-close p { max-width: 56ch; opacity: .85; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hub-close .btn:not(.btn-wa) { background: transparent; border-color: currentColor; color: inherit; }
.hub-foot { padding: 28px clamp(16px, 4vw, 48px) 40px; color: var(--muted); font-size: .84rem; text-align: center; }

@media (max-width: 1100px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .hub-hero { grid-template-columns: 1fr; }
    .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tv a { padding: 8px 8px 12px; border-radius: 16px; }
    .tv-info { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .tv-ic, .tv-go { display: none; }
    .hub-top nav > a:not(.btn) { display: none; }
}
@media (max-width: 420px) { .hub-brand span { font-size: .92rem; } .hub-brand img { width: 30px; height: 30px; } .hub-top .btn-wa { padding: 6px 10px; font-size: .8rem; } }
