/* =========================================================
   PP Oviedo · Página de espera ("Próximamente")
   ========================================================= */

:root {
    --deep-blue: #0a0f1f;
    --deep-blue-2: #0f172a;
    --pp-blue: #1e4a90;
    --accent: #00b2e3;
    --accent-soft: #56cdff;
    --white: #ffffff;
    --muted: #94a3b8;
    --line: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--deep-blue);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- CAPAS DE FONDO ---------- */

.bg-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Cuadrícula sutil con máscara radial para que se desvanezca hacia los bordes */
.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Resplandor radial en cian y azul corporativo, pulsando muy lento */
.bg-glow {
    background:
        radial-gradient(circle at 50% 35%, rgba(0, 178, 227, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 50% 70%, rgba(30, 74, 144, 0.28) 0%, transparent 45%);
    animation: glowPulse 14s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0%   { opacity: 0.65; transform: scale(1); }
    100% { opacity: 1;    transform: scale(1.08); }
}

/* ---------- ESCENARIO ---------- */

.stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* ---------- PANEL CENTRAL ---------- */

.panel {
    width: 100%;
    max-width: 720px;
    padding: 64px 56px 56px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    text-align: center;
    animation: fadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- LOGO ---------- */

.brand {
    margin-bottom: 38px;
    animation: fadeUp 0.9s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.brand-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ---------- BADGE DE ESTADO ---------- */

.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 14px;
    border-radius: 999px;
    background: rgba(0, 178, 227, 0.08);
    border: 1px solid rgba(0, 178, 227, 0.22);
    margin-bottom: 32px;
    animation: fadeUp 0.9s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

.status-text {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
}

/* ---------- TITULAR ---------- */

.headline {
    font-size: clamp(2.4rem, 5.6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--white);
    animation: fadeUp 0.9s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.headline-accent {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- TEXTO DE APOYO ---------- */

.lead {
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto;
    animation: fadeUp 0.9s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

/* ---------- DIVISOR ---------- */

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 44px auto;
    animation: fadeUp 0.9s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

/* ---------- REDES SOCIALES ---------- */

.social {
    animation: fadeUp 0.9s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.social-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-bottom: 20px;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--white);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--pp-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(0, 178, 227, 0.32);
    outline: none;
}

.social-link:hover::before,
.social-link:focus-visible::before {
    opacity: 1;
}

.social-link:hover svg,
.social-link:focus-visible svg {
    transform: scale(1.1);
}

/* ---------- PIE DE PÁGINA ---------- */

.footer {
    margin-top: 36px;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    opacity: 0.7;
    animation: fadeUp 0.9s 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 640px) {
    .panel {
        padding: 48px 26px 40px;
        border-radius: 22px;
    }

    .brand {
        margin-bottom: 30px;
    }

    .brand-logo {
        width: 160px;
    }

    .status {
        margin-bottom: 26px;
    }

    .headline {
        letter-spacing: -1px;
    }

    .lead {
        font-size: 0.98rem;
    }

    .divider {
        margin: 34px auto;
    }

    .social-link {
        width: 46px;
        height: 46px;
    }

    .bg-grid {
        background-size: 36px 36px;
    }
}

/* ---------- ACCESIBILIDAD: MOVIMIENTO REDUCIDO ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .bg-glow,
    .brand-logo,
    .status-dot {
        animation: none;
    }
}
