/* ============================================
   DESENTUPIDORA EXATA - RESPONSIVE DESIGN
   Mobile-First Premium Experience
   ============================================ */

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 479px) {
    .container {
        padding: 0 var(--space-4);
    }

    /* Header */
    .header {
        padding: var(--space-3) 0;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    /* Hero */
    .hero {
        padding: calc(80px + var(--space-10)) 0 var(--space-12);
        min-height: auto;
    }

    .hero-content::before {
        font-size: 0.75rem;
        padding: var(--space-2) var(--space-4);
        margin-bottom: var(--space-4);
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: var(--space-4);
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--space-6);
        padding: 0 var(--space-2);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
        margin-bottom: var(--space-8);
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        width: 100%;
        padding: var(--space-4) var(--space-5);
        font-size: 1rem;
        justify-content: center;
        border-radius: var(--radius-lg);
    }

    .hero-visual {
        gap: var(--space-6);
        margin-top: var(--space-6);
    }

    .hero-emoji {
        font-size: 3rem;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        z-index: 9999;
    }

    .whatsapp-link {
        padding: 15px;
        font-size: 0.9rem;
        min-height: 56px;
        min-width: 56px;
        justify-content: center;
    }

    .whatsapp-text {
        display: inline;
        font-size: 0.85rem;
    }

    /* Main Content */
    .main-content {
        padding: var(--space-10) 0;
    }

    .seo-section {
        padding: var(--space-8) var(--space-5);
        margin-bottom: var(--space-6);
        border-radius: var(--radius-xl);
    }

    .seo-section h2 {
        font-size: 1.6rem;
        margin-bottom: var(--space-5);
    }

    .seo-section p {
        font-size: 0.95rem;
        text-align: left;
        margin-bottom: var(--space-4);
        line-height: 1.8;
    }

    .cta-section {
        margin-top: var(--space-6);
    }

    .cta-content {
        width: 100%;
        padding: var(--space-4) var(--space-6);
        font-size: 1rem;
        border-radius: var(--radius-lg);
    }

    /* Map */
    .gmb-section {
        padding: var(--space-12) 0;
    }

    .gmb-section h2 {
        font-size: 1.6rem;
        margin-bottom: var(--space-6);
    }

    .map-container {
        margin: 0 var(--space-4);
        border-radius: var(--radius-xl);
    }

    .map-container iframe {
        height: 280px;
    }

    /* Footer */
    .footer {
        padding: var(--space-12) 0 var(--space-8);
    }

    .footer-row {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.4rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-link {
        padding: var(--space-3) 0;
        font-size: 0.9rem;
    }

    .footer-link:hover {
        transform: none;
    }

    /* Sitemap */
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .sitemap-link {
        padding: var(--space-3) var(--space-4);
        font-size: 0.9rem;
    }
}

/* ===== MOBILE (480px - 639px) ===== */
@media (min-width: 480px) and (max-width: 639px) {
    .container {
        padding: 0 var(--space-5);
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        width: 100%;
        max-width: 340px;
    }

    .hero-emoji {
        font-size: 3.5rem;
    }

    .seo-section h2 {
        font-size: 1.8rem;
    }

    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== TABLET (640px - 1023px) ===== */
@media (min-width: 640px) and (max-width: 1023px) {
    .container {
        padding: 0 var(--space-8);
    }

    /* Header */
    .header {
        padding: var(--space-4) 0;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    /* Hero */
    .hero {
        padding: calc(90px + var(--space-12)) 0 var(--space-16);
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
        max-width: 650px;
    }

    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        padding: var(--space-4) var(--space-6);
    }

    .hero-emoji {
        font-size: 4.5rem;
    }

    /* WhatsApp */
    .whatsapp-float {
        bottom: var(--space-6);
        right: var(--space-6);
        z-index: 9999;
    }

    .whatsapp-link {
        min-height: 52px;
        min-width: 52px;
    }

    .whatsapp-text {
        display: inline;
    }

    /* SEO Sections */
    .seo-section {
        padding: var(--space-10);
        margin-bottom: var(--space-8);
    }

    .seo-section h2 {
        font-size: 2.2rem;
    }

    .seo-section p {
        font-size: 1.1rem;
    }

    /* Map */
    .map-container iframe {
        height: 380px;
    }

    /* Footer */
    .footer-row {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    .footer-section.full-width {
        grid-column: 1 / -1;
    }

    /* Sitemap */
    .sitemap-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== DESKTOP (1024px - 1279px) ===== */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-10);
    }

    /* Header */
    .header {
        padding: var(--space-5) 0;
    }

    .logo h1 {
        font-size: 2.2rem;
    }

    /* Hero */
    .hero {
        padding: calc(100px + var(--space-16)) 0 var(--space-20);
        min-height: 100vh;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-description {
        font-size: 1.35rem;
        max-width: 850px;
    }

    .hero-ctas {
        gap: var(--space-5);
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        padding: var(--space-5) var(--space-10);
        font-size: 1.1rem;
    }

    .hero-emoji {
        font-size: 5.5rem;
    }

    /* Main Content */
    .main-content {
        padding: var(--space-24) 0;
    }

    .seo-section {
        padding: var(--space-12) var(--space-16);
        margin-bottom: var(--space-10);
    }

    .seo-section h2 {
        font-size: 2.6rem;
    }

    .seo-section p {
        font-size: 1.15rem;
        max-width: 900px;
    }

    .cta-content {
        padding: var(--space-5) var(--space-12);
        font-size: 1.2rem;
    }

    /* Map */
    .gmb-section {
        padding: var(--space-24) 0;
    }

    .gmb-section h2 {
        font-size: 2.6rem;
    }

    /* Footer */
    .footer {
        padding: var(--space-20) 0 var(--space-10);
    }

    .footer-row {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Sitemap */
    .sitemap-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== LARGE DESKTOP (1280px+) ===== */
@media (min-width: 1280px) {
    .container {
        max-width: 1400px;
        padding: 0 var(--space-12);
    }

    .hero-title {
        font-size: 5.2rem;
    }

    .hero-description {
        font-size: 1.45rem;
        max-width: 950px;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        padding: var(--space-5) var(--space-12);
        font-size: 1.15rem;
    }

    .hero-emoji {
        font-size: 6rem;
    }

    .seo-section h2 {
        font-size: 2.8rem;
    }

    .seo-section p {
        font-size: 1.2rem;
        max-width: 950px;
    }

    .footer-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .sitemap-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===== EXTRA LARGE DESKTOP (1536px+) ===== */
@media (min-width: 1536px) {
    .container {
        max-width: 1600px;
    }

    .hero-title {
        font-size: 5.8rem;
    }

    .hero-description {
        font-size: 1.5rem;
    }

    .seo-section h2 {
        font-size: 3rem;
    }

    .sitemap-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ===== TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover transforms on touch */
    .cta-primary:hover,
    .cta-secondary:hover,
    .cta-tertiary:hover,
    .cta-content:hover,
    .whatsapp-link:hover,
    .seo-section:hover,
    .sitemap-link:hover {
        transform: none;
    }

    .footer-link:hover {
        transform: none;
    }

    /* Increase touch targets */
    .cta-primary,
    .cta-secondary,
    .cta-tertiary,
    .cta-content {
        min-height: 52px;
    }

    .footer-link {
        padding: var(--space-4) 0;
        min-height: 48px;
    }

    .sitemap-link {
        min-height: 52px;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: calc(70px + var(--space-6)) 0 var(--space-8);
        min-height: auto;
    }

    .hero-content::before {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: var(--space-3);
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--space-4);
    }

    .hero-ctas {
        margin-bottom: var(--space-4);
    }

    .hero-visual {
        display: none;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper edges on retina */
    .cta-primary,
    .cta-secondary,
    .cta-tertiary,
    .cta-content {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .whatsapp-float,
    .hero-visual,
    .cta-section,
    .hero-ctas,
    .hero-content::before {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero {
        background: white !important;
        padding: 20px 0 !important;
        min-height: auto !important;
    }

    .hero::before,
    .hero::after {
        display: none !important;
    }

    .hero-title {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
        font-size: 2rem !important;
    }

    .hero-description {
        color: #333 !important;
    }

    .main-content {
        background: white !important;
    }

    .main-content::before {
        display: none !important;
    }

    .seo-section {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        background: white !important;
    }

    .seo-section::before,
    .seo-section::after {
        display: none !important;
    }

    .seo-section h2 {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }

    .seo-section p {
        color: #333 !important;
    }

    .footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid #333 !important;
    }

    .footer::before,
    .footer::after {
        display: none !important;
    }

    .footer-section h3,
    .footer-section h4 {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }

    .footer-section p,
    .footer-link {
        color: #333 !important;
    }
}

/* ===== 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;
    }

    .hero-emoji {
        animation: none !important;
    }

    .whatsapp-link {
        animation: none !important;
    }

    .hero-title {
        animation: none !important;
    }

    .hero-content::before {
        animation: none !important;
    }

    .seo-section::before {
        animation: none !important;
    }

    .footer::before {
        animation: none !important;
    }
}

/* Remove hamburger menu on mobile */
.hamburger-menu {
    display: none !important;
}