/* --- PALETA DE COLORES CORPORATIVA G.A.R.P --- */
:root {
    --bg-dark: #07090E;          
    --bg-secondary: #0D111A;     
    --bg-card: rgba(13, 17, 26, 0.75);
    --accent-gold: #D4AF37;      
    --accent-blue: #1E3A8A;      
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-border: rgba(212, 175, 55, 0.15); 
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* --- CONTENEDOR HERO Y FONDO --- */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

#heroVideo, .hero-gif-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to right, rgba(7, 9, 14, 0.94) 30%, rgba(7, 9, 14, 0.45) 100%),
                linear-gradient(to bottom, rgba(7, 9, 14, 0.2), rgba(7, 9, 14, 0.8));
    z-index: 2;
    
    /* --- CONTROL GLOBAL DE OPACIDAD --- */
    /* 1.0 = Capa oscura original / 0.0 = Filtro invisible (se ve el video puro) */
    opacity: 0.60; 
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    position: relative; 
    z-index: 10; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    width: 96%; 
    max-width: 1800px; 
    margin: 20px auto 0 auto; 
    padding: 12px 50px;
    background: rgba(13, 17, 26, 0.65); 
    backdrop-filter: blur(20px); 
    border: 1px solid var(--glass-border); 
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.logo-container-img {
    display: flex;
    align-items: center;
    height: 50px;
}

.nav-logo-premium {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 40px; 
}

.nav-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 0.85rem; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    transition: color 0.3s; 
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--accent-gold); 
}

