/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #060d1a; /* Azul marino profundo */
    --bg-navy: #0a192f; /* Azul marino base */
    --gold: #d4af37;    /* Dorado primario */
    --gold-light: #f3e5ab; /* Dorado claro para destellos */
    --glass-bg: rgba(10, 25, 47, 0.45); /* Base translúcida para efecto cristal */
    --glass-border: rgba(212, 175, 55, 0.25); /* Borde dorado ultra fino */
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Clases reutilizables para Liquid Glass */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ==========================================================================
   NAVBAR (HEADER)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 13, 26, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px; /* Tamaño controlado del logo */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover, 
.nav-menu a.active {
    color: var(--gold);
}

/* Subrayado animado dorado */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Menú hamburguesa (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 3px;
    transition: 0.3s;
}

/* ==========================================================================
   WELCOME BANNER (VIDEO CONTAINER)
   ========================================================================== */
.welcomecontainer {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 20px;
}

.backgroundvideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.backgroundvideo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1); /* Oscurece el video para legibilidad */
}

.welcomebox {
    text-align: center;
    padding: 50px 40px;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.welcomebox h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--text-white);
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #ffffff 50%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcomebox p {
    font-size: 1.2rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 300;
}

/* ==========================================================================
   ROTATING CONTINOUS GALLERY (INFINITE INFINITE ROTATION)
   ========================================================================== */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-navy));
}

.section-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.gallery-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

/* Difuminadores laterales para simular profundidad de cristal */
.gallery-wrapper::before, .gallery-wrapper::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 15%;
    z-index: 2;
    pointer-events: none;
}
.gallery-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.gallery-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-navy), transparent); }

.gallery-track {
    display: flex;
    width: calc(250px * 9 + 40px * 9);
    gap: 40px;
    animation: rotateGallery 25s linear infinite;
}

.gallery-item {
    width: 250px;
    height: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(212, 175, 55, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 75%;
    object-fit: cover;
    border-radius: 8px;
    filter: saturate(0.8);
}

.gallery-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 10px;
}

/* ==========================================================================
   CONTAINER 2 (GUARANTEE & YOUTUBE VIDEOS)
   ========================================================================== */
.container2 {
    max-width: 1100px;
    margin: 40px auto;
    padding: 50px 40px;
    text-align: center;
}

.container2 h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.guarantee-text {
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.05rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   CONTAINER 3 (MISSION & SERVICES LIST)
   ========================================================================== */
.container3 {
    max-width: 900px;
    margin: 60px auto;
    padding: 50px 40px;
}

.container3 h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.container3 img {
    max-width: 100%;
    height: auto;
    display: block; /* Elimina un pequeño espacio en blanco que las imágenes dejan abajo */
    margin: 20px auto 0 auto; /* Opcional: para centrarla y darle espacio arriba */
}

.mission-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-white);
}

.services-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto 35px auto;
}

.services-list li {
    font-size: 1.05rem;
    padding: 12px 15px 12px 40px;
    margin-bottom: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    transition: background 0.3s;
}

.services-list li:hover {
    background: rgba(212, 175, 55, 0.08);
}

/* Icono personalizado dorado para los elementos de lista */
.services-list li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    color: var(--gold);
    font-weight: bold;
}

.mission-footer {
    font-style: italic;
    color: var(--text-gray);
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 25px;
}

/* ==========================================================================
   WELCOME CONTAINER 2 (PANORÁMICO DE ESQUINA A ESQUINA)
   ========================================================================== */
.welcomecontainer2 {
    position: relative;
    width: 100%;              /* Ocupa el 100% del ancho de la pantalla */
    height: 480px;            /* Altura fija para forzar el aspecto panorámico */
    margin: 70px 0 0 0;       /* Empieza justo abajo de la Navbar fija (sin márgenes laterales) */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3); /* Línea dorada sutil solo abajo */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.backgroundvideo2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.backgroundvideo2 video {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* Cubre todo el ancho panorámico sin deformarse */
    filter: brightness(0.35) contrast(1.1) saturate(0.8);
}

.welcomebox2 {
    text-align: center;
    padding: 40px 60px;
    max-width: 800px;
    width: 90%;
    /* Mantiene el efecto Liquid Glass translúcido */
}

