/* --- style.css --- */

/* 1. RESET Y VARIABLES */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

:root {
    --primary-blue: #004e92;
    --cyan-pop: #00c6ff;
    --dark-navy: #0b1021;
    --text-dark: #333;
    --white: #ffffff;
    --gray-bg: #f4f7f6;
    --bitdefender-red: #d82129;
    --orange-accent: #ff6600;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    padding-top: 80px; /* Espacio para navbar */
    color: var(--text-dark);
    background-color: var(--gray-bg);
    overflow-x: hidden;
    width: 100%;
}

/* 2. ANIMACIONES */
@keyframes backgroundMove {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 3. NAVEGACIÓN (Navbar) */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: rgba(11, 16, 33, 0.98);
    backdrop-filter: blur(10px); height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 9999; box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo-group { display: flex; align-items: center; gap: 15px; }
.nav-logo-group img { height: 45px; width: auto; object-fit: contain; }
/* Slogan visible en escritorio */
.nav-slogan { color: #ccc; font-size: 0.8rem; font-weight: 400; border-left: 1px solid #555; padding-left: 15px; opacity: 0.9; }

.nav-menu { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-menu li a { color: white; text-decoration: none; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; transition: 0.3s; }
.nav-menu li a:hover { color: var(--cyan-pop); }

.btn-nav-cta { 
    background: var(--cyan-pop); padding: 8px 22px; border-radius: 30px; 
    color: var(--dark-navy) !important; font-weight: 800 !important; 
}
.menu-toggle { display: none; color: white; font-size: 1.8rem; cursor: pointer; }


/* =========================================
   4. HOME HERO (MEGA BLOQUE UNIFICADO)
   ========================================= */
.home-mega-hero {
    position: relative;
    width: 100%;
    min-height: 85vh; /* Alto para cubrir las tarjetas */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 80px 20px; overflow: hidden; z-index: 1;
    background: var(--dark-navy);
}

/* --- style.css (Sección 4 Actualizada) --- */

.home-mega-hero::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* CAMBIO AQUÍ: De .png a .webp */
    background-image: url('img/fondomty.webp'); 
    background-size: cover; background-position: center;
    z-index: -2; animation: backgroundMove 20s infinite ease-in-out;
}

.home-mega-hero::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 16, 33, 0.6) 0%, rgba(11, 16, 33, 0.95) 100%);
}


/* =========================================
   5. BRAND HERO (MINI-SITIOS REDUCIDOS)
   ========================================= */
.brand-hero {
    position: relative;
    width: 100%;
    /* RECORTE: Reducido de 55vh a 40vh para que no sea tan alto */
    min-height: 40vh; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; 
    padding: 60px 20px; /* Padding reducido */
    color: var(--white); overflow: hidden; z-index: 1;
    background: var(--dark-navy);
    border-bottom-left-radius: 30px; border-bottom-right-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.brand-hero.animated::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: var(--hero-bg); /* Variable desde HTML */
    background-size: cover; background-position: center;
    z-index: -2; animation: backgroundMove 20s infinite ease-in-out;
}

.brand-hero.animated::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; background: var(--hero-gradient); /* Variable desde HTML */
}

/* Ajustes de texto y logo en header reducido */
.brand-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.brand-hero p { font-size: 1.1rem; max-width: 800px; opacity: 0.9; }

.brand-logo-large { 
    height: auto; max-height: 70px; /* Logo más pequeño */
    background: white; padding: 12px 25px; border-radius: 10px; 
    margin-bottom: 20px; object-fit: contain; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* =========================================
   6. TARJETAS DEL HOME (CARDS)
   ========================================= */
.cards-container {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
    width: 100%; max-width: 1200px; margin-top: 30px;
}

.tech-card {
    background: white; border-radius: 15px; padding: 30px; width: 320px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); transition: transform 0.3s ease;
    text-align: left; text-decoration: none; display: flex; flex-direction: column;
}

.tech-card:hover { transform: translateY(-10px); }
.card-logo { height: 45px; width: auto; margin-bottom: 20px; object-fit: contain; align-self: flex-start; }
.tech-card h3 { color: var(--dark-navy); font-size: 1.3rem; margin-bottom: 10px; font-weight: 700; }
.tech-card p { color: #666; font-size: 0.9rem; line-height: 1.5; flex-grow: 1; }
.btn-leermas { color: var(--primary-blue); font-weight: 700; margin-top: 15px; }


/* =========================================
   7. DETALLES MINI-SITIOS (LO QUE FALTABA)
   ========================================= */
/* Contenedor principal de detalles */
.content-container { padding: 60px 20px; max-width: 1100px; margin: 0 auto; }

/* Tarjeta grande de detalles */
.detail-card {
    background: white; border-radius: 20px; padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); text-align: center;
    margin-top: -50px; /* Efecto flotante sobre el header */
    position: relative; z-index: 5;
}

