/* Fuentes Personalizadas (Ejemplo - considera Google Fonts) */
@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: #0a0a0a;
    color: #ffffff;
    position: relative;
    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.6em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 210, 230, 0.6),
                 0 0 20px rgba(0, 188, 212, 0.4);
    animation: pulseSlogan 3s infinite ease-in-out;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #ccc;
}

/* Estilos para el Fondo de Partículas */
#tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: transparent;
}

/* Estilos del Cabecero Principal */
.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 --- */
.logo-zamglobos-container {
    margin-top: 30px;
}

.logo-zamglobos {
    width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: drop-shadow(0 0 18px rgba(150, 100, 255, 0.7));
}

.logo-zamglobos:hover {
    transform: scale(1.05);
    opacity: 1;
}
/* --- FIN ESTILOS LOGO ZAMGLOBOS --- */


/* Estilos del Contenido Principal */
.main-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 80px;
}

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;
    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 --- */


/* --- ESTILOS PARA EL BOTÓN DE COTIZACIÓN (MEJORADO) --- */
/* Aplicamos los estilos directamente a la clase .cta-button */
.cta-button {
    display: inline-block; /* Necesario para que tenga padding y se vea como un bloque */
    padding: 15px 35px; /* Espaciado interno */
    background: linear-gradient(90deg, #00bcd4 0%, #00838f 100%); /* Gradiente azul-turquesa a azul oscuro */
    color: #ffffff; /* Texto blanco */
    border: none; /* Sin borde nativo */
    border-radius: 10px; /* Bordes redondeados */
    font-size: 1.35em; /* Tamaño de fuente más grande */
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Transiciones suaves */
    box-shadow: 0 7px 20px rgba(0, 188, 212, 0.4); /* Sombra que emana luz */
    text-decoration: none; /* Elimina el subrayado del enlace */
    margin-top: 15px; /* Espacio sobre el botón si fuera necesario */
}

.cta-button:hover {
    background: linear-gradient(90deg, #00a0b0 0%, #006c7f 100%); /* Gradiente más oscuro al pasar el ratón */
    transform: translateY(-4px); /* Efecto de elevación */
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.6); /* Sombra más pronunciada */
}
/* --- FIN ESTILOS BOTÓN COTIZACIÓN --- */


/* 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 de tamaño para CTA en móviles */

    /* 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; } /* Ajuste final de tamaño para CTA en móviles */
    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;
    }
}