/* Fuentes Personalizadas (Ya incluidas en CSS anterior) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Oswald:wght@500&display=swap');

/* Estilos Generales */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #1a1a1a; /* Fondo oscuro general */
    color: #ffffff;
    position: relative; /* Necesario para que el z-index funcione */
    line-height: 1.7;
    width: 100%;
    overflow-wrap: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    color: #00bcd4;
    margin-bottom: 20px;
}

h1 {
    font-size: 4.5em;
    margin-top: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
}

.main-slogan {
    font-size: 2.2em;
    font-weight: normal;
    color: #e0e0e0;
    margin-bottom: 40px;
    letter-spacing: 1px;
    opacity: 0.9;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #ccc;
}

/* Estilos para el Fondo de Partículas (Este se mantiene igual que antes) */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    z-index: 0;
}

/* --- ESTILOS MODIFICADOS PARA EL POP-UP DE BIENVENIDA --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente de fondo más elegante y con los colores de la marca */
    background: linear-gradient(135deg, rgba(0, 10, 20, 0.95) 0%, rgba(0, 20, 30, 0.98) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Por encima del fondo de partículas */
    opacity: 1;
    transition: opacity 0.7s ease-in-out; /* Transición suave al ocultarse */
}

.popup-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(30, 30, 30, 0.98) 100%); /* Gradiente interno más sofisticado */
    padding: 40px 50px;
    border-radius: 18px; /* Bordes más redondeados */
    box-shadow: 0 15px 40px rgba(0, 200, 255, 0.4), /* Sombra principal azulada */
                0 8px 20px rgba(0, 0, 0, 0.6); /* Sombra de base oscura */
    text-align: center;
    max-width: 550px;
    width: 90%;
    border: 2px solid rgba(0, 188, 212, 0.6); /* Borde azul-turquesa sutil */
    box-sizing: border-box; /* Incluye padding y borde en el tamaño total */
}

.popup-content h2 {
    color: #ffffff; /* Título blanco */
    margin-bottom: 15px;
    font-size: 2.3em;
    font-family: 'Pacifico', cursive; /* Fuente más amigable y elegante para el saludo */
    text-shadow: none; /* Quitamos la sombra de glow si no queremos que sea tan agresiva aquí */
}

.popup-content p {
    color: #e0e0e0;
    font-size: 1.15em;
    margin-bottom: 25px;
}

.popup-content input[type="text"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #00bcd4; /* Borde turquesa */
    border-radius: 10px; /* Bordes redondeados */
    background-color: #2a2a2a; /* Fondo oscuro del input */
    color: #fff;
    font-size: 1.15em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.popup-content input[type="text"]:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.5); /* Efecto al enfocar */
}

.popup-content input[type="text"]::placeholder {
    color: #aaa;
}

.popup-content button {
    background-color: #00bcd4; /* Color principal de marca */
    color: #ffffff;
    padding: 16px 35px;
    border: none;
    border-radius: 10px;
    font-size: 1.25em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4); /* Sombra con brillo */
}

.popup-content button:hover {
    background-color: #00a0b0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 160, 176, 0.6);
}

.slogan-popup {
    margin-top: 25px;
    font-size: 1.3em;
    color: #00bcd4;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* --- ESTILOS PARA EL LOGO EN EL POPUP (SI LO LLEGARAS A PONER) --- */
/* .popup-logo {
    width: 150px; 
    margin-bottom: 25px;
} */

/* Estilos del Cabecero Principal (Se aplicarán una vez que el pop-up se oculte) */
.main-header {
    position: relative;
    z-index: 2;
    padding: 100px 0;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.company-intro-text {
    width: 100%;
}

/* Animaciones */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(0, 200, 255, 0.4), 0 0 10px rgba(0, 188, 212, 0.3); }
    50% { text-shadow: 0 0 15px rgba(0, 200, 255, 0.6), 0 0 25px rgba(0, 188, 212, 0.5); }
    100% { text-shadow: 0 0 5px rgba(0, 200, 255, 0.4), 0 0 10px rgba(0, 188, 212, 0.3); }
}

#companyName {
    animation: fadeInUp 1.5s ease-out forwards, glow 3s infinite ease-in-out;
}

#companySlogan {
    animation: slideInRight 1.5s ease-out forwards 0.5s;
    opacity: 0;
}

/* --- ESTILOS PARA EL LOGO DE ZAMGLOBOS (si se usara en esta página, pero no es el caso) --- */
/* .logo-zamglobos-container {} */
/* .logo-zamglobos {} */


