/* responsive.css - Adaptación Multidispositivo */

/* --- TABLETS Y PANTALLAS MEDIANAS (MAX-WIDTH: 1024px) --- */
@media (max-width: 1024px) {
    .nav-menu {
        display: none; /* Se oculta para usar menú móvil en JS */
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 999;
        border-top: 1px solid var(--border-color);
        transition: var(--transition-smooth);
        padding: 40px;
    }

    .nav-menu.open {
        display: flex;
    }

    .btn-menu-toggle {
        display: flex;
    }

    /* Animación hamburguesa a X */
    .btn-menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .btn-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .btn-menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1; /* Muestra el elemento visual primero en tablets/móvil */
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* --- MÓVILES (MAX-WIDTH: 768px) --- */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-premium {
        padding: 130px 20px 80px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .hero-cta a, .hero-cta button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-card {
        padding: 24px;
        transform: none !important; /* Desactiva inclinación en móviles */
    }

    .card-number {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .breadcrumb-container {
        padding: 12px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-links-col {
        align-items: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-banner {
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 20px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .btn-cookie-accept, .btn-cookie-reject {
        width: 100%;
        text-align: center;
    }
}

/* --- MÓVILES PEQUEÑOS (MAX-WIDTH: 480px) --- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