.welcomebox2 h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: var(--text-white);
    letter-spacing: 3px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 60%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcomebox2 p {
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 300;
}

/* ==========================================================================
   RESPONSIVE PARA MÓVILES
   ========================================================================== */
@media (max-width: 768px) {
    .welcomecontainer2 {
        height: 340px;        /* Más compacto en celulares, manteniendo el formato de franja */
        margin-top: 70px;     /* Ajuste con la Navbar móvil */
    }

    .welcomebox2 {
        padding: 25px 20px;
    }

    .welcomebox2 h1 {
        font-size: 1.7rem;
        letter-spacing: 1px;
    }

    .welcomebox2 p {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
}
/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA LA PÁGINA DE NEWS
   ========================================================================== */

/* Ajuste de títulos secundarios dentro de la sección de descargas */
.container3 p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 25px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* El primer subtítulo no necesita tanto espacio arriba */
.container3 h3 + p {
    margin-top: 15px;
}

/* Estilizado de los enlaces como botones Liquid Glass Premium */
.container3 a {
    display: inline-block;
    padding: 12px 24px;
    margin-bottom: 15px;
    color: var(--gold);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    
    /* Efecto cristal en el botón */
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Efecto Hover interactivo */
.container3 a:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}

/* Ajuste para el texto descriptivo del New World Order */
.container3 p:not([class]) {
    font-weight: 300;
    color: var(--text-gray);
    text-transform: none;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

/* Contenedor responsivo para el Iframe de YouTube */
.container3 iframe {
    display: block;
    width: 100%;
    max-width: 720px; /* Tamaño ideal centrado */
    height: 405px;    /* Relación de aspecto 16:9 automática */
    margin: 20px auto 0 auto;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

/* ==========================================================================
   RESPONSIVE PARA TELÉFONOS (NEWS)
   ========================================================================== */
@media (max-width: 768px) {
    .container3 a {
        display: block; /* Ocupa todo el ancho en móviles para facilitar el touch */
        text-align: center;
        font-size: 0.85rem;
        padding: 14px 15px;
    }
    
    .container3 iframe {
        height: 240px; /* Altura más cómoda para pantallas de celular */
    }
}

/* ==========================================================================
   VISOR DE IFRAMES PDF (DOS COLUMNAS)
   ========================================================================== */
.pdf-container-news {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.pdf-container-news h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.pdf-container-news .section-desc {
    text-align: center;
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 30px;
    text-transform: none !important;
    font-weight: 300 !important;
}

/* Grid que alinea los dos PDFs juntos en horizontal */
.pdf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
    gap: 30px; /* Espacio entre las tarjetas */
}

.pdf-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pdf-card h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-white);
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-left: 3px solid var(--gold);
    padding-left: 10px;
    margin: 0;
}

/* Contenedor responsivo 4:3 para los visores de PDF */
.iframe-wrapper {
    position: relative;
    padding-bottom: 125px; /* Controla la altura base */
    height: 500px;         /* Altura ideal para leer PDFs en desktop */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   RESPONSIVE PARA TELÉFONOS
   ========================================================================== */
@media (max-width: 900px) {
    .pdf-grid {
        grid-template-columns: 1fr; /* Cambia a una sola columna en pantallas medianas/chicas */
        gap: 20px;
    }
    
    .iframe-wrapper {
        height: 400px; /* Reduce ligeramente la altura en celulares para mejor navegación */
    }
}



/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #040912;
    padding: 60px 20px 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-content p {
    margin: 8px 0;
    font-size: 1rem;
}

.footer-content .phone,
.footer-content .email {
    color: var(--text-white);
    font-weight: 500;
}

.footer-line {
    width: 60px;
    height: 1px;
    background-color: var(--gold);
    margin: 30px auto;
    opacity: 0.5;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.85rem !important;
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-290px * 6)); } /* Mueve exactamente el ancho de 6 elementos + gap */
}

/* Responsividad para Tables y Mobiles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(6, 13, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 35px;
        transition: left 0.4s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .welcomebox h1 {
        font-size: 2rem;
    }

    .welcomebox p {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .video-grid {
        grid-template-columns: 1fr; /* Una columna para videos en pantallas chicas */
    }

    .container2, .container3 {
        margin: 20px 15px;
        padding: 30px 20px;
    }
}

