/* =========================================
   VARIABLES GLOBALES
   ========================================= */
:root {
    --bg-dark: #0a0e14;
    --accent-blue: #0066cc;
    --accent-gold: #ffcc00;
    --text-white: #ffffff;
    --text-dim: #a0aec0;
}

/* =========================================
   RESETEO Y ESTILOS BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    /* Imagen de fondo aeronáutica de alta gama */
    background-image: url('https://images.unsplash.com/photo-1542296332-2e4473faf563?q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Filtro oscuro para asegurar legibilidad sobre la imagen */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 20, 0.92) 0%, rgba(10, 14, 20, 0.75) 100%);
    z-index: 1;
}

/* =========================================
   SELECTOR DE IDIOMAS (BANDERAS)
   ========================================= */
.lang-switcher {
    position: absolute;
    top: 25px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.lang-switcher button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lang-switcher button img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.lang-switcher button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Estado Activo del Botón de Idioma */
.lang-switcher button.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.4);
}

/* =========================================
   CONTENEDOR PRINCIPAL
   ========================================= */
.main-content {
    position: relative;
    z-index: 2;
    max-width: 1250px; /* Ancho ampliado para 4 tarjetas en línea */
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

/* =========================================
   LOGO TIPOGRÁFICO (SOLO LETRAS) Y ENCABEZADO
   ========================================= */
.brand {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem; /* Tamaño de HOLZBAUR */
    font-weight: 700;  /* Letra gruesa y sólida */
    letter-spacing: 10px; /* Separación elegante */
    color: #ffffff; /* Color blanco/plata */
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.brand span {
    display: block; /* Manda INVESTMENT a la línea de abajo */
    font-size: 1.6rem; /* Más pequeño para contraste */
    font-weight: 300; /* Letra más fina */
    letter-spacing: 18px; /* Aún más separado */
    color: #c5a880; /* Tono dorado premium y sutil */
    margin-top: 5px;
    margin-right: -18px; /* Compensa el espaciado para centrar perfecto */
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    margin-top: 15px;
    letter-spacing: 2px;
}

/* =========================================
   SECCIÓN DE ESTADO (ANNOUNCEMENT)
   ========================================= */
.announcement { margin: 40px 0; }

.status-text {
    font-size: 3rem;
    letter-spacing: 10px;
    font-weight: 700;
}

.divider {
    height: 2px;
    width: 60px;
    background: var(--accent-blue);
    margin: 20px auto;
}

.description {
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   TARJETAS DE EMPRESAS Y LOGOS (GRID)
   ========================================= */
.grid-companies {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columnas para las 4 empresas */
    gap: 20px;
    margin-top: 40px;
}

.company-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    border-radius: 4px;
    transition: 0.3s ease;
}

.company-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-blue);
}

/* Caja del logo con fondo blanco (para integrar los JPGs perfectamente) */
.logo-box {
    height: 70px; 
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px;
    text-decoration: none; /* Por si se usa una etiqueta <a> */
}

.logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.company-card h3 {
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.company-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* =========================================
   EFECTOS VISUALES AL HACER CLIC / HOVER
   ========================================= */
.clickable-logo {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.clickable-logo:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

.clickable-logo::after {
    content: "Abrir"; /* Texto genérico funcional para PDF y Links */
    position: absolute;
    bottom: -12px;
    background: var(--accent-blue);
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.clickable-logo:hover::after {
    opacity: 1;
}

/* =========================================
   PIE DE PÁGINA (WEBMAIL)
   ========================================= */
.footer-access {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.webmail-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 12px 25px;
    background: rgba(0, 102, 204, 0.2);
    border: 1px solid var(--accent-blue);
    border-radius: 2px;
    transition: 0.3s;
}

.webmail-link:hover {
    background: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.5);
}

.webmail-link .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-hint {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.contact-hint a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* =========================================
   MODAL PARA VISOR DE PDF
   ========================================= */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.4s ease-out;
}

.close-modal {
    position: absolute;
    top: 5px;
    right: 15px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.close-modal:hover {
    color: var(--accent-gold);
}

#pdfViewer {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #333; 
    border-radius: 8px;
}

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

/* =========================================
   RESPONSIVO PARA PANTALLAS PEQUEÑAS
   ========================================= */
@media (max-width: 1100px) {
    /* En Laptops pequeñas o Tablets (2 arriba y 2 abajo) */
    .grid-companies {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Ajustes del selector de idiomas en móviles */
    .lang-switcher {
        top: 15px;
        right: 50%;
        transform: translateX(50%); /* Centra las banderas en la pantalla */
    }
    
    .hero {
        margin-top: 50px; /* Da espacio para que el logo no choque con las banderas */
    }

    /* Ajustes del modal en móviles */
    .modal-content {
        width: 95%;
        height: 85vh;
    }
    .close-modal {
        top: 2px;
        right: 10px;
        font-size: 30px;
    }
    .brand { font-size: 2.5rem; }
    .brand span { font-size: 1.2rem; }
}

@media (max-width: 600px) {
    /* En Teléfonos Móviles (1 tarjeta por fila) */
    .grid-companies {
        grid-template-columns: 1fr;
    }
    .brand { font-size: 2rem; }
    .brand span { font-size: 1rem; letter-spacing: 12px; }
    .status-text { font-size: 1.8rem; }
}