.btn-emergency { 
    background-color: var(--accent-blue); 
    color: white; 
    padding: 12px 24px; 
    border: 1px solid var(--accent-gold); 
    border-radius: 4px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.btn-emergency:hover { 
    background-color: var(--accent-gold); 
    color: var(--bg-dark); 
}

/* --- CONTENIDO TEXTO HERO --- */
.hero-content { 
    position: relative; 
    z-index: 5; 
    width: 96%; 
    max-width: 1800px; 
    margin: 0 auto; 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
}

.text-block { 
    max-width: 750px; 
}

.text-block h1 { 
    font-family: 'Orbitron', sans-serif; 
    font-weight: 800; 
    font-size: 4.2rem; 
    line-height: 1.05; 
    letter-spacing: 1px; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
    color: #FFFFFF; 
    text-shadow: 0 4px 12px rgba(0,0,0,0.6); 
}

.text-block p { 
    color: var(--text-light); 
    opacity: 0.9; 
    font-size: 1.2rem; 
    line-height: 1.6; 
    margin-bottom: 35px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
}

.btn-consultation { 
    background: rgba(7, 9, 14, 0.4); 
    color: var(--accent-gold); 
    border: 1px solid var(--accent-gold); 
    padding: 16px 32px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    cursor: pointer; 
    backdrop-filter: blur(4px); 
    transition: all 0.3s ease; 
}

.btn-consultation:hover { 
    background: var(--accent-gold); 
    color: var(--bg-dark); 
}

/* --- PESTAÑAS INFERIORES --- */
.services-tabs { 
    position: relative; 
    z-index: 5; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    width: 100%; 
    background: rgba(7, 9, 14, 0.85); 
    border-top: 1px solid var(--glass-border); 
}

.tab { 
    background: transparent; 
    padding: 35px 50px; 
    cursor: pointer; 
    transition: all 0.3s; 
    border-right: 1px solid rgba(255,255,255,0.05); 
}

.tab:hover { 
    background: rgba(30, 58, 138, 0.3); 
}

.tab-content { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.tab-icon { 
    font-size: 2rem; 
    color: var(--accent-gold); 
}

.tab h3 { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.1rem; 
    margin-bottom: 5px; 
    color: #FFF; 
}

.tab p { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
}

/* --- SECCIONES DE SCROLL --- */
.section-scroll { 
    padding: 120px 4%; 
    width: 100%; 
    max-width: 1800px; 
    margin: 0 auto; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 80px; 
}

.section-header h2 { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 2.6rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    margin-bottom: 15px; 
    color: #FFF; 
}

.section-header p { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
}

/* Misión / Visión */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
}

.about-card { 
    background: var(--bg-secondary); 
    border: 1px solid var(--glass-border); 
    padding: 50px; 
    border-radius: 4px; 
    position: relative; 
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.card-accent-line { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 3px; 
    background: var(--accent-gold); 
}

.about-card h3 { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.8rem; 
    margin-bottom: 25px; 
    color: var(--accent-gold); 
    text-transform: uppercase; 
}

.about-card ul { 
    list-style: none; 
}

.about-card li { 
    margin-bottom: 15px; 
    line-height: 1.6; 
    color: var(--text-muted); 
}

.about-card strong { 
    color: #FFF; 
    display: block; 
    font-size: 1.05rem; 
    margin-bottom: 2px; 
}

/* Filas de Servicios */
.detailed-services-container { 
    display: flex; 
    flex-direction: column; 
    gap: 100px; 
}

.service-row { 
    display: flex; 
    align-items: center; 
    gap: 8%; 
}

.service-row.reverse { 
    flex-direction: row-reverse; 
}

.service-info { 
    flex: 1; 
}

.service-num { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.5rem; 
    color: var(--accent-gold); 
    display: block; 
    margin-bottom: 15px; 
    font-weight: 700; 
}

.service-info h3 { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 2.2rem; 
    margin-bottom: 20px; 
    color: #FFF; 
}

.service-info p { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    line-height: 1.7; 
}

.service-img { 
    flex: 1; 
    height: 450px; 
    background-size: cover; 
    background-position: center; 
    border-radius: 4px; 
    border: 1px solid var(--glass-border); 
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-row:hover .service-img {
    transform: scale(1.02);
    border-color: var(--accent-gold);
}

/* Diferenciadores Grid */
.diferenciadores-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
}

.diff-item { 
    background: var(--bg-secondary); 
    padding: 40px; 
    border: 1px solid rgba(255,255,255,0.03); 
    border-left: 3px solid var(--accent-blue); 
    transition: all 0.3s ease;
}

.diff-item:hover {
    transform: translateY(-3px);
    border-left-color: var(--accent-gold);
    background: rgba(13, 17, 26, 0.9);
}

.diff-item h4 { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.2rem; 
    color: var(--accent-gold); 
    margin-bottom: 15px; 
}

.diff-item p { 
    color: var(--text-muted); 
    line-height: 1.6; 
    font-size: 0.95rem; 
}

/* Formulario de Contacto */
.contact-section { 
    background: var(--bg-dark); 
}

.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10%; 
    align-items: center; 
}

.contact-text h2 { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
}

.contact-text p { 
    color: var(--text-muted); 
    line-height: 1.6; 
    font-size: 1.1rem; 
    margin-bottom: 40px; 
}

.contact-info-list div { 
    margin-bottom: 15px; 
    font-size: 1.1rem; 
    color: var(--text-muted); 
}

.contact-info-list strong { 
    color: var(--accent-gold); 
}

.contact-form-container { 
    background: var(--bg-secondary); 
    border: 1px solid var(--glass-border); 
    padding: 50px; 
    border-radius: 4px; 
    transition: border-color 0.3s ease;
}

.contact-form-container:hover {
    border-color: var(--accent-gold);
}

.form-group { 
    margin-bottom: 25px; 
}

.form-group label { 
    display: block; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    color: var(--text-muted); 
}

.form-group input { 
    width: 100%; 
    background: rgba(0,0,0,0.3); 
    border: 1px solid rgba(255,255,255,0.08); 
    padding: 15px; 
    color: white; 
    border-radius: 4px; 
}

.form-group input:focus { 
    outline: none; 
    border-color: var(--accent-gold); 
}

.btn-submit { 
    width: 100%; 
    background: var(--accent-gold); 
    color: var(--bg-dark); 
    border: none; 
    padding: 16px; 
    font-family: 'Orbitron', sans-serif; 
    font-weight: 700; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: opacity 0.3s; 
}

.btn-submit:hover { 
    opacity: 0.9; 
}


/* ==========================================================================
   --- NUEVA SECCIÓN: MÁXIMA OPTIMIZACIÓN RESPONSIVA PARA CELULARES ---
   ========================================================================== */

/* 1. Ajustes para Tablets y Laptops medianas (Menos de 1024px) */
@media (max-width: 1024px) {
    .navbar {
        padding: 12px 30px;
    }
    .text-block h1 { 
        font-size: 3.2rem; 
    }
    .tab {
        padding: 25px 30px;
    }
    .service-row {
        gap: 5%;
    }
}

/* 2. Ajustes Críticos para Celulares (Menos de 768px) */
@media (max-width: 768px) {
    /* Espaciados generales del sitio para que no apriete la pantalla */
    .section-scroll {
        padding: 70px 6%;
    }
    .section-header {
        margin-bottom: 50px;
    }
    .section-header h2 {
        font-size: 2rem;
    }

    /* Rediseño de la Barra de Navegación */
    .navbar {
        width: 92%;
        margin: 15px auto 0 auto;
        padding: 10px 20px;
    }
    .logo-container-img {
        height: 38px; /* Reducción del logo para dar espacio */
    }
    .nav-links {
        display: none; /* Oculta los links de texto en móvil para evitar rupturas (Se recomienda usar menú hamburguesa por JS posterior) */
    }
    .btn-emergency {
        padding: 10px 16px;
        font-size: 0.75rem;
    }

    /* Ajustes de Texto en la Pantalla de Bienvenida (Hero) */
    .hero-content {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .text-block h1 {
        font-size: 2.3rem; /* Tamaño perfecto para que no se corte en smartphones */
        line-height: 1.15;
        margin-bottom: 20px;
    }
    .text-block p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .btn-consultation {
        width: 100%; /* Botón ancho para interacción táctil cómoda */
        padding: 14px 24px;
    }

    /* Transformación de Pestañas a Bloques Verticales */
    .services-tabs {
        grid-template-columns: 1fr; /* Pasa de 3 columnas horizontales a filas */
        border-top: 1px solid var(--glass-border);
    }
    .tab {
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .tab-content {
        gap: 15px;
    }
    .tab-icon {
        font-size: 1.6rem;
    }

    /* Reordenamiento del Grid de Misión y Visión */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .about-card {
        padding: 30px 20px;
    }
    .about-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    /* Filas de Servicios Reordenadas de Forma Vertical Continua */
    .detailed-services-container {
        gap: 60px;
    }
    .service-row, .service-row.reverse {
        flex-direction: column; /* Apila el texto y luego la imagen */
        gap: 25px;
    }
    .service-info h3 {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }
    .service-info p {
        font-size: 1rem;
    }
    .service-img {
        width: 100%;
        height: 280px; /* Altura controlada para pantallas de teléfonos */
    }

    /* Grid de Diferenciadores */
    .diferenciadores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .diff-item {
        padding: 25px;
    }

    /* Bloque del Formulario de Contacto */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-text {
        text-align: center;
    }
    .contact-text h2 {
        font-size: 2rem;
    }
    .contact-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .contact-info-list div {
        font-size: 1rem;
    }
    .contact-form-container {
        padding: 30px 20px;
    }
}

/* 3. Ajustes Extremos para Pantallas Muy Pequeñas (Menos de 380px como iPhone SE) */
@media (max-width: 380px) {
    .text-block h1 {
        font-size: 1.9rem;
    }
    .navbar {
        padding: 8px 12px;
    }
    .btn-emergency {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
}
/* --- ESTILOS DE CANALES SOCIALES TÁCTICOS (COMPLEMENTO CONTACTO) --- */
.social-channels-container {
    margin-top: 45px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.social-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 20px;
}

.social-flex-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.btn-social-exec {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(13, 17, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 14px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-social-exec svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    transition: fill 0.3s ease;
}

/* Efectos hover elegantes y corporativos */
.btn-social-exec:hover {
    background: rgba(13, 17, 26, 0.9);
    border-color: var(--accent-gold);
    color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.btn-social-exec:hover svg {
    fill: var(--accent-gold); /* Los iconos se iluminan en dorado al pasar el cursor */
}

/* Color azul de operación discreto en hover para WhatsApp corporativo */
.btn-social-exec.srv-whatsapp:hover {
    border-color: #25D366;
}
.btn-social-exec.srv-whatsapp:hover svg {
    fill: #25D366;
}

/* Corrección responsiva en celulares para que los botones se acomoden perfectamente */
@media (max-width: 480px) {
    .social-flex-buttons {
        grid-template-columns: 1fr; /* Pasan a ocupar todo el ancho en pantallas muy chicas */
        gap: 10px;
    }
}
/* --- BOTÓN FLOTANTE WHATSAPP (EDICIÓN TÁCTICA EJECUTIVA CORREGIDA) --- */
.whatsapp-floating-btn {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #0D111A !important; /* Fondo negro azulado corporativo */
    border: 1.5px solid #D4AF37 !important; /* Borde blindado en Oro Premium */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75) !important;
    z-index: 999999 !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
}

/* Forzamos al SVG interno a centrarse y medir exactamente lo correcto sin estirarse */
.whatsapp-floating-btn svg {
    width: 28px !important;
    height: 28px !important;
    fill: #FFFFFF !important; /* Icono completamente blanco e impecable */
    display: block !important;
    transition: transform 0.3s ease, fill 0.3s ease;
}

/* Efecto Hover */
.whatsapp-floating-btn:hover {
    transform: scale(1.08) translateY(-2px);
    background-color: #07090E !important; /* Negro absoluto al pasar el cursor */
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2) !important;
}

.whatsapp-floating-btn:hover svg {
    fill: #D4AF37 !important; /* El icono de WhatsApp se ilumina en oro premium */
}

/* Radar Perimetral Dorado */
.whatsapp-floating-btn .pulse-ring {
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    width: 60px;
    height: 60px;
    border: 1.5px solid #D4AF37;
    border-radius: 50%;
    animation: tacticalGoldPulse 3s infinite ease-out;
    pointer-events: none;
    box-sizing: border-box !important;
}

@keyframes tacticalGoldPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Optimización móvil rigurosa */
@media (max-width: 768px) {
    .whatsapp-floating-btn {
        bottom: 25px !important;
        left: 25px !important;
        width: 56px !important;
        height: 56px !important;
    }
    .whatsapp-floating-btn svg {
        width: 24px !important;
        height: 24px !important;
    }
    .whatsapp-floating-btn .pulse-ring {
        width: 56px;
        height: 56px;
    }
}