/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Montserrat', sans-serif;
    color:#222;
    overflow-x:hidden;
    background:#fff;
}

/* 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-contacto{
    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.45);
}

.banner-content{
    position:relative;
    z-index:2;
}

.banner-content h2{
    color:#fff;
    font-size:3rem;
    text-align:center;
    background:rgba(0,0,0,0.45);
    padding:18px 35px;
    border-radius:8px;
}

/* ================= CONTACT CARDS (Gris) ================= */
.contact-cards{
    background:#f4f6f9; /* Color gris suave */
    padding:80px 0;
}

.cards-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
}

.contact-card{
    background:#fff;
    border:1px solid #cfd6e2;
    border-radius:22px;
    padding:40px 35px;
    text-align:center;
    transition:0.35s;
    text-decoration:none;
    color:#222;

    box-shadow:
    0 10px 30px rgba(0,0,0,0.05);
}

.contact-card:hover{
    transform:translateY(-8px);
    box-shadow:
    0 18px 40px rgba(0,0,0,0.10);
}

.card-logo{
    margin-bottom:35px;
}

.card-logo img{
    max-width:230px;
    width:100%;
    object-fit:contain;
}

.card-info h3{
    font-size:1.1rem;
    font-weight:700;
    margin-bottom:25px;
    word-break:break-word;
    color:#111;
}

.card-line{
    width:100%;
    height:1px;
    background:#d7dde8;
    margin-bottom:25px;
}

.advisor{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:14px;
}

.advisor img{
    width:28px;
}

.advisor span{
    font-size:1rem;
    color:#222;
    font-weight:500;
}

/* ================= FORMULARIO DE CONTACTO (Blanco) ================= */
.form-section {
    padding: 60px 0; /* Ajuste de padding para separar del gris */
    background: #fff; /* Color blanco */
}

.form-box {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 45px 50px;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    border: 1px solid #ececec;
}

.form-box h2 {
    font-size: 2rem;
    color: #111;
    margin-bottom: 10px;
    text-align: center;
}

.form-box p {
    text-align: center;
    color: #444;
    margin-bottom: 35px;
    font-size: 1.05rem;
}

.contacto-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Montserrat', sans-serif;
    padding: 15px 18px;
    border: 1px solid #cfd6e2;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    background: #fafafa;
    transition: 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0056ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 255, 0.1);
}

.form-group select:invalid {
    color: #888;
}

.btn-submit {
    grid-column: 1 / -1;
    background: #0056ff;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0, 86, 255, 0.25);
    margin-top: 10px;
}

.btn-submit:hover {
    background: #0045cc;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 86, 255, 0.35);
}

/* ================= UBICACIÓN (Gris) ================= */
.location-section{
    padding: 60px 0;
    background: #f4f6f9; /* Color gris suave */
}

.location-box{
    text-align:center;
    max-width:750px;
    margin:auto;
    padding:50px;

    background:#fff;
    border-radius:24px;

    box-shadow:
    0 12px 35px rgba(0,0,0,0.06);

    border:1px solid #ececec;
}

.location-box h2{
    font-size:2rem;
    margin-bottom:30px;
    color:#111;
}

.location-box p{
    margin-bottom:18px;
    line-height:1.8;
    font-size:1.05rem;
}

.location-box a{
    color:#222;
    text-decoration:none;
    transition:0.3s;
    font-weight:500;
}

.location-box a:hover{
    color:#0056ff;
}

/* ================= FAQ (Blanco) ================= */
.faq-section{
    padding: 60px 0;
    background: #fff; /* Color blanco */
    position:relative;
}

.faq-section::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background:
    radial-gradient(circle at top right,
    rgba(0,86,255,0.08),
    transparent 35%);

    pointer-events:none;
}

.faq-title{
    text-align:center;
    margin-bottom:60px;
    position:relative;
    z-index:2;
}

.faq-title h2{
    font-size:2.7rem;
    color:#111;
    margin-bottom:15px;
    font-weight:700;
}

.faq-title::after{
    content:"";
    width:90px;
    height:4px;
    background:#0056ff;
    display:block;
    margin:18px auto 0;
    border-radius:10px;
}

.faq-item{
    background:#fff;
    border-radius:18px;
    margin-bottom:22px;
    overflow:hidden;

    border:1px solid rgba(0,0,0,0.06);

    box-shadow:
    0 10px 30px rgba(0,0,0,0.05);

    transition:0.3s;
    position:relative;
    z-index:2;
}

.faq-item:hover{
    transform:translateY(-4px);

    box-shadow:
    0 18px 40px rgba(0,0,0,0.08);
}

.faq-question{
    width:100%;
    padding:26px 30px;
    border:none;
    background:#fff;
    text-align:left;

    font-size:1.05rem;
    font-weight:700;
    color:#111;

    cursor:pointer;
    transition:0.3s;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.faq-question::after{
    content:"+";
    font-size:1.6rem;
    font-weight:400;
    color:#0056ff;
    transition:0.3s;
}

.faq-item.active .faq-question::after{
    transform:rotate(45deg);
}

.faq-question:hover{
    background:#f7faff;
}

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.45s ease;
    background:#fbfcff;
}

.faq-answer p{
    padding:0 30px 28px;
    line-height:1.9;
    color:#444;
    font-size:0.98rem;
}

/* ACTIVE FAQ */
.faq-item.active .faq-answer{
    max-height:250px;
}

/* ================= FOOTER ================= */
.footer{
    background:#f2f2f2;
    padding:30px 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;
}

/* FOOTER GRID */
.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;

    box-shadow:
    0 8px 25px rgba(37,211,102,0.35);

    transition:0.3s;
}

.whatsapp:hover{
    transform:translateY(-3px);
}

/* ================= PROVEEDORES ================= */
.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 GENERAL ================= */
@media (max-width:992px){

    .cards-grid{
        grid-template-columns:1fr;
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
    }

    .location-box{
        padding:40px 30px;
    }
}

@media (max-width:768px) {
    .form-section {
        padding: 20px 0 40px;
    }

    .contacto-form {
        grid-template-columns: 1fr;
    }
    
    .form-box {
        padding: 35px 25px;
        border-radius: 18px;
    }
    
    .form-box h2 {
        font-size: 1.6rem;
    }

    .nav{
        flex-direction:column;
        height:auto;
        padding:15px 0;
    }

    .menu{
        margin:15px 0;
    }

    .menu a{
        margin:0 10px;
        display:inline-block;
    }

    .banner-content h2{
        font-size:2rem;
        padding:14px 24px;
    }

    .faq-section{
        padding:70px 0;
    }

    .faq-title h2{
        font-size:2rem;
    }

    .faq-question{
        padding:22px;
        font-size:1rem;
    }

    .faq-answer p{
        padding:0 22px 24px;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }

    .location-box h2{
        font-size:1.6rem;
    }
    
    /* ================= MODAL DE ÉXITO ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-30px);
    transition: all 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3.5rem;
    color: #25D366; /* Verde de éxito / WhatsApp */
    margin-bottom: 15px;
}

.modal-content h3 {
    font-size: 1.6rem;
    color: #111;
    margin-bottom: 10px;
}

.modal-content p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-modal {
    background: #0056ff;
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0, 86, 255, 0.25);
}

.btn-modal:hover {
    background: #0045cc;
    transform: translateY(-2px);
}
}

/* --- 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; }
}
