/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Montserrat', sans-serif;
    color:#222;
    overflow-x:hidden;
}

/* CONTAINER */
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ================= HEADER ================= */
.header{
    position:fixed;
    width:100%;
    background:#fff;
    z-index:1000;
    border-bottom:1px solid #eee;
    transition:0.3s;
}

.nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:75px;
}

/* LOGO */
.logo a{
    text-decoration:none;
}

.logo strong{
    font-size:2.0rem;
    color:#111;
}

/* MENU */
.menu{
    margin-left:auto;
    margin-right:35px;

    display:flex;
    align-items:center;
    flex-wrap:wrap;
    justify-content:center;
}

.menu a{
    margin-left:28px;
    text-decoration:none;
    color:#222;
    font-weight:600;
    transition:0.3s;
    font-size:0.95rem;
    white-space:nowrap;
}

.menu a:hover{
    color:#0056ff;
}

/* SEARCH */
.nav-search a{
    display:flex;
    align-items:center;
}

.nav-search img{
    width:24px;
    transition:0.3s;
}

.nav-search img:hover{
    transform:scale(1.1);
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media(max-width:992px){

    .nav{
        padding:0 15px;
    }

    .menu{
        margin-right:20px;
    }

    .menu a{
        margin-left:16px;
        font-size:0.88rem;
    }

}

/* TELEFONO */
@media(max-width:768px){

    .header{
        position:relative;
    }

    .nav{
        flex-direction:column;
        justify-content:center;
        align-items:center;

        height:auto;

        padding:15px 10px;
        gap:15px;
    }

    .logo{
        text-align:center;
    }

    .logo strong{
        font-size:1.35rem;
    }

    .menu{
        margin:0;

        width:100%;

        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        align-items:center;

        gap:10px 14px;
    }

    .menu a{
        margin:0;
        font-size:0.85rem;
    }

    .nav-search{
        margin-top:5px;
    }

    .nav-search img{
        width:22px;
    }

}

/* TELEFONOS PEQUEÑOS */
@media(max-width:480px){

    .nav{
        padding:12px 8px;
    }

     .logo strong{
        text-decoration:none;
        color:#111;
        font-size:2.0rem;
        font-weight:700;
    }

    .menu{
        gap:8px 10px;
    }

    .menu a{
        font-size:0.78rem;
    }

    .nav-search img{
        width:20px;
    }

}

/* ================= BANNER ================= */
.banner-vigilancia{
    position:relative;
    height:420px;
    overflow:hidden;

    display:flex;
    justify-content:center;
    align-items:center;
}

.banner-bg{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
}

.banner-overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.55);
}

.banner-content{
    position:relative;
    z-index:2;
}

.banner-content h1{
    color:#fff;
    font-size:3rem;
    text-align:center;
    background:rgba(0,0,0,0.45);
    padding:18px 35px;
    border-radius:8px;
}

/* ================= INTRO ================= */
.intro-vigilancia{
    padding:50px 0 40px;
}

.section-title{
    text-align:center;
}

.section-title h2{
    font-size:2.4rem;
    margin-bottom:15px;
}

.section-title p{
    max-width:850px;
    margin:auto;
    line-height:1.8;
}

/* ================= TABS ================= */
.tabs-section{
    padding:20px 0;
}

.tabs-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.tab-btn{
    padding:15px 30px;
    border:none;
    background:#f2f2f2;
    border-radius:6px;
    cursor:pointer;
    font-weight:600;
    transition:0.3s;
    position:relative;
}

.tab-btn:hover{
    background:#dbe6ff;
}

.tab-btn.active{
    background:#0056ff;
    color:#fff;
}

.tab-btn.active::after{
    content:"";
    position:absolute;
    left:15%;
    bottom:-8px;
    width:70%;
    height:3px;
    background:#0056ff;
    border-radius:20px;
}

/* ================= CONTENT ================= */
.content-section{
    padding:50px 0 50px;
}

.tab-content{
    display:none;
}

.tab-content.active{
    display:block;
}

.content-title{
    text-align:center;
    margin-bottom:50px;
}

.content-title h2{
    font-size:2.2rem;
}

/* ================= CARDS ================= */
.cards-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.info-card{
    background:#f7f7f7;
    border-radius:14px;
    overflow:hidden;
    transition:0.4s;
}

.info-card:hover{
    transform:translateY(-8px);
}

.info-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.info-card h3{
    padding:25px 25px 10px;
}

.info-card p{
    padding:0 25px 30px;
    line-height:1.8;
}

/* ================= FEATURES ================= */
.feature-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.feature-box{
    background:#f7f7f7;
    padding:40px;
    border-radius:14px;
}

.feature-box h3{
    margin-bottom:15px;
}

.feature-box p{
    line-height:1.8;
}

/* ================= CENTRAL ================= */
.central-banner{
    margin-bottom:40px;
}

.central-banner img{
    width:100%;
    height:500px;
    object-fit:cover;
    border-radius:14px;
}

/* CONTENEDOR */
.central-text{
    text-align:center;
    max-width:850px;
    margin:auto;
    padding: 10px;
}

