/* Responsive Design */

/* Tablets */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .logo-section {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .mobile-buttons {
        display: flex; /* Show mobile buttons on tablets */
        justify-content: center;
    }

    .nav {
        display: none; /* Hide desktop nav on mobile/tablet */
    }

    .hero {
        padding: 100px 0 60px;
    }

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

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

    .hero-placeholder {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .container {
        padding: 0 15px;
    }

    .seo-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .seo-section h2 {
        font-size: 1.6rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .government-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sitemap-main {
        padding: 100px 0 60px;
    }

    .sitemap-main h1 {
        font-size: 2rem;
    }

    .sitemap-links-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float .btn-whatsapp-header {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem !important;
        font-weight: bold !important;
        background: linear-gradient(45deg, #25d366, #128c7e) !important;
        color: white !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .mobile-buttons {
        flex-direction: column;
        gap: 0.3rem;
        width: 100%;
    }
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .btn-phone,
    .btn-whatsapp-header {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .seo-section {
        padding: 1rem;
    }

    .seo-section h2 {
        font-size: 1.4rem;
    }

    .seo-section p {
        font-size: 1rem;
    }

    .maps-section h2 {
        font-size: 2rem;
    }

    .footer {
        padding: 40px 0 20px;
    }

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

    .sitemap-main h1 {
        font-size: 1.8rem;
    }

    .sitemap-section h2 {
        font-size: 1.5rem;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float .btn-whatsapp-header {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem !important;
        font-weight: bold !important;
        background: linear-gradient(45deg, #25d366, #128c7e) !important;
        color: white !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    }

    .hero-visual {
        margin-top: 1.5rem;
    }

    .hero-placeholder {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

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

    .container {
        padding: 0 10px;
    }

    .header-container {
        padding: 0.5rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .btn-phone,
    .btn-whatsapp-header {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .seo-section h2 {
        font-size: 1.2rem;
    }

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

/* Large Screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

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

    .hero p {
        font-size: 1.3rem;
        max-width: 700px;
    }

    .sitemap-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float,
    .footer-links,
    .cta-button,
    .cta-whatsapp {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .seo-content,
    .maps-section {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    .seo-section {
        border: 1px solid #ccc !important;
        margin-bottom: 2rem !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero {
        background: #000 !important;
        color: #fff !important;
    }

    .seo-section {
        background: #fff !important;
        border: 2px solid #000 !important;
    }

    .cta-button,
    .cta-whatsapp,
    .whatsapp-link,
    .whatsapp-float .btn-whatsapp-header {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #fff !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;
    }

    .emoji-animation {
        animation: none !important;
    }

    .whatsapp-link,
    .whatsapp-float .btn-whatsapp-header {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #e0e0e0;
    }

    .seo-content {
        background: #2d2d2d;
    }

    .seo-section {
        background: linear-gradient(135deg, #3d3d3d 0%, #4d4d4d 100%);
        color: #e0e0e0;
    }

    .sitemap-main {
        background: #2d2d2d;
        color: #e0e0e0;
    }

    .sitemap-links a,
    .sitemap-links-grid a {
        background: linear-gradient(135deg, #3d3d3d 0%, #4d4d4d 100%);
        color: #e0e0e0;
        border-color: #555;
    }

    .sitemap-links a:hover,
    .sitemap-links-grid a:hover {
        background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    }
}