/* GRID DE CARACTERÍSTICAS (Esto arregla el desorden visual) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    padding: 20px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-item h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--dark-navy); }
.feature-item p { font-size: 0.9rem; color: #666; line-height: 1.5; }

/* Botones de CTA en mini-sitios */
.cta-section { text-align: center; padding: 40px 0; }
.btn-cta {
    background-color: var(--primary-blue); color: var(--white) !important;
    padding: 15px 40px; text-decoration: none; border-radius: 50px;
    font-weight: 700; display: inline-block; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-cta:hover { transform: translateY(-3px); background-color: var(--dark-navy); }


/* =========================================
   8. SECCIONES GENERALES
   ========================================= */
.info-section { padding: 80px 20px; text-align: center; max-width: 1100px; margin: 0 auto; }
.bg-white { background-color: white; }
.info-section h2 { font-size: 2rem; color: var(--dark-navy); margin-bottom: 20px; }
.info-section p { font-size: 1.1rem; line-height: 1.8; color: #555; }


/* =========================================
   9. FOOTER
   ========================================= */
footer#contacto {
    background-color: var(--dark-navy); color: white; text-align: center;
    padding: 80px 20px; width: 100%; position: relative;
}
.contact-info h3 { margin-bottom: 30px; font-size: 2rem; }
.contact-info p { margin: 15px 0; font-size: 1.1rem; }
.contact-info a { color: var(--cyan-pop); text-decoration: none; font-weight: 600; }
.coverage-area { 
    margin-top: 50px; padding-top: 30px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    max-width: 700px; margin-left: auto; margin-right: auto;
}
.coverage-brand { font-size: 1.5rem; font-weight: 800; display: block; margin-bottom: 5px; }
.coverage-loc { color: var(--cyan-pop); font-size: 1rem; }


/* =========================================
   10. RESPONSIVE Y UTILIDADES (ACTUALIZADO)
   ========================================= */
.video-section { margin-top: 50px; text-align: center; }
.video-wrapper { max-width: 800px; margin: 0 auto; border-radius: 15px; overflow: hidden; }
video { width: 100%; display: block; }

/* Botón WhatsApp */
.btn-whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; font-size: 32px; z-index: 10000; box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* --- AJUSTES PARA MÓVILES (Slogan Visible) --- */

@media (max-width: 1000px) {
    /* Ajustamos el Navbar para que quepa el slogan debajo */
    .navbar {
        height: auto; /* Permite que crezca si es necesario */
        min-height: 70px;
        padding: 10px 5%;
        align-items: center;
    }

    /* Grupo del Logo: Ahora en columna (uno debajo del otro) */
    .nav-logo-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    /* Logo un poco más pequeño en móvil para dar espacio */
    .nav-logo-group img {
        height: 32px; 
    }

    /* EL SLOGAN: Visible, pequeño y sin borde lateral */
    .nav-slogan {
        display: block !important; /* Forzamos que se vea */
        font-size: 0.55rem; /* Letra fina y elegante */
        color: #aaa;
        border-left: none; /* Quitamos la linea divisoria de escritorio */
        padding-left: 0;
        margin-top: 2px;
        line-height: 1.1;
        max-width: 220px; /* Evita que choque con el botón de menú */
    }
    
    /* Botón de Menú (Hamburguesa) */
    .menu-toggle { display: block; color: white; font-size: 1.6rem; }

    /* Menú Desplegable (Fondo oscuro total) */
    .nav-menu {
        position: fixed; top: 70px; /* Ajustado a la nueva altura del navbar */
        left: -100%; width: 100%; height: calc(100vh - 70px);
        background-color: var(--dark-navy); flex-direction: column; justify-content: flex-start;
        padding-top: 40px;
        transition: 0.4s ease-in-out;
    }
    .nav-menu.active { left: 0; }
    
    /* Ajustes de los Heros en Móvil */
    .home-mega-hero { min-height: auto; padding: 40px 20px 60px 20px; }
    .brand-hero { min-height: 35vh; padding: 60px 20px; }
}

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background-color: var(--dark-navy);
    min-width: 200px; list-style: none; padding: 10px 0; border-radius: 0 0 10px 10px;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s;
    border-top: 3px solid var(--cyan-pop);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { padding: 12px 20px !important; text-transform: none !important; display: block; }

/* Dropdown en Móvil */
@media (max-width: 900px) {
    .dropdown-menu { 
        position: static; display: none; opacity: 1; visibility: visible; 
        transform: none; background: rgba(255,255,255,0.05); 
        width: 100%; text-align: center;
    }
    .dropdown.open .dropdown-menu { display: block; }
    .dropdown-link { width: 100%; display: block; } /* Área de clic más grande */
}

/* =========================================
   11. PÁGINA 404 (ERROR)
   ========================================= */
.error-page-container {
    width: 100%;
    min-height: 60vh; /* Altura mínima para centrar contenido */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-navy);
    color: white;
    text-align: center;
    padding: 40px 20px;
    background-image: radial-gradient(circle at center, rgba(0, 78, 146, 0.3) 0%, var(--dark-navy) 70%);
}

.error-content h1 {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255,255,255,0.1); /* Efecto transparente */
    margin: 0;
}

.error-content h2 {
    font-size: 2rem;
    color: var(--cyan-pop);
    margin-bottom: 15px;
    margin-top: -20px; /* Superponer ligeramente al número */
}

.error-content p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}