/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* ============================================
   TABLET DEVICES (768px and up)
   ============================================ */

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

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

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

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* ============================================
   MOBILE DEVICES (768px and down)
   ============================================ */

@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }

    /* Header & Navigation */
    .header-container {
        padding: var(--spacing-md);
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-lg);
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-smooth);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-link {
        font-size: 1rem;
        padding: var(--spacing-sm) 0;
    }

    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: var(--spacing-lg) 0;
    }

    .hero-background {
        width: 100%;
        opacity: 0.5;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    /* Sections */
    section {
        padding: var(--spacing-xl) 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-md);
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .highlight {
        padding: var(--spacing-md);
    }

    .highlight-icon {
        font-size: 2rem;
    }

    .highlight h3 {
        font-size: 1rem;
    }

    .highlight p {
        font-size: 0.9rem;
    }

    .image-placeholder {
        aspect-ratio: 1;
    }

    /* Products Section */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .product-card {
        display: flex;
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .product-image {
        width: 150px;
        height: 150px;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .image-placeholder-product {
        font-size: 3rem;
    }

    .product-info {
        padding: var(--spacing-md);
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }

    .feature {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    /* Differentials Section */
    .differentials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .differential-card {
        padding: var(--spacing-lg);
    }

    .differential-icon {
        font-size: 2.5rem;
    }

    .differential-card h3 {
        font-size: 1.1rem;
    }

    .differential-card p {
        font-size: 0.9rem;
    }

    /* CTA Section */
    .cta-section {
        padding: var(--spacing-lg);
    }

    .cta-content h2 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

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

    .footer-bottom p {
        font-size: 0.85rem;
    }

    /* WhatsApp Button */
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        font-size: 1.5rem;
    }
}

/* ============================================
   SMALL MOBILE DEVICES (480px and down)
   ============================================ */

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.2rem;
        --spacing-xl: 1.5rem;
        --spacing-xxl: 2rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Header */
    .header-container {
        padding: var(--spacing-sm);
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hamburger {
        width: 20px;
        height: 2px;
    }

    /* Hero Section */
    .hero {
        min-height: 60vh;
        padding: var(--spacing-md) 0;
    }

    .hero-content {
        padding: var(--spacing-md);
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-md);
    }

    .cta-button {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }

    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* About Section */
    .about-description {
        font-size: 0.95rem;
    }

    .about-highlights {
        gap: var(--spacing-sm);
    }

    .highlight {
        padding: var(--spacing-md);
    }

    .highlight-icon {
        font-size: 1.8rem;
    }

    .highlight h3 {
        font-size: 0.95rem;
    }

    .highlight p {
        font-size: 0.85rem;
    }

    /* Products Section */
    .product-card {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        height: 120px;
    }

    .product-info {
        padding: var(--spacing-md);
    }

    .product-title {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    /* Differentials */
    .differential-card {
        padding: var(--spacing-md);
    }

    .differential-icon {
        font-size: 2rem;
    }

    .differential-card h3 {
        font-size: 1rem;
    }

    .differential-card p {
        font-size: 0.85rem;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 1.3rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .social-links {
        gap: var(--spacing-sm);
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* WhatsApp Button */
    .whatsapp-button {
        width: 45px;
        height: 45px;
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
        font-size: 1.2rem;
    }
}

/* ============================================
   EXTRA SMALL DEVICES (360px and down)
   ============================================ */

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .cta-button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }

    .product-image {
        height: 100px;
    }

    .image-placeholder-product {
        font-size: 2rem;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-md);
    }

    section {
        padding: var(--spacing-lg) 0;
    }
}

/* ============================================
   HIGH RESOLUTION DISPLAYS
   ============================================ */

@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3.2rem;
    }

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

    .differentials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    .whatsapp-button,
    .menu-toggle {
        display: none;
    }

    body {
        background-color: white;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   DARK MODE (if supported)
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1a1a1a;
        --white: #0d0d0d;
        --text-color: #e0e0e0;
        --dark-color: #f5f3f0;
        --border-color: #333333;
    }

    .header {
        background-color: #1a1a1a;
    }

    .product-card,
    .differential-card {
        background-color: #1a1a1a;
    }
}
