/* =========================================
   RESPONSIVE.CSS – versión estable MOBILE
   Compatible iOS / Android / WebView
   ========================================= */

@media (max-width: 768px) {

    /* ===============================
       MENÚ / NAVBAR MOBILE
       =============================== */

    .menu-toggle {
        display: block;
        font-size: 1.6rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--negro);
        -webkit-appearance: none;
        appearance: none;
    }

    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--gris-claro);
        z-index: 999; /* CRÍTICO PARA iOS */
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 12px 0;
        font-size: 1rem;
        color: var(--negro);
        text-decoration: none;
    }

    /* ===============================
       NOSOTROS
       =============================== */

    .nosotros-box {
        padding: 30px 20px;
        margin: 0 15px;
    }

    /* ===============================
       GIN GRID MOBILE
       =============================== */

    .gin-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
        justify-items: center;
    }

    .gin-grid img {
        max-width: 80%;
        height: auto;
        display: block;
        margin: 0 auto;
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
    }

    /* ===============================
       MAPA + CONTACTO
       =============================== */

    .map-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* ===============================
       BOTONES SOCIALES MOBILE
       (refuerzo para Safari iOS)
       =============================== */

    .social-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
    }

    .social-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px; /* TOUCH FRIENDLY */
        width: 100%;
        padding: 0 24px;
        border-radius: 999px;
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        color: #fff;
        -webkit-appearance: none;
        appearance: none;
    }

    .social-btn.whatsapp {
        background-color: #25D366;
    }

    .social-btn.instagram {
        background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    }
}