/* ==========================================
   RESPONSIVE DESIGN - DRCERRAMAMIENTOS
   ========================================== */

/* ==========================================
   TABLET - 992px y menor
   ========================================== */

@media (max-width: 992px) {
    :root {
        --font-size-3xl: 2.5rem;
        --font-size-2xl: 1.75rem;
        --spacing-xl: 4rem;
    }

    nav {
        padding: 0.75rem 1rem;
    }

    .logo img {
        height: 45px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--bg-light);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================
   MOBILE - 768px y menor
   ========================================== */

@media (max-width: 768px) {
    :root {
        --font-size-3xl: 2rem;
        --font-size-2xl: 1.5rem;
        --font-size-xl: 1.25rem;
        --spacing-lg: 3rem;
        --spacing-xl: 3rem;
    }

    section {
        padding: var(--spacing-lg) 1rem;
    }

    .hero {
        height: 80vh;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: var(--font-size-2xl);
    }

    .hero-content p {
        font-size: var(--font-size-base);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        height: 250px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .carousel-arrow.prev {
        left: 0.5rem;
    }

    .carousel-arrow.next {
        right: 0.5rem;
    }

    .carousel-indicators {
        bottom: 0.5rem;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .carousel-indicator.active {
        width: 20px;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ==========================================
   MOBILE PEQUEÑO - 480px y menor
   ========================================== */

@media (max-width: 480px) {
    :root {
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.25rem;
        --spacing-md: 1.5rem;
    }

    nav {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: var(--font-size-xl);
    }

    .section-header p {
        font-size: var(--font-size-base);
    }

    .product-card {
        border-radius: var(--radius);
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 1rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    footer {
        padding: var(--spacing-md) 1rem 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* ==========================================
   LANDSCAPE MOBILE
   ========================================== */

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   PANTALLAS GRANDES - 1400px y mayor
   ========================================== */

@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================
   MEJORAS DE ACCESIBILIDAD
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .whatsapp-float {
        animation: none;
    }
}

/* ==========================================
   IMPRESIÓN
   ========================================== */

@media print {
    header,
    footer,
    .whatsapp-float,
    .menu-toggle {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }
}