/*
Theme Name: Tema Regalos Cute
Theme URI: http://tamuffy.local
Author: Arquitecto_WP_Senior
Description: Tema premium para tienda de recuerdos y regalos. Estética limpia, elegante, con colores suaves y diseño mobile-first.
Version: 1.5.6
License: GNU General Public License v2 or later
Text Domain: tema-regalos
*/

/*
 * Paleta de Colores Exigida:
 * Gris Carbón Suave:   #5D5D5D
 * Verde Lima Pastel:   #A6CE56
 * Amarillo Estrella:   #FFD700
 * Madera Gris Clara:   #9E9E9E
 * Madera Gris Oscura:  #4A4A4A
 * Fondo: Blanco Puro
 */

:root {
    --color-texto-principal: #5D5D5D;
    --color-acento-cta: #A6CE56;
    --color-acento-hover: #8eb344;
    --color-brillo-secundario: #ecfd54;
    --color-fondo-claro: #F9F9F9;
    --color-fondo-blanco: #FFFFFF;
    --color-madera-oscura: #4A4A4A;
    --color-madera-clara: #9E9E9E;
}

body {
    background-color: #F8F5F2;
    color: var(--color-texto-principal);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Pseudo-elemento para el fondo: previene pérdida de calidad, efecto zoom en iOS/Web y conflictos con transform */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/img/wallpaper-hd.webp?v=1.1.5');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -100;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); 
    -webkit-transform: translateZ(0);
    image-rendering: auto;
}

/* Enfoque Mobile-First */
.contenedor-principal {
    padding: 1rem;
    max-width: 100%;
}

main.contenedor-principal {
    background-color: var(--color-fondo-blanco);
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-madera-oscura);
    font-weight: 700;
    margin-top: 0;
}

/* Botones de llamada a la acción */
.boton-cta {
    display: inline-block;
    background-color: var(--color-acento-cta);
    color: var(--color-fondo-blanco);
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(166, 206, 86, 0.4);
}

.boton-cta:hover {
    background-color: var(--color-acento-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 206, 86, 0.5);
    color: var(--color-fondo-blanco);
}

