/* Responsive Design - Contabilidad CMP */

/* Mobile Navigation Toggle (Hamburger) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-primary);
    padding: 0.5rem;
}

/* Tablet & Mobile Styles */
@media (max-width: 768px) {

    /* Navigation */
    .nav-toggle {
        display: block;
        z-index: 2000;
        /* Ensure it's above the full screen menu */
        font-size: 1.8rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1500;
        /* Above header (1000) but below toggle (2000) */
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: none;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease 0.1s;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        display: inline-block;
        padding: 1rem;
        font-size: 1.5rem;
        /* Larger text for mobile */
        font-weight: 600;
        color: var(--color-text-main);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--color-primary);
    }

    .btn {
        width: auto;
        /* Let button size itself or max-width */
        min-width: 200px;
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero {
        padding: 4rem 1rem;
        min-height: auto;
    }

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

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

    /* General Sections */
    .section {
        padding: 3rem 0;
    }

    h2 {
        font-size: 1.75rem;
        /* Smaller section titles */
    }

    /* Banner Operacion Renta */
    /* Overriding inline styles might be tricky without !important or specific selectors, 
       but we can target by ID if we add one, or generic containers. 
       Assuming the banner is a section or div in index.html */

    .cta-banner-content h2 {
        font-size: 1.8rem !important;
    }

    /* Card Grids */
    .card-grid {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    /* Nosotros Page Specifics */
    /* Fix for flex layouts in history section */
    .nosotros-flex-section {
        flex-direction: column !important;
    }

    .nosotros-flex-section>div {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack footer columns */
        text-align: center;
        gap: 2rem;
    }

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

    /* WhatsApp */
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-chat-bubble {
        width: 300px;
        /* Slightly smaller */
        right: -20px;
        /* Adjust alignment relative to button */
        bottom: 70px;
    }
}