<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;
    }

    /* RESPONSIVE */
    @media (max-width: 1024px) {
        header { padding: 1rem 2rem; }
        nav a { font-size: 1.1rem; margin-left: 0.75rem; }
    }

    @media (max-width: 768px) {
        header { flex-direction: column; padding: 0.75rem 1.5rem; }
        .busqueda { margin: 0.75rem 0; }
        nav a { font-size: 1rem; margin: 0.25rem; }
    }

    .main-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 6rem;
        padding-left: 5%;
        padding-right: 5%;
    }

    .main-content h1 {
        font-size: 8vw; /* escala con pantalla */
        margin-bottom: 1rem;
    }

    .main-content p {
        font-size: 2vw;
        margin-bottom: 1rem;
    }

    .main-content h2 {
        font-size: 1.5rem;
        font-weight: 500;
        margin-top: 1rem;
    }

    .filtro {
        margin-left: 0.5rem;
        font-weight: bold;
        font-size: 1.375rem;
        cursor: pointer;
        color: rgb(0, 118, 244);
    }

    .imagenes {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 3rem;
    }

    .imagenes img {
        max-width: 100%;
        height: auto;
    }

    .filtro-popup {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: absolute;
        top: 63%;
        left: 65%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 600px;
        background-color: #fff;
        padding: 1rem;
        border-radius: 0.75rem;
        box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.1);
        text-align: center;
        z-index: 10;
    }

    .categoria {
        padding: 0.75rem;
        margin: 0.25rem;
        background-color: #f8f8f8;
        border-radius: 0.5rem;
        cursor: pointer;
        font-weight: bold;
        transition: background-color 0.2s;
    }

    .categoria:hover {
        background-color: #e0f0ff;
    }

    /* MEDIA QUERIES */
    @media (max-width: 1024px) {
        .main-content h1 { font-size: 10vw; }
        .main-content p { font-size: 3vw; }
        .filtro-popup { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 768px) {
        header { flex-direction: column; padding: 1rem 2rem; }
        nav a { font-size: 1rem; margin: 0.25rem; }
        .busqueda { margin: 1rem 0; }
        .main-content h1 { font-size: 12vw; }
        .main-content p { font-size: 4vw; }
        .filtro-popup { grid-template-columns: 1fr; width: 90%; }
    }

    /* ========== 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;
        }
    }

/* ===== 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>