/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */

/* Tablet */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }

    /* Menú móvil: panel blanco, enlaces oscuros para legibilidad */
    .nav-menu a {
        color: var(--text-primary) !important;
    }
    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--primary) !important;
        background: rgba(13, 148, 136, 0.1) !important;
    }
    .nav-menu a.btn-primary {
        background: var(--primary) !important;
        color: white !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 65vh;
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .cta-box {
        padding: var(--spacing-2xl);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-outline {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .modal-content {
        width: 95%;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }

    /* Banner legal: apilar texto y botón en móvil */
    .legal-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .legal-banner-text {
        min-width: 0;
    }
    .legal-banner-links {
        justify-content: center;
    }
    .legal-banner-actions {
        justify-content: center;
    }
    .legal-banner-actions .btn-legal-accept {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo img {
        height: 30px;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}

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