/* Cabecera */
.cabecera-principal {
    background-color: rgba(255, 255, 255, 0.85);
    /* Semitransparente para ver el fondo */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.cabecera-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navegacion-primaria {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navegacion-primaria a {
    color: var(--color-texto-principal);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navegacion-primaria a:hover {
    color: var(--color-acento-cta);
}

.boton-cesta {
    background-color: var(--color-fondo-claro);
    color: var(--color-madera-oscura) !important;
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #EEEEEE;
}

.boton-cesta:hover {
    background-color: var(--color-brillo-secundario);
    border-color: var(--color-brillo-secundario);
}

/* =======================================================
   REDISEÑO DEL HERO CARRUSEL
   ======================================================= */
.carrusel-hero-seccion {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 30px;
    margin: 2rem 0 4rem 0;
    background: linear-gradient(135deg, #FDFBFB 0%, #FAFAFA 100%);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.carrusel-pista {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: auto;
}

.carrusel-diapositiva {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem;
    box-sizing: border-box;
}

.hero-contenido {
    flex: 1;
    z-index: 10;
}

.hero-grafico {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 2rem;
}

.hero-titulo {
    font-size: 2.5rem;
    color: var(--color-madera-oscura);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-subtitulo {
    font-size: 1.1rem;
    color: var(--color-texto-principal);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}

.imagen-hero-carrusel {
    max-width: 90%;
    height: auto;
    z-index: 5;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.hero-decoracion-forma {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
}

.hero-decoracion-forma.estelar {
    width: 250px;
    height: 250px;
    background-color: var(--color-brillo-secundario);
    transform: rotate(20deg);
    border-radius: 40px;
}

.hero-decoracion-forma.circular {
    width: 280px;
    height: 280px;
    background-color: var(--color-acento-cta);
    border-radius: 50%;
}

/* Controles de Carrusel */
.carrusel-boton {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--color-madera-oscura);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
}

.carrusel-boton:hover {
    background: var(--color-acento-cta);
    color: white;
}

.carrusel-boton.prev {
    left: 20px;
}

.carrusel-boton.next {
    right: 20px;
}

/* Indicadores */
.carrusel-indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicador {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicador.activo {
    background: var(--color-acento-cta);
    transform: scale(1.3);
}

/* Ajustes Responsive Desktop para Carrusel */
@media (min-width: 768px) {
    .carrusel-diapositiva {
        flex-direction: row;
        text-align: left;
        padding: 6rem 4rem;
        gap: 4rem;
    }

    .hero-subtitulo {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-titulo {
        font-size: 3.5rem;
    }

    .hero-grafico {
        margin-top: 0;
        justify-content: flex-end;
    }
}


/* Integración Estética de WooCommerce */
.woocommerce ul.products li.product {
    background: var(--color-fondo-blanco);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    text-align: center;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.woocommerce ul.products li.product img {
    border-radius: 12px;
    margin-bottom: 1rem;
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1.1rem;
    color: var(--color-madera-oscura);
    font-weight: 600;
    padding-top: 0.5rem;
}

.woocommerce ul.products li.product .price {
    color: var(--color-acento-cta);
    font-weight: 700;
    font-size: 1.2rem;
}

.woocommerce ul.products li.product .button {
    background-color: var(--color-fondo-claro);
    color: var(--color-madera-oscura);
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--color-acento-cta);
    color: var(--color-fondo-blanco);
}

/* Pie de página */
.pie-pagina {
    background-color: var(--color-fondo-claro);
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ajustes Responsive Desktop */
@media (min-width: 768px) {
    .contenedor-principal {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    main.contenedor-principal {
        padding: 4rem;
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .carrusel-hero-seccion {
        margin: 0;
    }

    .hero-contenido {
        flex: 1;
        z-index: 10;
    }

    .hero-grafico {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        position: relative;
    }

    .hero-titulo {
        font-size: 3.5rem;
    }

    .hero-subtitulo {
        font-size: 1.25rem;
    }

    .hero-decoracion-forma {
        width: 300px;
        height: 300px;
        margin: 0;
    }

    .navegacion-primaria {
        gap: 32px;
    }
}

/* =======================================================
   ESTILOS CABECERA: ICONOS Y MENÚ USUARIO
   ======================================================= */
.menu-usuario-desplegable:hover .contenido-desplegable {
    display: block !important;
}

.icono-cabecera {
    transition: transform 0.3s ease, color 0.3s ease;
}

.icono-cabecera:hover {
    color: var(--color-acento-cta) !important;
    transform: translateY(-2px);
}

.contenido-desplegable a:hover {
    background-color: var(--color-fondo-claro);
    color: var(--color-acento-cta) !important;
}

/* Enlace Destacado Personalizar */
.navegacion-primaria a.nav-destacado {
    background-color: var(--color-acento-cta);
    color: var(--color-fondo-blanco) !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(166, 206, 86, 0.4);
    transition: all 0.3s ease;
}

.navegacion-primaria a.nav-destacado:hover {
    background-color: var(--color-acento-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 206, 86, 0.5);
    color: var(--color-fondo-blanco) !important;
}

/* =======================================================
   ESTILOS MI CUENTA Y REGISTRO (WOOCOMMERCE)
   ======================================================= */
/* Contenedor principal para alienar menú a la izquierda y contenido a la derecha */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

/* Panel de navegación lateral */
.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 260px;
    width: 100%;
    background: var(--color-fondo-blanco);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0.8rem;
    border: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-texto-principal);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 12px;
    background-color: transparent;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: var(--color-acento-cta);
    color: var(--color-fondo-blanco) !important;
    transform: translateX(5px);
}

/* Área de contenido central */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 300px;
    background: var(--color-fondo-blanco);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.woocommerce-account .u-columns.col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    flex: 1;
    min-width: 300px;
    background: var(--color-fondo-blanco);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    background-color: #FAFAFA;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--color-acento-cta);
    outline: none;
    background-color: var(--color-fondo-blanco);
}

.woocommerce form .form-row label {
    font-weight: 600;
    color: var(--color-texto-principal);
    display: block;
    margin-bottom: 5px;
}

.woocommerce h2,
.woocommerce legend {
    color: var(--color-madera-oscura);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.woocommerce-account fieldset {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    background-color: #FDFBFB;
}

/* Botones de formulario WooCommerce alineados con el tema */
.woocommerce button.button.woocommerce-form-login__submit,
.woocommerce button.button.woocommerce-form-register__submit,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--color-acento-cta);
    color: var(--color-fondo-blanco);
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    width: auto;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(166, 206, 86, 0.3);
    cursor: pointer;
}

.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--color-acento-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 206, 86, 0.5);
    color: var(--color-fondo-blanco);
}

/* =======================================================
   ESTILOS DE TIENDA Y CUADRÍCULA (GRID)
   ======================================================= */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 2.5rem !important;
    margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    /* Desactiva clearfixes nativos (float) */
}

.woocommerce ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    background: var(--color-fondo-blanco) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
    padding: 1.5rem !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Centrar contenido y empujar botones al fondo */
.woocommerce ul.products li.product img {
    margin-bottom: 1.5rem !important;
    border-radius: 12px;
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    text-align: center;
    font-size: 1.15rem !important;
    margin-bottom: 0.8rem !important;
}

.woocommerce ul.products li.product .price {
    text-align: center;
    color: var(--color-acento-cta) !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

/* Margen superior automático para mantener al final los botones sin deformar card */
.woocommerce ul.products li.product .boton-cta,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    margin-top: auto !important;
}

.woocommerce-loop-product__link {
    display: contents !important;
}

/* =======================================================
   ANIMACIONES
   ======================================================= */
@keyframes latido-corazon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
        color: var(--color-acento-cta);
    }

    100% {
        transform: scale(1);
    }
}

.animar-corazon svg {
    animation: latido-corazon 0.4s ease-out;
    color: var(--color-acento-cta);
}

/* =======================================================
   BUSCADOR DE PRODUCTOS PREMIUM
   ======================================================= */
/* Los estilos del buscador premium se inyectan ahora dinámicamente desde functions.php para asegurar prioridad y evitar problemas de caché. */



/* =======================================================
   REGLAS RESPONSIVE (GLOBALES)
   ======================================================= */
@media (max-width: 767px) {
    .cabecera-contenedor {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }


    .navegacion-primaria {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .contenedor-iconos-cabecera {
        width: 100%;
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .hero-titulo {
        font-size: 2rem;
    }

    .hero-subtitulo {
        font-size: 1rem;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 2rem;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        flex: none;
        width: 100%;
        min-width: 100%;
        padding: 1.5rem;
    }

    .pie-pagina {
        padding: 2rem 1rem;
    }

    .carrusel-diapositiva {
        padding: 2rem 1rem;
    }
    
    .filtro-categorias-premium-contenedor {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .lista-filtros-premium {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    /* Ajuste para dropdowns en móvil (Aseguramos que no interfieran en escritorio) */
    .lista-filtros-premium .submenu-categorias {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        padding-left: 20px !important;
        min-width: unset !important;
        display: none !important;
        border: none !important;
        background: transparent !important;
    }

    .lista-filtros-premium .cat-item-dropdown:hover .submenu-categorias {
        display: flex !important;
    }
}

/* =======================================================
   SECCIÓN DE ANUNCIOS (HOME)
   ======================================================= */
.seccion-anuncios-premium {
    padding: 2rem 0;
    margin-top: 2rem;
}

.grid-anuncios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Reset de la Card (Ya no tiene zoom ni movimiento físico) */
.card-anuncio {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    background: #fff;
    transform: none !important; /* Forzamos a que no haya zoom */
}

.card-anuncio:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.25); /* Solo cambia la profundidad de la sombra */
    transform: none !important;
}

/* Forzamos a la imagen que tampoco haga zoom */
.card-anuncio:hover .img-anuncio {
    transform: scale(1) !important;
}


.img-anuncio {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    height: 100%;
    display: flex;
    align-items: flex-end;
    transition: transform 0.6s ease;
}

.card-anuncio:hover .img-anuncio {
    transform: scale(1.1);
}

.content-anuncio {
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 2.5rem 2rem;
    width: 100%;
    color: white;
    z-index: 2;
    transition: all 0.4s ease;
    text-align: left;
}

.title-anuncio {
    margin: 0;
    font-size: 1.8rem;
    color: white !important;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.desc-anuncio {
    margin: 12px 0 20px;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

.btn-anuncio-fake {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--color-acento-cta);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(166, 206, 86, 0.4);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.card-anuncio:hover .btn-anuncio-fake {
    transform: translateY(0);
    opacity: 1;
}

.link-anuncio-total {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

/* =======================================================
   MENÚ HAMBURGUESA MÓVIL
   ======================================================= */
@media (max-width: 991px) {
    .navegacion-primaria {
        display: none !important;
    }
    .burger-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 10; /* Siempre al final */
        margin-left: 5px;
    }
    .menu-usuario-desplegable {
        display: flex !important;
    }
    #icono-deseos-cabecera {
        display: none !important;
    }
    .cabecera-contenedor {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 5px 12px !important;
        max-width: 100% !important;
        overflow: hidden;
    }
    .logotipo {
        flex: 0 1 auto !important;
        max-width: 120px !important;
        justify-content: flex-start !important;
    }
    .logotipo img {
        max-height: 40px !important;
        width: auto !important;
    }
    .contenedor-iconos-cabecera {
        flex: 1 !important;
        justify-content: flex-end !important;
        gap: 5px !important;
    }
    .icono-cabecera {
        padding: 5px !important;
    }
    .boton-cesta {
        padding: 5px 10px !important;
    }
}

.menu-movil-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    z-index: 99999;
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
    backdrop-filter: blur(8px);
}

.menu-movil-overlay.abierto {
    visibility: visible;
    opacity: 1;
}

.menu-movil-bloque {
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #ffffff !important;
    padding: 60px 25px 30px;
    box-shadow: 20px 0 50px rgba(0,0,0,0.2);
    position: relative;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    z-index: 100000;
}

.menu-movil-overlay.abierto .menu-movil-bloque {
    transform: translateX(0);
}

.cerrar-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-movil-lista {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 20px;
}

.nav-movil-lista a {
    text-decoration: none;
    color: var(--color-texto-principal);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
    display: block;
}

.nav-destacado-movil {
    color: var(--color-acento-cta) !important;
    background: #f9fdf2;
    padding: 12px 15px !important;
    border-radius: 12px;
    border-bottom: none !important;
}


/* =======================================================
   ANIMACIONES DE LETRAS (SELECCIONABLES)
   ======================================================= */
.letra-saltarina {
    display: inline-block;
}

/* 1. Salto en Ola (Jump) */
.card-anuncio.anim-jump:hover .letra-saltarina {
    animation: jump-ola 0.6s ease-in-out infinite alternate;
}
@keyframes jump-ola {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* 2. Giro de letras (Spin) */
.card-anuncio.anim-spin:hover .letra-saltarina {
    animation: spin-letra 0.8s ease infinite;
}
@keyframes spin-letra {
    0%   { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* 3. Latido elástico (Elastic) */
.card-anuncio.anim-elastic:hover .letra-saltarina {
    animation: scale-letra 0.5s ease infinite alternate;
}
@keyframes scale-letra {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); filter: brightness(1.3); }
}

/* 4. Brillo Neón (Glow) */
.card-anuncio.anim-glow:hover .letra-saltarina {
    animation: glow-letra 0.8s ease infinite alternate;
}
@keyframes glow-letra {
    0%   { text-shadow: none; color: white; }
    100% { text-shadow: 0 0 10px #fff, 0 0 20px var(--color-acento-cta); color: var(--color-acento-cta); }
}