* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

/* === 1. VÍDEO DE FONDO === */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

/* === 2. FILTRO OSCURO === */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* === 3. MENÚ DE IDIOMAS === */
.lang-menu {
    position: absolute;
    top: 40px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 20px;
}

.lang-menu a {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
}

.lang-menu a:hover, 
.lang-menu a.active {
    color: #ffffff;
}

/* === 4. CONTENEDOR CENTRAL === */
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
}

.title-container {
    display: inline-block;
    text-align: center;
}

.title {
    font-family: 'Cinzel', serif;
    font-size: 4.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.1;
    margin-bottom: 10px;
    white-space: nowrap;
}

.subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.45rem;
    font-weight: 400;
    display: block;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-character;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    transition: all 0.3s ease;
}

/* --- Ajuste noble para Árabe --- */
.subtitle.arabic-mode {
    font-family: 'Amiri', serif;
    font-size: 2.1rem;
    font-weight: 700;
    text-align: center !important;
    text-align-last: center !important;
    letter-spacing: 0 !important;
    direction: rtl;
    line-height: 1.2;
}

/* --- Ajuste imperial para Chino --- */
.subtitle.chinese-mode {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center !important;
    text-align-last: center !important;
    /* Espaciado amplio y solemne, pero sin tocar los extremos */
    letter-spacing: 1.5rem !important;
    /* Compensación visual para el centrado perfecto */
    padding-left: 1.5rem;
}

/* Secuencia dinámica a 2/3 de altura */
.dynamic-container {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: clamp(70px, 12vh, 120px);
}

.description {
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: #00e5ff;
    transition: opacity 1s ease-in-out;
    opacity: 1;
    will-change: opacity;
    transform: translateZ(0);
}

.description.arabic-mode {
    font-family: 'Amiri', serif;
    font-size: 1.45rem;
    letter-spacing: 0 !important;
    direction: rtl;
}

.description.chinese-mode {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    letter-spacing: 0.3em !important;
}

/* === 5. PIE DE PÁGINA === */
.footer {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.footer a {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: color 0.4s ease;
}

.footer a:hover {
    color: #ffffff;
}

/* Adaptación móvil */
@media (max-width: 768px) {
    .title {
        font-size: 2.6rem;
        letter-spacing: 0.05em;
    }
    .subtitle {
        font-size: 0.85rem;
    }
    .subtitle.arabic-mode {
        font-size: 1.4rem;
    }
    .subtitle.chinese-mode {
        font-size: 1.1rem;
        letter-spacing: 0.8rem !important;
        padding-left: 0.8rem;
    }
    .dynamic-container {
        margin-top: 50px;
    }
    .description {
        font-size: 0.95rem;
        letter-spacing: 0.12em;
    }
    .description.arabic-mode {
        font-size: 1.15rem;
    }
    .description.chinese-mode {
        font-size: 1rem;
    }
    .lang-menu {
        top: 20px;
        right: 20px;
        gap: 12px;
    }
    .footer {
        bottom: 25px;
    }
}
