/* ==========================================================================
   RESPONSIVO — breakpoints estándar usados en todo el archivo:
   992px = tablets / menú móvil · 768px = tablets pequeñas y celulares
   576px = celulares · 480px = celulares pequeños
   Cada bloque agrupa TODAS las reglas de un mismo breakpoint para evitar
   breakpoints repetidos o sueltos por el archivo.
========================================================================== */


/* ==============================
   GENERAL (992px)
================================ */

@media (max-width: 992px) {

    :root {
        --section-padding: 70px;
    }

    .hero {
        padding: 130px 0 60px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        margin-top: 50px;
    }

    .hero-highlights {
        text-align: left;
    }

    .hero-badge {
        left: 12px;
        bottom: -16px;
        padding: 10px 16px;
    }

    .hero-badge span {
        display: none;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacto-hero {
        min-height: 65vh;
    }

    .hero-content {
        max-width: 600px;
    }

    .contacto-formulario {
        padding: 30px;
    }

}


/* ==============================
   NAVBAR MÓVIL (991px — coincide con el punto de quiebre
   de Bootstrap navbar-expand-lg)
================================ */

@media (max-width: 991px) {

    .navbar-collapse {
        background: white;
        margin-top: 20px;
        padding: 25px;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    }

    .navbar-nav {
        gap: 10px;
    }

    .navbar-custom .nav-link {
        color: var(--dark);
    }

    .btn-contacto {
        display: block;
        margin-top: 20px;
        text-align: center;
    }

}


/* ==============================
   GENERAL (768px)
================================ */

@media (max-width: 768px) {

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand img {
        margin: 0 auto 20px;
    }

    .footer-social {
        justify-content: center;
    }

    .page-hero {
        padding: 110px 0 60px;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .about-company {
        padding: 60px 0;
    }

    .about-company h2 {
        margin-top: 30px;
        font-size: 1.8rem;
    }

    .info-card {
        padding: 30px;
    }

    .contacto-hero {
        min-height: 70vh;
        background-position: 60% center;
    }

    .hero-overlay {
        background: rgba(0, 60, 35, .78);
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.7rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-contacto-principal {
        padding: 13px 25px;
    }

    .contacto-info h2,
    .contacto-formulario h2 {
        font-size: 1.8rem;
    }

    .info-card i {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .contacto-formulario {
        padding: 22px;
        border-radius: 18px;
    }

    .contacto-formulario .row {
        gap: 0;
    }

    .contacto-formulario .form-control {
        height: 55px;
    }

    .contacto-formulario textarea.form-control {
        height: 150px;
    }

    .contacto-cta {
        padding: 60px 20px;
    }

    .contacto-cta h2 {
        font-size: 1.9rem;
    }

    .contacto-cta p {
        font-size: .95rem;
    }

}


/* ==============================
   GENERAL (576px)
================================ */

@media (max-width: 576px) {

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 30px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons a {
        width: 100%;
        text-align: center;
    }

    .products-filter {
        flex-direction: column;
    }

    .products-hero h1 {
        font-size: 32px;
    }

}


/* ==============================
   GENERAL (480px)
================================ */

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        line-height: 1.6;
    }

    .contacto-formulario {
        padding: 18px;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .info-card i {
        margin-bottom: 5px;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .contacto-hero {
        min-height: 60vh;
        background-position: 55% center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content p {
        max-width: 100%;
        font-size: 1rem;
    }

    .btn-contacto-principal {
        width: 100%;
        justify-content: center;
    }

}

/* Evita espacio blanco y desplazamiento horizontal en celulares */
@media (max-width: 991px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

    body {
        position: relative;
    }

    .promo-banner,
    .promo-ticker,
    #hero,
    .aliados-section,
    .aliados-track-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}