/* Estilos del Contenido Principal (se aplica cuando el pop-up se oculta) */
.main-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 80px;
    opacity: 0; /* Inicialmente oculto, se hará visible con JS */
    transition: opacity 0.5s ease-in-out;
}

section {
    padding: 80px 0;
    margin-bottom: 40px;
    background-color: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

section h2 {
    font-size: 2.8em;
    margin-bottom: 50px;
}

/* Estilos de Servicios (Cuadrícula) */
.service-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    padding: 30px;
    box-sizing: border-box;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 200, 255, 0.3);
}

.service-icon {
    font-size: 3.5em;
    margin-bottom: 25px;
    color: #00bcd4;
}

.service-item h3 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1.05em;
}

/* Estilos del Portafolio (Cuadrícula de Videos con Tamaño Reducido) */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 25px;
    max-width: 960px;
    margin: 0 auto;
}

.video-frame {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 200, 255, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;

    position: relative;
    padding-bottom: 90%;
    height: 0;
    
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.video-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 200, 255, 0.4);
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- ESTILOS PARA EL BOTÓN DE WHATSAPP FLOTANTE --- */
.whatsapp-float-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100; /* Por encima de todo el contenido */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.5),
                0 0 15px rgba(0, 200, 255, 0.4);
}

.whatsapp-float-button .whatsapp-content {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float-button:hover .whatsapp-content {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.6);
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #25D366;
    transition: transform 0.3s ease;
}

.whatsapp-float-button:hover .whatsapp-icon {
    transform: scale(1.1);
}

.whatsapp-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
    animation: pulseText 2.5s infinite ease-in-out;
}

@keyframes pulseText {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}
/* --- FIN ESTILOS BOTÓN WHATSAPP --- */


/* --- Media Queries para Adaptación a Diferentes Tamaños --- */

@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    h1 { font-size: 3.5em; }
    .main-slogan { font-size: 1.8em; }
    .main-header { padding: 80px 0; height: 60vh; }
    section h2 { font-size: 2.4em; }
    .service-items-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        gap: 20px;
    }
    .video-frame {
        padding-bottom: 80%;
    }
    /* Ajuste para el botón de WhatsApp en pantallas medianas */
    .whatsapp-float-button {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float-button .whatsapp-content {
        padding: 8px 12px;
    }
    .whatsapp-icon {
        width: 35px;
        height: 35px;
        margin-right: 8px;
    }
    .whatsapp-text {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 3.2em; }
    .main-slogan { font-size: 1.6em; }
    
    .service-items-container {
        grid-template-columns: 1fr;
    }
    .service-item {
        width: 90%;
        margin: 0 auto 30px auto;
        box-sizing: border-box;
    }

    .video-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        width: 100%;
    }
    .video-frame {
        width: 95%;
        margin: 0 auto;
        padding-bottom: 150%;
        box-sizing: border-box;
    }
    section h2 { font-size: 2.1em; }
    .service-icon { font-size: 3em; }
    .service-item h3 { font-size: 1.7em; }
    .cta-button { font-size: 1.2em; padding: 14px 30px; }

    /* Ajuste para el botón de WhatsApp en pantallas pequeñas */
    .whatsapp-float-button {
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-float-button .whatsapp-content {
        padding: 6px 10px;
    }
    .whatsapp-icon {
        width: 40px;
        height: 40px;
        margin-right: 6px;
    }
    .whatsapp-text {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5em; }
    .main-slogan { font-size: 1.4em; }
    .main-header { padding: 60px 0; height: 50vh; }
    section h2 { font-size: 1.8em; }
    
    .service-item {
        width: 95%;
        box-sizing: border-box;
    }
    .video-frame {
        width: 95%;
        padding-bottom: 177.78%;
        box-sizing: border-box;
    }
    .cta-button { font-size: 1.1em; padding: 12px 25px; }
    footer { font-size: 0.9em; padding: 25px 0; }
    
    /* Ajuste para el botón de WhatsApp en móviles muy pequeños */
    .whatsapp-float-button {
        bottom: 10px;
        right: 10px;
    }
    .whatsapp-float-button .whatsapp-content {
        padding: 5px 8px;
    }
    .whatsapp-icon {
        width: 35px;
        height: 35px;
        margin-right: 5px;
    }
    .whatsapp-text {
        font-size: 0.9em;
    }
}