/* ================= ACORDEÓN ================= */
.central-accordion{
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

/* TITULO CLICKEABLE */
.central-accordion summary{
    cursor: pointer;
    font-weight: 700;
    font-size: 17px;
    color: #1c446b;
    list-style: none;
    position: relative;
    padding-right: 25px;
}

/* quitar flecha default */
.central-accordion summary::-webkit-details-marker{
    display: none;
}

/* icono personalizado */
.central-accordion summary::after{
    content: "+";
    position: absolute;
    right: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0056ff;
    transition: 0.3s;
}

/* cuando está abierto */
.central-accordion[open] summary::after{
    content: "−";
}

/* contenido */
.central-accordion p{
    line-height: 1.9;
    margin: 18px 0;
    font-size: 16px;
    color: #334155;
    text-align: center;
}

/* BOTÓN (lo mantienes pero mejorado visualmente) */
.central-text a{
    display:inline-block;
    padding:15px 35px;
    background:#0056ff;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition:0.3s;
    box-shadow: 0 10px 20px rgba(0,86,255,0.25);
}

.central-text a:hover{
    background:#003fc2;
    transform: translateY(-2px);
}

/* ================= BOTON PRODUCTOS ================= */
.products-button{
    text-align:center;
    margin-top:40px;
}

.products-button a{
    display:inline-block;
    padding:15px 35px;
    background:#0056ff;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-weight:600;
    transition:0.3s;
}

.products-button a:hover{
    background:#003fc2;
}

/* ================= FOOTER ================= */
.footer{
    background:#f2f2f2;
    padding:30px 0;
}

.footer-search{
    padding-bottom:20px;
    margin-bottom:30px;
    border-bottom:1px solid #cfcfcf;
}


.footer-search img{
    width:120px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:30px;
}

.footer-grid h4{
    margin-bottom:12px;
}

.footer a{
    display:block;
    margin:6px 0;
    color:#333;
    text-decoration:none;
    transition:0.3s;
}

.footer a:hover{
    color:#0056ff;
}

/* ================= FOOTER SOCIAL ================= */
.footer-social{
    margin-top:20px;

    display:flex;
    align-items:center;
    gap:15px;
}

.footer-social a{
    width:45px;
    height:45px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#fff;
    border-radius:12px;

    transition:0.3s;
    box-shadow:0 4px 12px rgba(0,0,0,0.10);
}

.footer-social a:hover{
    transform:translateY(-4px);
    background:#0056ff;
}

.footer-social img{
    width:22px;
    height:22px;
    object-fit:contain;
}


/* ================= WHATSAPP ================= */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
}

/* PROVEEDORES */
.proveedores-logos{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.proveedores-logos img{
    width:70px;
    border-radius:4px;
}

/* ================= LOGOS ================= */
.proveedores-logos{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.proveedores-logos img{
    width:100%;
    height:55px;
    object-fit:contain;
    background:#fff;
    padding:6px;
    border-radius:10px;
}

/* ================= RESPONSIVE ================= */
@media (max-width:992px){

    .cards-grid{
        grid-template-columns:1fr;
    }

    .feature-grid{
        grid-template-columns:1fr;
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
    }

}

@media (max-width:768px){

    .nav{
        flex-direction:column;
        height:auto;
        padding:15px 0;
    }

    .menu{
        margin:15px 0;
    }

    .menu a{
        margin:0 10px;
        display:inline-block;
    }

    .banner-content h1{
        font-size:2rem;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }

    .section-title h2,
    .content-title h2{
        font-size:1.8rem;
    }

}

/* --- COMPONENTES DEL MENÚ MÓVIL --- */
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; z-index: 1001; border-radius: 8px; transition: background 0.2s; }
.hamburger-btn:hover { background: #f1f5f9; }
.hamburger-btn span { display: block; width: 25px; height: 3px; background: #0f172a; border-radius: 2px; }

.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.6); z-index: 2000; opacity: 0; transition: 0.3s; backdrop-filter: blur(3px);}
.mobile-menu-overlay.active { display: block; opacity: 1; }

.mobile-menu-drawer { position: fixed; top: 0; right: -300px; width: 280px; height: 100%; background: #fff; z-index: 2001; box-shadow: -5px 0 30px rgba(0,0,0,0.15); transition: right 0.3s; display: flex; flex-direction: column; overflow-y: auto; padding-top: 20px;}
.mobile-menu-drawer.active { right: 0; }
.mobile-menu-drawer .close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 24px; color: #64748b; cursor: pointer; }
.mobile-menu-drawer a { display: block; padding: 15px 25px; font-family: 'Montserrat', sans-serif; font-weight: 700; color: #1e293b; text-decoration: none; border-bottom: 1px solid #f1f5f9; }

/* Para iluminar la pestaña activa (Agrégale class="active" a la pestaña donde estés) */
.menu a.active, .mobile-menu-drawer a.active { color: #0056ff; }


/* =========================================
   CORRECCIÓN VISUAL: HEADER TABLETS Y MÓVILES
   ========================================= */
/* Cubre tablets horizontales, verticales y celulares */
@media (max-width: 1200px) {
    /* Ocultar menú de texto de PC */
    .menu { display: none !important; }

    /* Forzar diseño en una sola línea horizontal */
    .header .nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 70px !important;
        padding: 0 20px !important;
        flex-wrap: nowrap !important;
    }

    /* Logo a la izquierda */
    .header .logo {
        margin-right: auto !important;
        margin-bottom: 0 !important;
        text-align: left !important;
        width: auto !important;
        order: 1 !important;
    }

    /* Lupa antes de la hamburguesa */
    .header .nav-search {
        margin-left: 0 !important;
        margin-right: 20px !important;
        margin-bottom: 0 !important;
        position: static !important;
        display: flex !important;
        align-items: center !important;
        order: 2 !important;
    }

    /* Botón hamburguesa al extremo derecho */
    .header .hamburger-btn {
        display: flex !important;
        margin: 0 !important;
        order: 3 !important;
    }
}

@media (max-width: 768px) {
    /* Ajustes finos para celulares */
    .container { width: 92%; }
    .header .nav { padding: 0 15px !important; }
    .header .nav-search img { width: 22px !important; height: 22px !important; }
}