/* ============================================================
   responsive.css — Plásticos San Andrés
   Breakpoints de mayor a menor (desktop-first / max-width)

   1600px  — Monitores grandes / pantallas anchas
   1280px  — Laptop / escritorio estándar
   ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ los tres originales ─
    980px  — Tablet horizontal / ventana reducida
    760px  — Tablet vertical / teléfonos grandes
    480px  — Teléfonos pequeños
   ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
    360px  — Teléfonos Android pequeños
    320px  — Teléfonos mínimos (iPhone SE 1.ª gen.)
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   ≤ 1600px  Monitores grandes / pantallas anchas
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1600px) {
    .section {
        padding: 5.5rem 0;
    }

    .hero {
        padding: 6rem 0 4.5rem;
    }

    .dark-section {
        padding: 5.5rem 0;
    }
}


/* ─────────────────────────────────────────────────────────────
   ≤ 1280px  Laptop / escritorio estándar
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .container {
        width: min(1060px, 92%);
    }

    .hero h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .products-grid {
        gap: 1.2rem;
    }

    .benefits-grid {
        gap: 1.2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
    }
}


/* ─────────────────────────────────────────────────────────────
   ≤ 980px  Tablet horizontal / ventana reducida
   ───────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand-block {
        max-width: none;
        grid-column: 1 / -1;
    }
}


/* ─────────────────────────────────────────────────────────────
   ≤ 760px  Tablet vertical / teléfonos grandes
   ───────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .map-wrapper {
        height: 320px;
    }
    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 4%;
        right: 4%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1rem;
        display: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav > .btn-whatsapp {
        display: none;
    }

    .hero {
        padding: 5rem 0 3.5rem;
    }

    .hero h1 {
        margin-bottom: 1rem;
    }

    .hero-card {
        padding: 2rem;
    }

    .benefits-grid,
    .products-grid,
    .clients-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card img {
        height: 130px;
    }

    .footer-col {
        padding-left: 0;
        border-left: 0;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
    }

    .footer-item {
        grid-template-columns: 1rem 1fr;
        gap: 0.45rem;
    }

    .product-card img {
        height: 200px;
    }

    .category-card img {
        height: 110px;
    }

    .section {
        padding: 4rem 0;
    }

    h2 {
        margin-bottom: 1.2rem;
    }
}


/* ─────────────────────────────────────────────────────────────
   ≤ 480px  Teléfonos pequeños
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .map-wrapper {
        height: 260px;
    }

    .nav {
        min-height: 60px;
    }

    .brand {
        font-size: 0.92rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .benefit-card {
        padding: 1.4rem;
    }

    .tag {
        font-size: 0.75rem;
    }

    .final-cta .cta-box {
        border-radius: 14px;
        padding: 1.5rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer h3 {
        font-size: 1.05rem;
    }

    .footer h4 {
        font-size: 0.8rem;
    }

    .footer-item {
        font-size: 0.9rem;
    }

    .footer-wa {
        width: 100%;
        justify-content: center;
    }

    .footer p {
        font-size: 0.92rem;
        line-height: 1.68;
    }

    .footer-schedule {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-schedule b {
        margin-top: 0.4rem;
    }

    .footer-schedule span {
        white-space: normal;
    }
}


/* ─────────────────────────────────────────────────────────────
   ≤ 360px  Teléfonos Android pequeños
   ───────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
    .map-wrapper {
        height: 220px;
        border-radius: 10px;
    }

    .container {
        width: 96%;
    }

    .brand-logo {
        height: 40px;
    }

    .hero h1 {
        font-size: 1.55rem;
    }

    .hero-subtitle {
        font-size: 0.93rem;
    }

    .btn-large,
    .btn-xl {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .hero-card h3 {
        font-size: 1.05rem;
    }

    .product-card img {
        height: 160px;
        padding: 0.8rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card img {
        height: 160px;
    }

    .section {
        padding: 3rem 0;
    }

    .dark-section {
        padding: 3rem 0;
    }
}


/* ─────────────────────────────────────────────────────────────
   ≤ 320px  Teléfonos mínimos (iPhone SE 1.ª gen.)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 320px) {
    .container {
        width: 98%;
    }

    .brand-logo {
        height: 34px;
    }

    .nav {
        min-height: 54px;
    }

    .hero h1 {
        font-size: 1.35rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .benefit-card {
        padding: 1.1rem;
    }

    .product-card img {
        height: 140px;
        padding: 0.6rem;
    }

    .category-card img {
        height: 140px;
    }

    .final-cta .cta-box {
        padding: 1.2rem;
        border-radius: 10px;
    }

    .footer {
        padding: 3rem 0 1.2rem;
    }
}
/* Mejora toque en móviles */
.btn {
    min-height: 44px;
}