/* ===========================================================
   v3/contacto.css
   =========================================================== */

/* ===== CONTACTO PRINCIPAL ===== */
.contact-sec { padding: 96px 24px; background: var(--bg); }
.contact-grid { max-width: 1100px; margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }

/* Info izquierda */
.contact-info h3 { font-family: var(--font-titulo); font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 28px; }
.contact-dato { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    background: var(--bg-green); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: var(--primary);
}
.contact-dato-txt strong { display: block; font-family: var(--font-texto); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.contact-dato-txt span { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.contact-dato-txt .horario { font-size: 12px; color: var(--accent); font-weight: 600; display: block; margin-top: 2px; }
.contact-wa {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25D366; color: #fff;
    font-family: var(--font-texto); font-size: 14px; font-weight: 700;
    padding: 13px 24px; border-radius: 100px; border: none; cursor: pointer;
    transition: background .25s, transform .2s; margin: 12px 0 28px; text-decoration: none;
}
.contact-wa:hover { background: #1eb659; transform: translateY(-2px); color: #fff; }
.contact-wa i { font-size: 20px; }
.social-label { font-family: var(--font-texto); font-size: 16px; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--accent); margin-bottom: 12px; display: block; }

/* Formulario derecha */
.contact-form-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 44px 40px; box-shadow: var(--sh-lg);
}
.contact-form-card h3 { font-family: var(--font-titulo); font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 28px; }
.v3-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v3-form input,
.v3-form select,
.v3-form textarea {
    width: 100%; padding: 13px 18px;
    border: 1.5px solid var(--border); border-radius: var(--r-sm);
    font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text);
    background: var(--bg-soft); outline: none; resize: none;
    transition: border-color .25s, background .25s;
}
.v3-form input:focus,
.v3-form select:focus,
.v3-form textarea:focus { border-color: var(--primary); background: #fff; }
.v3-form input::placeholder,
.v3-form textarea::placeholder { color: var(--text-muted); }
.v3-form select { color: var(--text-muted); }
.v3-form select:valid { color: var(--text); }
.btn-enviar {
    width: 100%; background: var(--primary); color: #fff; border: none;
    padding: 15px; border-radius: var(--r-sm);
    font-family: var(--font-texto); font-size: 15px; font-weight: 700;
    cursor: pointer; transition: background .25s, transform .2s;
}
.btn-enviar:hover { background: var(--primary-h); transform: translateY(-2px); }
.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 4px; }

/* ===== MAPA ===== */
.mapa-sec { background: var(--bg-soft); border-top: 1px solid var(--border); }
.mapa-sec iframe { width: 100%; height: 380px; display: block; border: 0; }

/* ===== FAQ ===== */
.faq-sec { padding: 96px 24px; background: var(--bg); text-align: center; }
.faq-header { max-width: 600px; margin: 0 auto 52px; }
.faq-list { max-width: 760px; margin: 0 auto; text-align: left; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
    width: 100%; background: none; border: none; text-align: left;
    padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-family: var(--font-titulo); font-size: 16px; font-weight: 600;
    color: var(--text); transition: color .25s; gap: 14px;
}
.faq-btn:hover { color: var(--primary); }
.faq-chevron {
    width: 30px; height: 30px; flex-shrink: 0;
    border: 1.5px solid var(--border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--accent); transition: transform .3s, border-color .3s;
    font-style: normal;
}
.faq-item.open .faq-chevron { transform: rotate(45deg); border-color: var(--primary); }
.faq-answer {
    font-size: 14.5px; color: var(--text-muted); line-height: 1.8; text-align: justify;
    max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 22px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-form-card { padding: 28px 22px; }
    .faq-btn { font-size: 14px; }
}

/* =========================================================
   MENÚ MÓVIL (hamburguesa + overlay)
   ========================================================= */

/* Botón oculto en escritorio */
.nav-toggle {
    display: none;
}

/* Fondo oscuro detrás del menú */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    cursor: pointer;
}

.nav-overlay.active {
    display: block;
}

/* =========================================================
   TABLET / CELULAR
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------
       NAVBAR
       ----------------------------- */

    .v3-nav {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10001 !important;
    }

    /* -----------------------------
       BOTÓN HAMBURGUESA
       ----------------------------- */

    .nav-toggle {
        display: flex !important;

        position: relative;

        width: 45px;
        height: 45px;

        margin: 0;
        padding: 8px;

        border: none;
        outline: none;

        background: transparent;

        cursor: pointer;

        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 5px;

        z-index: 10002;

        -webkit-tap-highlight-color: transparent;
    }

    .nav-toggle span {
        display: block;

        width: 27px;
        height: 3px;

        background: #ffffff;

        border-radius: 5px;

        transition: all 0.3s ease;

        pointer-events: none;
    }

    /* Color de las líneas cuando el navbar baja */
    .v3-nav.scrolled .nav-toggle span {
        background: #1A3C28;
    }

    /* -----------------------------
       SIDEBAR
       ----------------------------- */

    .nav-links {
        position: fixed !important;

        top: 0;
        right: -300px;

        width: 280px;
        height: 100vh;
        height: 100dvh;

        margin: 0;
        padding: 120px 25px 30px;

        box-sizing: border-box;

        background: #ffffff;

        display: flex !important;
        flex-direction: column;
        align-items: stretch;

        box-shadow: -8px 0 25px rgba(0, 0, 0, 0.18);

        z-index: 10000 !important;

        transition: right 0.35s ease;

        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Sidebar abierto */
    .nav-links.active {
        right: 0 !important;
    }

    /* -----------------------------
       ENLACES
       ----------------------------- */

    .nav-links a {
        display: flex !important;

        align-items: center;

        width: 100%;
        min-height: 70px;

        margin: 0;
        padding: 15px 18px;

        box-sizing: border-box;

        color: #1A3C28 !important;

        font-size: 17px;

        font-family: 'Inter', sans-serif;

        text-decoration: none;

        cursor: pointer;

        border-bottom: 1px solid #eeeeee;

        transition: all 0.25s ease;
    }

    .nav-links a:hover {
        background: #f3f7f3;

        padding-left: 25px;
    }

    .nav-links a.active {
        color: #297A10 !important;

        font-weight: 700;
    }

    /* -----------------------------
       BOTÓN CONTACTO
       ----------------------------- */

    .nav-links .nav-cta-btn {
        margin-top: 20px;

        min-height: 65px;

        justify-content: center;

        text-align: center;

        background: #0F291D;

        color: #ffffff !important;

        border: none;

        border-radius: 35px;

        padding: 15px;
    }

    .nav-links .nav-cta-btn:hover {
        background: #16452e;

        padding-left: 15px;
    }

    /* -----------------------------
       ANIMACIÓN HAMBURGUESA → X
       ----------------------------- */

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Evita que el fondo se mueva */
    body.menu-abierto {
        overflow: hidden;
    }
}

/* =========================================================
   CELULAR PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .nav-links {
        width: 280px;
        right: -300px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-links a {
        font-size: 16px;
        min-height: 65px;
    }
}
