/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Montserrat', sans-serif;
    color:#1c1c1c;
    overflow-x:hidden;

    background:
    linear-gradient(
        180deg,
        #f5f7ff 0%,
        #ffffff 40%,
        #f8fbff 100%
    );
}

/* 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-camaras{
    position:relative;
    height:420px;
    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:
    linear-gradient(
        120deg,
        rgba(0,0,0,0.70),
        rgba(79,70,229,0.35)
    );
}

.banner-content{
    position:relative;
    z-index:2;
}

.banner-content h1{
    color:#fff;
    font-size:3rem;
    font-weight:800;

    background:rgba(0,0,0,0.35);

    padding:18px 35px;

    border-radius:12px;

    backdrop-filter:blur(6px);

    box-shadow:
    0 10px 30px rgba(0,0,0,0.25);
}

/* ================= INTRO ================= */

.intro-camaras{
    padding:50px 0 50px;
}

.main-title{
    text-align:center;
}

.section-badge{

    display:inline-block;

    padding:10px 18px;

    background:#e0e7ff;

    color:#4338ca;

    border-radius:50px;

    font-size:12px;

    font-weight:800;

    letter-spacing:1px;

    margin-bottom:20px;
}

.section-title h2{

    font-size:3rem;

    margin-bottom:18px;

    font-weight:800;

    color:#111;
}

.section-title p{

    max-width:850px;

    margin:auto;

    line-height:1.9;

    color:#5b5b5b;

    font-size:1.05rem;
}

/* ================= SECTION ================= */

.gallery-section{
    padding:10px 0 30px;
}

.section-alt{
    padding-top:0;
}

.content-box{

    background:#ffffff;

    border-radius:28px;

    padding:45px;

    border:1px solid #eef1ff;

    box-shadow:
    0 15px 40px rgba(0,0,0,0.06);
}

.content-header{
    margin-bottom:40px;
}

.mini-tag{

    display:inline-block;

    padding:8px 15px;

    background:#111827;

    color:#fff;

    border-radius:40px;

    font-size:11px;

    font-weight:800;

    letter-spacing:1px;

    margin-bottom:18px;
}

.content-header h2{

    font-size:2.3rem;

    margin-bottom:12px;

    color:#111;

    font-weight:800;
}

.content-header p{

    max-width:760px;

    line-height:1.8;

    color:#666;
}

/* ================= GRID ================= */

.gallery-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:30px;
}

/* ================= CARD ================= */

.gallery-card{

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    transition:0.4s;

    border:1px solid #edf0ff;

    box-shadow:
    0 10px 30px rgba(0,0,0,0.06);
}

.gallery-card:hover{

    transform:translateY(-10px);

    box-shadow:
    0 25px 60px rgba(79,70,229,0.18);
}

.card-image{
    overflow:hidden;
}

.card-image img{

    width:100%;
    height:240px;

    object-fit:cover;

    transition:0.5s;
}

.gallery-card:hover img{
    transform:scale(1.08);
}

.card-content{
    padding:24px;
}

.card-category{

    display:inline-block;

    margin-bottom:14px;

    font-size:11px;

    font-weight:800;

    letter-spacing:1px;

    color:#4f46e5;
}

.card-content h3{

    font-size:1.2rem;

    margin-bottom:12px;

    color:#111;

    font-weight:800;
}

.card-content p{

    color:#666;

    line-height:1.7;

    font-size:0.95rem;
}

/* ================= FOOTER ================= */

.footer{
    background:#f3f4f6;
    padding:50px 0;
    margin-top:30px;
}

.footer-search{
    padding-bottom:20px;
    margin-bottom:30px;
    border-bottom:1px solid #cfcfcf;
}

.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;
    text-decoration:none;
    color:#333;
    transition:0.3s;
}

.footer a:hover{
    color:#4f46e5;
}

.footer-social{
    display:flex;
    gap:15px;
    margin-top:15px;
}

.footer-social a{

    width:45px;
    height:45px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#fff;

    border-radius:12px;

    box-shadow:
    0 6px 15px rgba(0,0,0,0.10);
}

.footer-social img{
    width:22px;
}

.proveedores-logos{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:10px;
}

.proveedores-logos img{

    width:100%;
    height:55px;

    object-fit:contain;

    background:#fff;

    padding:5px;

    border-radius:8px;
}

/* ================= WHATSAPP ================= */

.whatsapp{

    position:fixed;

    bottom:20px;
    right:20px;

    background:#25D366;

    color:#fff;

    padding:12px 18px;

    border-radius:30px;

    text-decoration:none;

    font-weight:700;

    z-index:999;

    box-shadow:
    0 10px 25px rgba(0,0,0,0.18);
}

/* ================= ANIMACIÓN ================= */

.gallery-card{
    opacity:0;
    transform:translateY(40px);
}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

    .gallery-grid{
        grid-template-columns:1fr 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;
        text-align:center;
    }

    .section-title h2{
        font-size:2.2rem;
    }

    .content-header h2{
        font-size:1.8rem;
    }

    .gallery-grid{
        grid-template-columns:1fr;
    }

    .content-box{
        padding:28px;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }
}

/* --- 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; }
}