/* ══════════════════════════════════════════════════════════════════════
   SVSK · svsk-acceso.css
   Selector de acceso a los sistemas. Nocturno, dorado, con la ciudad 3D
   de telón. Pensado para que el texto se lea encima de la escena sin
   pelear con ella.
   ══════════════════════════════════════════════════════════════════════ */

.svsk-escena {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, #0b0e14 0%, #11151d 55%, #080a0e 100%);
}

/* Rejilla técnica muy tenue: da textura sin llamar la atención. */
.svsk-escena::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 46px 46px;
}

/* Tres manchas de color que respiran despacio. Es un fondo neutro:
   no representa ningún rubro, porque aquí todavía no se eligió uno. */
.svsk-aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .30;
    will-change: transform;
}

.svsk-aura.a1 {
    width: 46vw; height: 46vw;
    top: -14%; left: -8%;
    background: #d4af37;
    animation: svsk-deriva-1 26s ease-in-out infinite;
}

.svsk-aura.a2 {
    width: 40vw; height: 40vw;
    bottom: -16%; right: -6%;
    background: #2d6ea8;
    opacity: .26;
    animation: svsk-deriva-2 32s ease-in-out infinite;
}

.svsk-aura.a3 {
    width: 30vw; height: 30vw;
    top: 42%; left: 46%;
    background: #6b4fa8;
    opacity: .18;
    animation: svsk-deriva-3 38s ease-in-out infinite;
}

@keyframes svsk-deriva-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(9vw, 7vh) scale(1.14); }
}

@keyframes svsk-deriva-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-11vw, -6vh) scale(1.18); }
}

@keyframes svsk-deriva-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-62%, -38%) scale(1.22); }
}

.svsk-vineta {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 42%, transparent 34%, rgba(8, 10, 14, .82) 100%);
}

.svsk-acceso {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 28px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #e8ecf2;
}

/* ── Cabecera ─────────────────────────────────────────────────────── */

.svsk-cabecera {
    text-align: center;
    margin-bottom: 42px;
    opacity: 0;
    transform: translateY(-18px);
}

.entrando .svsk-cabecera {
    animation: svsk-bajar .85s cubic-bezier(.22, 1, .36, 1) forwards;
}

.svsk-logo {
    width: 92px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 26px rgba(212, 175, 55, .38));
}

.svsk-titulo {
    margin: 0;
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 900;
    letter-spacing: .24em;
    color: #f2f5f9;
}

.svsk-titulo span {
    color: #d4af37;
}

.svsk-bajada {
    margin: 10px 0 0;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7d8798;
}

/* ── Rejilla de puertas ───────────────────────────────────────────── */

.svsk-rejilla {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 980px;
}

