<style>
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: Arial, sans-serif;
    }

    header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0%;
        width: 100%;
        background-color: #fff;
        z-index: 1000;
        padding: 0.8rem 2rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        box-shadow: 0 1.5rem 1.25rem rgba(71,71,71,0.05);
        gap: 2rem;
    }

    .logo {
        font-weight: bold;
        font-size: 1.875rem;
        color: #333;
    }

    .busqueda {
        position: relative;
        flex: 1;
        margin: 0 2.5%;
        max-width: 900px;
    }

    .busqueda input {
        width: 100%;
        font-size: 1rem;
        padding: 0.5rem 1.5rem 0.5rem 1rem;
        border-radius: 1rem;
    }

    .lupa-icon {
        position: absolute;
        right: -1.6rem;
        top: 50%;
        transform: translateY(-50%);
        width: 1.25rem;
        height: 1.25rem;
        cursor: pointer;
        opacity: 0.6;
        transition: 0.2s ease;
    }

    .login-icon {
        width: 1.7rem;
        height: 1.7rem;
    }

    nav .btn-login {
        background: none;
        border: none;
        padding: 0;
        margin-left: 2.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    nav {
        display: flex;
        font-size: 0.15rem;
        margin-right: 4.4rem;
    }
    nav a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        font-size: 1.1rem;
        margin-left: 1.2rem;
    }

        main {
            padding: 4rem 5%;
            max-width: 1300px;
            margin: 0 auto;
        }

        h1 {
            font-size: 3.5rem;
            margin-bottom: 0rem;
            color: rgb(0, 118, 244);
        }

        .section {
            margin-bottom: 3rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2rem;
        }

        .section .text {
            flex: 2 1 400px;
        }

        .section .text h2 {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
        }

        .section .text p {
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }

        .team h2 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
        }

        .team-members {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            justify-content: center;
        }

        .member {
            display: flex;
            align-items: center; /* centra verticalmente el texto con la foto */
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .member img {
            width: 150px;
            height: auto;
            border-radius: 7%;
        }

        .member-info {
            display: flex;
            flex-direction: column; /* pone el texto uno debajo del otro */
            justify-content: center;
        }

        .member-info h3 {
            font-size: 1.2rem;
            margin-top: 0.3rem;
            color: #000000;
            display: inline-block; /* necesario para animar bien */
        }

        .pregunta-logo {
            font-size: 40px;
            margin-bottom: 30px;
        }   

        @media (max-width: 768px) {
            .member {
                flex-direction: column;
                text-align: center;
            }

            .member img {
                width: 120px;
            }
        }

        @keyframes aparecerIzq {
            0% {
                opacity: 0;
                transform: translateX(-30px);
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        main * {
            opacity: 0; /* evita que se vea antes de animar */
            animation: aparecerIzq 0.2s ease-out forwards;

        }

        main *:nth-child(1) { animation-delay: 0.05s; }
        main *:nth-child(2) { animation-delay: 0.1s; }
        main *:nth-child(3) { animation-delay: 0.15s; }
        main *:nth-child(4) { animation-delay: 0.2s; }
        main *:nth-child(5) { animation-delay: 0.25s; }
        main *:nth-child(6) { animation-delay: 0.3s; }
        main *:nth-child(7) { animation-delay: 0.35s; }
        main *:nth-child(8) { animation-delay: 0.4s; }
        main *:nth-child(9) { animation-delay: 0.45s; }
        main *:nth-child(10) { animation-delay: 0.5s; }


    /* ========== FONDO DE ONDAS MULTICOLOR SUPER LIGERAS ========== */
    body::before {
        content: "";
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 45vh; /* altura de la zona con ondas */
        pointer-events: none;
        z-index: -1;

        background:
            radial-gradient(ellipse at 20% 80%, rgba(0,118,244,0.18), transparent 70%),
            radial-gradient(ellipse at 50% 90%, rgba(255,80,80,0.15), transparent 70%),
            radial-gradient(ellipse at 80% 85%, rgba(255,220,0,0.18), transparent 70%);

        filter: blur(40px);
        animation: ondasMover 14s ease-in-out infinite alternate;
    }

    /* ========== ANIMACIÓN SUAVE DE DESPLAZAMIENTO ========== */
    @keyframes ondasMover {
        0%   { transform: translateY(0px) translateX(0px); opacity: 0.95; }
        50%  { transform: translateY(-12px) translateX(10px); opacity: 1; }
        100% { transform: translateY(0px) translateX(-10px); opacity: 0.95; }
    }

    /* ===========================================================
    📱 RESPONSIVE — IGUAL QUE TU MOVILES.CSS ORIGINAL (sin duplicados)
    =========================================================== */

    @media (max-width: 1024px) {
        .main-content h1 { font-size: 8vw; }
        .main-content h2, .main-content h3, .main-content h4, .main-content h5 { font-size: 5vw; }
        .popup { width: 80%; font-size: 1rem; }
    }

    @media (max-width: 768px) {

        /* Header */
        header {
            flex-direction: column;
            flex-wrap: wrap;
            padding: 1rem 2rem;
            gap: 10px;
            text-align: center;
        }

        header nav {
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        .busqueda {
            margin: 1rem 0;
            width: 100%;
            order: 3;
        }

        .busqueda input {
            width: 100%;
            font-size: 16px;
        }

        /* Titulos */
        .main-content {
            padding-top: 11rem;
        }

        .main-content h1 { font-size: 10vw; text-align: center; }
        .main-content h2, .main-content h3, .main-content h4, .main-content h5 {
            font-size: 6vw;
            text-align: center;
        }

        /* Botón */
        .btn-buscar {
            font-size: 1.2rem;
            padding: 0.5rem 1.5rem;
        }

        /* Pop-up */
        .popup {
            width: 90%;
            padding: 1rem;
            font-size: 1rem;
            height: auto;
        }

        #popupImagen {
            height: 25vh;
            max-height: 200px;
            margin-bottom: 15px;
            width: auto;
        }

        #popupPrecio {
            font-size: 30px;
        }

        /* Filtros */
        .filtros { width: 100%; }

        .selector-group {
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
        }

        .selector-opcion {
            font-size: 14px;
            padding: 8px 12px;
        }

        /* H1/H2 genérico */
        h1 { font-size: 28px; }
        h2 { font-size: 22px; }
    }

    @media (max-width: 480px) {

        #popupImagen {
            height: 20vh;
            max-height: 150px;
        }

        #popupPrecio {
            font-size: 24px;
        }
    }

    /* ============================
   📱 BAJAR MÁS EL CONTENIDO EN MÓVIL
   ============================ */
    @media (max-width: 768px) {

        main {
            padding-top: 11rem; /* BAJA MUCHO el contenido */
        }
    }

    @media (max-width: 480px) {

        main {
            padding-top: 13rem; /* En móviles MUY pequeños, más aún */
        }

    }

/* ===== LOGIN POPUP ===== */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-popup {
    position: relative;
    width: 90%;
    max-width: 520px;
    height: 520px;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.login-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.login-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
}


</style>