/* =================== Responsive.css =================== */

/* ====== Media Queries Globales ====== */

/* Movil pequeño: hasta 480px */
@media (max-width: 480px) {
    header nav {
        flex-direction: row;
        align-items: center;
        padding: 0.4rem 1rem 0.4rem 1rem;
    }

    nav ul {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }

    nav ul li a {
        width: 100%;
        display: block;
    }

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

    #hero .tagtext {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .card-services {
        padding: 1.5rem;
        margin: 1rem;
    }

    .card-services h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .card-services .brand-logos img {
        width: 100px;
        max-height: 60px;
    }

    #faqs details {
        padding: 1rem;
    }

    footer {
        padding: 2rem 1rem;
    }
}

/* Movil mediano / tablet pequeño: hasta 768px */
@media (max-width: 768px) {


    nav ul {
        flex-direction: row;
        gap: 1rem;
    }

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

    #hero .tagtext {
        font-size: 1.1rem;
    }

    .card-services {
        padding: 1.8rem;
        margin: 1.5rem auto;
    }

    .card-services h2 {
        font-size: 1.6rem;
    }

    .card-services .brand-logos img {
        width: 120px;
        max-height: 70px;
    }
}

/* Tablets medianas: hasta 1024px */
@media (max-width: 1024px) {
    nav ul {
        gap: 1.5rem;
    }

    #hero h1 {
        font-size: 2.3rem;
    }

    .card-services .brand-logos img {
        width: 130px;
        max-height: 75px;
    }

    #faqs details {
        max-width: 700px;
    }
}

/* Ajustes generales de carrusel para móviles */
@media (max-width: 768px) {
    .brand-logos-wrapper {
        padding: 10px 0;
    }

    .brand-logos {
        gap: 20px;
    }

    .brand-logos img {
        width: 100px;
    }
}


/* ====== Media query para móviles ====== */
@media (max-width: 768px) {
    nav {
        position: relative;
    }

    #nav-menu {
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--color-oscuro);
        flex-direction: column;
        width: 200px;
        padding: 1rem;
        border-radius: 8px;
        display: none; /* oculto por defecto */
        z-index: 200; /* asegurar que quede encima de otros elementos */
    }


    #nav-menu li {
        margin-bottom: 1rem;
    }

    #nav-menu li a {
        color: var(--color-claro);
        font-weight: 500;
    }

    .hamburger {
        display: flex;
        width: 30px;
        height: 25px;
        margin-right: 5px;
    }

    /* Animación menú abierto */
    #nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-in-out;
    }

    @keyframes slideDown {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}