/* ===== RESPONSIVE DESIGN ===== */
/* Mobile-first approach with 5 breakpoints */

/* ===== BASE MOBILE (320px - 480px) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .header-content {
        padding: 10px 0;
        min-height: 60px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-text h1::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-visual {
        height: 200px;
    }

    .hero-placeholder {
        width: 180px;
        height: 180px;
    }

    .floating-brain,
    .floating-heart,
    .floating-star {
        font-size: 1.5rem;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-link {
        padding: 12px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .whatsapp-icon {
        font-size: 1rem;
    }

    /* Map Section */
    .map-section {
        padding: 60px 0;
    }

    .map-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .map-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .map-container iframe {
        height: 250px !important;
    }

    .map-container-full iframe {
        height: 250px !important;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 20px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .footer-contact p {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .footer-contact strong {
        min-width: auto;
        font-size: 0.9rem;
    }

    .horario p {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }

    .footer-government-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 1rem;
    }

    .footer-government-links a {
        margin: 0;
        font-size: 0.85rem;
    }

    /* SEO Content */
    .seo-content {
        padding: 60px 0;
        background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #3d2415 100%);
    }

    .seo-content h2 {
        font-size: 1.6rem;
        margin-top: 1.5rem;
    }

    .seo-content h3 {
        font-size: 1.3rem;
    }

    .seo-content p {
        font-size: 1rem;
    }

    .seo-content .cta-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .seo-content .cta-section h3 {
        font-size: 1.5rem;
    }

    /* Sitemap */
    .sitemap-section {
        padding: 80px 0 60px;
    }

    .sitemap-section h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .sitemap-section > p {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .sitemap-categories {
        gap: 40px;
    }

    .sitemap-category h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sitemap-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .sitemap-item a {
        font-size: 0.85rem;
        padding: 6px 10px;
        margin: 1px 0;
    }

    .back-to-home {
        margin-top: 3rem;
    }
}

/* ===== SMALL TABLET (481px - 768px) ===== */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* SEO Content */
    .seo-content {
        padding: 70px 0;
        background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #3d2415 100%);
    }

    .seo-content h2 {
        font-size: 1.7rem;
        margin-top: 1.8rem;
    }

    .seo-content h3 {
        font-size: 1.4rem;
    }

    .seo-content p {
        font-size: 1.05rem;
    }

    .seo-content .cta-section {
        margin: 2.2rem 0;
        padding: 1.7rem;
    }

    .seo-content .cta-section h3 {
        font-size: 1.6rem;
    }

    /* Header */
    .header-content {
        padding: 12px 0;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero {
        padding: 110px 0 70px;
    }

    .hero-content {
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-visual {
        height: 280px;
    }

    .hero-placeholder {
        width: 220px;
        height: 220px;
    }

    /* Map Section */
    .map-section h2 {
        font-size: 2.2rem;
    }

    .map-container iframe {
        height: 300px !important;
    }

    .map-container-full iframe {
        height: 300px !important;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    /* Sitemap */
    .sitemap-section h1 {
        font-size: 2.5rem;
    }

    .sitemap-grid.grid-3-col {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .sitemap-category h2 {
        font-size: 1.7rem;
    }
}

/* ===== TABLET (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* SEO Content */
    .seo-content {
        padding: 75px 0;
        background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #3d2415 100%);
    }

    .seo-content h2 {
        font-size: 1.8rem;
        margin-top: 2rem;
    }

    .seo-content h3 {
        font-size: 1.5rem;
    }

    .seo-content p {
        font-size: 1.1rem;
    }

    .seo-content .cta-section {
        margin: 2.5rem 0;
        padding: 2rem;
    }

    .seo-content .cta-section h3 {
        font-size: 1.7rem;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }

    .hero-content {
        gap: 50px;
    }

    .hero-visual {
        height: 350px;
    }

    .hero-placeholder {
        width: 260px;
        height: 260px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .sitemap-grid.grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }

    .map-container iframe {
        height: 350px !important;
    }

    .map-container-full iframe {
        height: 350px !important;
    }
}

/* ===== SMALL DESKTOP (1025px - 1200px) ===== */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    /* SEO Content */
    .seo-content {
        padding: 80px 0;
        background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #3d2415 100%);
    }

    .seo-content h2 {
        font-size: 1.9rem;
        margin-top: 2.2rem;
    }

    .seo-content h3 {
        font-size: 1.6rem;
    }

    .seo-content p {
        font-size: 1.15rem;
    }

    .seo-content .cta-section {
        margin: 2.8rem 0;
        padding: 2.2rem;
    }

    .seo-content .cta-section h3 {
        font-size: 1.8rem;
    }

    .hero-text h1 {
        font-size: 3.3rem;
    }

    .hero-content {
        gap: 55px;
    }

    .hero-visual {
        height: 380px;
    }

    .hero-placeholder {
        width: 280px;
        height: 280px;
    }

    .sitemap-grid.grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }

    .map-container iframe {
        height: 400px !important;
    }
}

/* ===== LARGE DESKTOP (1201px+) ===== */
@media (min-width: 1201px) {
    .container {
        max-width: 1400px;
    }

    /* SEO Content */
    .seo-content {
        padding: 85px 0;
        background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #3d2415 100%);
    }

    .seo-content h2 {
        font-size: 2rem;
        margin-top: 2.5rem;
    }

    .seo-content h3 {
        font-size: 1.7rem;
    }

    .seo-content p {
        font-size: 1.2rem;
    }

    .seo-content .cta-section {
        margin: 3rem 0;
        padding: 2.5rem;
    }

    .seo-content .cta-section h3 {
        font-size: 1.9rem;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-text p {
        font-size: 1.3rem;
    }

    .hero-visual {
        height: 450px;
    }

    .hero-placeholder {
        width: 350px;
        height: 350px;
    }

    .sitemap-grid.grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }

    .map-container iframe {
        height: 500px !important;
    }
}

/* ===== HIGH RESOLUTION SCREENS ===== */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }

    /* SEO Content */
    .seo-content {
        padding: 90px 0;
        background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #3d2415 100%);
    }

    .seo-content h2 {
        font-size: 2.2rem;
        margin-top: 2.8rem;
    }

    .seo-content h3 {
        font-size: 1.8rem;
    }

    .seo-content p {
        font-size: 1.25rem;
    }

    .seo-content .cta-section {
        margin: 3.2rem 0;
        padding: 2.8rem;
    }

    .seo-content .cta-section h3 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 4.5rem;
    }

    .hero-text p {
        font-size: 1.4rem;
        max-width: 700px;
    }

    .hero-visual {
        height: 500px;
    }

    .hero-placeholder {
        width: 400px;
        height: 400px;
    }

    .map-container iframe {
        height: 550px !important;
    }
}

