/* ============================================
   VARIABLES Y RESET
   ============================================ */
:root {
    --bg-primary: #080808;
    --bg-secondary: #0e0e0e;
    --bg-card: #141414;
    --cyan: #00D9FF;
    --cyan-glow: rgba(0, 217, 255, 0.08);
    --cyan-glow-strong: rgba(0, 217, 255, 0.2);
    --text-white: #f2f2f2;
    --text-muted: #a0a0a0;
    --border-card: #1f1f1f;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    /* Fondo con efecto tecnológico sutil */
    background-image:
        radial-gradient(circle at 15% 25%, rgba(0, 217, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(0, 217, 255, 0.02) 0%, transparent 45%),
        linear-gradient(rgba(0, 217, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 0 0, 0 0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    animation: fadeDown 0.8s ease both;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logo */
.logo {
    height: 40px;
    width: auto;
    display: block;
    animation: fadeDown 0.8s ease both;
    object-fit: contain;
}

.header__right {
    display: flex;
    align-items: center;
}

.btn-discord {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-discord:hover {
    background: rgba(0, 217, 255, 0.08);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* ============================================
   MAIN
   ============================================ */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px 24px 60px;
}

.main__container {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* Badge */
.badge {
    display: inline-block;
    background: rgba(0, 217, 255, 0.06);
    border: 1px solid rgba(0, 217, 255, 0.15);
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 100px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeUp 0.8s 0.15s both;
}

/* Título */
.title {
    font-size: clamp(2.2rem, 7vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeUp 0.8s 0.25s both;
    letter-spacing: -0.02em;
}

.title__highlight {
    color: var(--cyan);
    position: relative;
}

.title__highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cyan);
    border-radius: 4px;
    opacity: 0.3;
    filter: blur(2px);
}

/* Descripción */
.description {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 32px;
    animation: fadeUp 0.8s 0.35s both;
    line-height: 1.6;
}

/* Indicador de mantenimiento */
.maintenance-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 217, 255, 0.04);
    border: 1px solid rgba(0, 217, 255, 0.08);
    padding: 8px 24px;
    border-radius: 100px;
    margin-bottom: 40px;
    animation: fadeUp 0.8s 0.45s both;
}

.maintenance-indicator__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    animation: pulse 2s ease-in-out infinite;
}

.maintenance-indicator__icon svg {
    display: block;
}

.maintenance-indicator__text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Botón principal CTA */
.btn-primary {
    display: inline-block;
    background: var(--cyan);
    color: #0a0a0a;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 48px;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition);
    animation: fadeUp 0.8s 0.55s both;
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.15);
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.25);
    background: #00e8ff;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Texto debajo del botón */
.btn-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    animation: fadeUp 0.8s 0.65s both;
}

/* ============================================
   CARDS
   ============================================ */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    animation: fadeUp 0.8s 0.75s both;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: left;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(0, 217, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.03);
    transform: translateY(-2px);
}

.card__icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
    color: var(--cyan);
}

.card__icon svg {
    display: block;
}

.card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: auto;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer__divider {
    opacity: 0.3;
}

.footer__right {
    display: flex;
    align-items: center;
}

.footer__discord {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer__discord:hover {
    color: var(--cyan);
}

/* ============================================
   SELECTOR DE IDIOMA
   ============================================ */
.lang-selector {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 14px;
    border-radius: 100px;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.lang-btn:hover {
    color: var(--text-white);
}

.lang-btn.active {
    color: var(--cyan);
    background: rgba(0, 217, 255, 0.08);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }

    .logo {
        height: 32px;
    }

    .main {
        padding: 30px 20px 50px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

    .card {
        padding: 20px;
        text-align: center;
    }

    .card__icon {
        justify-content: center;
    }

    .btn-primary {
        padding: 14px 32px;
        font-size: 1rem;
        width: 100%;
        max-width: 360px;
    }

    .btn-subtext {
        font-size: 0.8rem;
        padding: 0 12px;
    }

    .footer__container {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .footer__left {
        flex-wrap: wrap;
        justify-content: center;
    }

    .lang-selector {
        bottom: 16px;
        right: 16px;
        padding: 4px 12px;
    }

    .lang-btn {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .maintenance-indicator {
        padding: 6px 18px;
    }

    .badge {
        font-size: 0.6rem;
        padding: 4px 14px;
    }
}

@media (max-width: 480px) {
    .header__container {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .header__right {
        width: 100%;
        justify-content: center;
    }

    .btn-discord {
        padding: 6px 18px;
        font-size: 0.8rem;
    }

    .title {
        font-size: 1.8rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .card__title {
        font-size: 0.95rem;
    }

    .card__text {
        font-size: 0.85rem;
    }

    .logo {
        height: 28px;
    }
}