/* 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 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;
}

/* LUPA NAV */
.nav-search a {
    display: flex;
    align-items: center;
}

.nav-search img {
    width: 24px;
    transition: 0.3s;
    cursor: pointer;
}

.nav-search img:hover {
    transform: scale(1.1);
}

/* ================= RESPONSIVE GENERALES ================= */

/* TABLET */
@media (max-width: 992px){
    .nav{
        padding: 0 15px;
    }
    .menu a{
        margin-left: 16px;
        font-size: 0.88rem;
    }
}

/* TELEFONO */
@media (max-width: 768px){
    .header{
        position: relative;
    }
    .logo{
        text-align: center;
    }
    .logo strong{
        font-size: 1.4rem;
    }
    .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 10px;
    }
    .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;
    }
}

/* ================= HERO ================= */
.hero {
    height: 78vh;
    position: relative;
    overflow: hidden;
}

.carousel {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
}

/* TEXTO HERO */
.slide h1, .slide h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 3rem;
    text-align: center;
    width: 90%;
}

.slide h1 span, .slide h2 span {
    background: rgba(0,0,0,0.6);
    padding: 14px 28px;
    border-radius: 6px;
    display: inline-block;
}

/* ================= INTRO ================= */
.intro {
    padding-top: 65px;
    padding-bottom: 50px;
    background: #fff;
}

.title-center {
    text-align: center;
    font-size: 2rem;
    line-height: 1.4;
}

/* HIGHLIGHT */
.highlight {
    position: relative;
}

.highlight::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: #0056ff;
    left: 0;
    bottom: -4px;
}

/* ================= ABOUT ================= */
.about {
    padding: 20px 0 90px;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    max-width: 480px;
}

.about-text p {
    margin-bottom: 22px;
    line-height: 1.8;
    font-size: 1rem;
}

.about-img img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* ================= FEATURES ================= */
.features {
    padding: 80px 0;
    background: #f7f7f7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    text-align: center;
    gap: 20px;
}

.feature-item {
    padding: 20px;
    transition: 0.5s;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item img {
    width: 60px;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 1rem;
}

/* ================= BANNER ================= */
.banner {
    position: relative;
}

.banner img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* LOGO FLOTANTE */
.floating-logo {
    position: absolute;
    left: 50%;
    bottom: -55px;
    transform: translateX(-50%);
    z-index: 20;
}

.floating-logo img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ================= TESTIMONIAL ================= */
.testimonial {
    background: #f7f7f7;
    color: #111;
    padding: 110px 0 45px;
    text-align: center;
}

.testimonial-box {
    font-size: 1.5rem;
    max-width: 900px;
    margin: auto;
    line-height: 1.7;
}

/* ================= GALERIA ================= */
.gallery {
    padding: 45px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    opacity: 0;
    transition: 0.4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.6);
    display:flex;
    justify-content:center;
    align-items:center;
}

.gallery-content {
    text-align: center;
}

.gallery-content h4 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.2rem;
}

.gallery-content button {
    padding: 10px 20px;
    border: none;
    background: #a1bdf6;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

/* ================= FOOTER ================= */
.footer {
    background: #f2f2f2;
    padding: 50px 0;
}

/* FOOTER SEARCH */
.footer-search {
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #cfcfcf;
}

.footer-search a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    text-decoration: none;
    color: #222;
}

.footer-search img {
    width: 120px;
    transition: 0.3s;
}

.footer-search img:hover {
    transform: scale(1.03);
}

.footer-search span {
    font-weight: 600;
}

/* GRID FOOTER */
.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;
}

/* PROVEEDORES */
.proveedores-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.proveedores-logos img {
    width: 70px;
    border-radius: 4px;
}


.hidden-system-link{
    color:#f2f2f2 !important;
    text-decoration:none;
    opacity:0.08;
    font-size:11px;
    transition:0.3s;
}

.hidden-system-link:hover{
    opacity:0.25;
}


/* ================= 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;
}

/* ================= 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;
}

/* ================= ANIMACIONES ================= */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-text { max-width: 100%; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero { height: 65vh; }
    .slide h1, .slide h2 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .banner img { height: 300px; }
    .floating-logo img { width: 110px; height: 110px; }
    .title-center { font-size: 1.6rem; }
    .testimonial { padding-top: 90px; }
}

/* ================= BUSCADOR ================= */
.nav-search,
.footer-search{
    display:flex;
    align-items:center;
    gap:10px;
}

.nav-search input,
.footer-search input{
    width:220px;
    padding:10px 15px;
    border:none;
    outline:none;
    border-radius:30px;
    background:#f2f2f2;
    font-family:'Montserrat', sans-serif;
}

.nav-search button,
.footer-search button{
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:#0056ff;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:0.3s;
}

.nav-search button:hover,
.footer-search button:hover{
    transform:scale(1.08);
}

.nav-search button img,
.footer-search button img{
    width:20px;
    height:20px;
}

@media(max-width:768px){
    .nav-search input,
    .footer-search input{ width:160px; }
}

/* ================= SEARCH OVERLAY ================= */
.search-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:#ffffff;
    z-index:99999;
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:0.35s ease;
}

.search-overlay.active{
    opacity:1;
    visibility:visible;
}

.search-box{
    width:90%;
    max-width:650px;
    text-align:center;
}

.search-box h2{
    font-size:3rem;
    margin-bottom:35px;
    color:#111;
}

.search-box input{
    width:100%;
    padding:22px 28px;
    border:none;
    border-bottom:3px solid #0056ff;
    outline:none;
    font-size:1.2rem;
    font-family:'Montserrat', sans-serif;
    text-align:center;
    background:#f5f7fa;
    border-radius:16px;
}

.search-box button{
    margin-top:25px;
    padding:15px 40px;
    border:none;
    border-radius:12px;
    background:#0056ff;
    color:#fff;
    font-size:1rem;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.search-box button:hover{
    transform:translateY(-3px);
    background:#003fc2;
}

.close-search{
    position:absolute;
    top:35px;
    right:45px;
    border:none;
    background:none;
    font-size:3rem;
    color:#111;
    cursor:pointer;
    transition:0.3s;
}

.close-search:hover{
    transform:rotate(90deg);
    color:#0056ff;
}

@media(max-width:768px){
    .search-box h2{ font-size:2.2rem; }
    .search-box input{ padding:18px 22px; font-size:1rem; }
    .close-search{ top:20px; right:25px; }
}


/* ========================================================================= */
/* --- SECCIÓN MAESTRA UNIFICADA (RESPONSIVE HEADER Y MENÚ MÓVIL) --- */
/* ========================================================================= */

/* ESTILO MAESTRO PARA EL LOGO (Evita que cambie de tamaño o tenga subrayado) */
.header .logo a,
.header .logo strong {
    font-size: 2.0rem !important;
    font-weight: 800 !important;
    color: #111 !important;
    text-decoration: none !important;
}

/* --- 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 */
.menu a.active, .mobile-menu-drawer a.active { color: #0056ff; }


/* --- CORRECCIÓN VISUAL: HEADER TABLETS Y MÓVILES --- */
@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 */
    .header .nav { padding: 0 15px !important; }
    .header .nav-search img { width: 22px !important; height: 22px !important; }
}