.svsk-puerta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    text-align: left;
    cursor: pointer;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(18, 22, 29, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: inherit;
    font: inherit;

    opacity: 0;
    transform: translateY(26px);
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

.entrando .svsk-puerta {
    animation: svsk-subir .7s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: var(--retraso, 0ms);
}

.svsk-puerta:not(.dormida):hover {
    transform: translateY(-4px);
    border-color: var(--acento);
    background: rgba(24, 29, 38, .88);
}

.svsk-puerta:not(.dormida):hover .svsk-puerta-halo {
    opacity: .16;
}

.svsk-puerta:focus-visible {
    outline: 2px solid var(--acento);
    outline-offset: 3px;
}

.svsk-puerta.dormida {
    opacity: .52;
}

.svsk-puerta.dormida:hover {
    opacity: .78;
    transform: translateY(-2px);
    border-color: var(--acento);
}

.entrando .svsk-puerta.dormida {
    animation: svsk-subir-tenue .7s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: var(--retraso, 0ms);
}

/* ── Aviso de sitio en construcción ───────────────────────────────── */

.svsk-obra-fondo {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(6, 8, 12, .78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: svsk-aparecer .25s ease forwards;
    opacity: 0;
}

.svsk-obra {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 38px 30px 30px;
    text-align: center;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: linear-gradient(180deg, #171c25, #10141b);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .6);

    transform: scale(.92);
    animation: svsk-crecer .38s cubic-bezier(.22, 1, .36, 1) .05s forwards;
}

/* Cinta de obra amarilla y negra en el borde superior. */
.svsk-obra-cinta {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 7px;
    background: repeating-linear-gradient(
        45deg,
        #f0b323 0 12px,
        #1a1a1a 12px 24px
    );
}

.svsk-obra-icono {
    font-size: 46px;
    line-height: 1;
    margin-bottom: 14px;
    animation: svsk-martillar 2.4s ease-in-out infinite;
}

.svsk-obra-titulo {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .18em;
    color: var(--acento, #d4af37);
}

.svsk-obra-texto {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #cfd6e0;
}

.svsk-obra-nota {
    margin: 0 0 24px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, .12);
    font-size: 12px;
    line-height: 1.5;
    color: #7d8798;
}

.svsk-obra-boton {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: var(--acento, #d4af37);
    color: #10131a;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    cursor: pointer;
    transition: filter .2s ease;
}

.svsk-obra-boton:hover { filter: brightness(1.12); }

@keyframes svsk-crecer {
    to { transform: scale(1); }
}

@keyframes svsk-martillar {
    0%, 62%, 100% { transform: rotate(0deg); }
    70%           { transform: rotate(-16deg); }
    78%           { transform: rotate(10deg); }
    86%           { transform: rotate(-6deg); }
}

/* Resplandor del color de cada sistema, contenido por el overflow. */
.svsk-puerta-halo {
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 150%;
    background: radial-gradient(ellipse at 20% 0%, var(--acento), transparent 62%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.svsk-puerta-icono {
    position: relative;
    flex: 0 0 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-size: 25px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
}

.svsk-puerta-texto {
    position: relative;
    flex: 1;
    min-width: 0;
}

.svsk-puerta-nombre {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .1em;
    color: #f2f5f9;
}

.svsk-puerta-desc {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
    color: #8791a3;
}

.svsk-puerta-estado {
    position: relative;
    flex: 0 0 auto;
}

.pastilla {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    white-space: nowrap;
}

.pastilla.viva {
    background: var(--acento);
    color: #10131a;
}

.pastilla.externa {
    background: rgba(255, 255, 255, .07);
    color: var(--acento);
    border: 1px solid var(--acento);
}

.pastilla.dormida {
    background: rgba(255, 255, 255, .05);
    color: #6b7484;
}

/* ── Pie ──────────────────────────────────────────────────────────── */

.svsk-pie {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: .1em;
    color: #626c7c;
    opacity: 0;
}

.entrando .svsk-pie {
    animation: svsk-aparecer .8s ease .75s forwards;
}

.svsk-volver {
    color: #8791a3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.svsk-volver:hover {
    color: #d4af37;
    border-color: #d4af37;
}

/* ── Animaciones ──────────────────────────────────────────────────── */

@keyframes svsk-bajar {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes svsk-subir {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes svsk-subir-tenue {
    to { opacity: .42; transform: translateY(0); }
}

@keyframes svsk-aparecer {
    to { opacity: 1; }
}

/* ── Accesibilidad y pantallas chicas ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .svsk-cabecera,
    .svsk-puerta,
    .svsk-pie {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .svsk-puerta.dormida { opacity: .52 !important; }
    .svsk-puerta:hover { transform: none; }
    .svsk-obra { animation: none; transform: none; }
    .svsk-aura { animation: none !important; }
    .svsk-obra-fondo { animation: none; opacity: 1; }
    .svsk-obra-icono { animation: none; }
}

@media (max-width: 600px) {
    .svsk-acceso { padding: 32px 14px 20px; }
    .svsk-rejilla { grid-template-columns: 1fr; }
    .svsk-puerta { padding: 16px 16px; gap: 13px; }
    .svsk-puerta-icono { flex-basis: 44px; height: 44px; font-size: 21px; }
    .svsk-logo { width: 72px; }
}
