/* ===========================
   RESPONSIVE — PRODUCTOS
=========================== */

.products-section {
    background-color: var(--color-white);
    padding: 60px 0;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.8em;
}

/* GRID base móvil (1 columna) */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

/* Tarjeta en móvil */
.product-card {
    text-align: center;
    border-radius: 10px;
}

.card-info h3 {
    font-size: 1.3rem;
}

.model-ref {
    font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE — TABLETS
=========================== */

@media (min-width: 768px) {

    /* 2 columnas */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }
}

/* ===========================
   RESPONSIVE — ESCRITORIO
=========================== */

@media (min-width: 1024px) {

    /* 3 columnas */
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 3.6rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .product-card {
        border-radius: 12px;
    }
}

/* ===========================
   RESPONSIVE — MINI CARRITO
=========================== */

/* Si el carrito queda muy alto en pantallas pequeñas, ajustamos */

@media (max-width: 480px) {
    #cart-icon {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    #cart-count {
        padding: 2px 6px;
        font-size: 0.8rem;
    }

    .mini-cart {
        width: 92%;
        right: -100%;
        padding: 15px;
    }

    .mini-cart.open {
        right: 0;
    }

    .mini-cart h3 {
        font-size: 1.2rem;
    }
}

/* ===========================
   RESPONSIVE — HERO
=========================== */

@media (max-width: 600px) {
    .parallax-hero {
        background-attachment: scroll;
        /* Evita fallos de parallax en teléfonos */
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .subtitle {
        font-size: 1.1rem !important;
    }
}