/* ===== ORIENTATION CHANGES ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .seo-content {
        padding: 50px 0;
    }

    .seo-content h2 {
        font-size: 1.4rem;
        margin-top: 1.2rem;
    }

    .seo-content h3 {
        font-size: 1.2rem;
    }

    .seo-content p {
        font-size: 0.9rem;
    }

    .seo-content .cta-section {
        margin: 1.5rem 0;
        padding: 1.2rem;
    }

    .seo-content .cta-section h3 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-visual {
        height: 180px;
    }

    .hero-placeholder {
        width: 150px;
        height: 150px;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-link {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .whatsapp-float,
    .hero-visual,
    .footer .footer-government-links {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero-text h1 {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }

    .map-section,
    .seo-content {
        display: none !important;
    }

    .footer {
        background: #f0f0f0 !important;
        color: black !important;
        position: static !important;
        margin-top: 40px;
    }

    .footer-section h3 {
        color: black !important;
    }

    .footer-links a {
        color: black !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@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;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .hero-text h1 {
        -webkit-text-fill-color: #000000 !important;
        background: none !important;
        color: #000000 !important;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .footer-section h3::after {
        background: currentColor;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #0f0f0f 100%);
        color: #ffffff;
    }

    .seo-content {
        background: linear-gradient(135deg, #1a0f0a 0%, #2a1810 50%, #1f120c 100%);
    }

    .seo-content h1,
    .seo-content h2,
    .seo-content h3 {
        color: #ffffff;
    }

    .seo-content p {
        color: rgba(255, 255, 255, 0.95);
    }

    .seo-content .cta-section {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .hero-text p,
    .map-section p,
    .sitemap-section > p,
    .sitemap-item a {
        color: #cccccc;
    }

    .map-section,
    .sitemap-section {
        background: rgba(45, 45, 45, 0.9);
    }

    .sitemap-item h3 {
        color: #b0b0b0;
    }

    .footer-section p,
    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
    }
}
