/* ============================================
   VARIABLES CSS - SISTEMA DE DISEÑO PREMIUM MEJORADO
============================================ */
:root {
    /* Colores Premium del diseño de referencia */
    --primary-gold: #D4AF37;
    --secondary-gold: #F4E4BC;
    --accent-rose: #D4A574;
    --dark-navy: #1a1f36;
    --medium-navy: #2d3561;
    --light-navy: #434b7a;
    --cream: #FAF8F5;
    --pearl: #F8F6F0;
    --charcoal: #2C2C2C;
    --silver: #E8E8E8;
    --soft-shadow: rgba(26, 31, 54, 0.1);
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 100%);
    --navy-gradient: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%);

    /* Tipografía */
    --tienda-fuente-titulo: 'Playfair Display', serif;
    --tienda-fuente-cuerpo: 'Inter', sans-serif;

    /* Transiciones premium */
    --tienda-transicion-rapida: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --tienda-transicion-media: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tienda-transicion-lenta: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --tienda-transicion-elastica: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* ============================================
       VARIABLES PARA LÍNEAS DE PRODUCTO
    ============================================ */

    /* Línea de Nutrición - Salud y Vitalidad */
    --nutricion-primary: #00B4A6;
    --nutricion-secondary: #4CAF50;
    --nutricion-accent: #81C784;
    --nutricion-dark: #00695C;
    --nutricion-light: #E0F2E7;
    --nutricion-text-primary: #1B5E20;
    --nutricion-text-secondary: #2E7D32;
    --nutricion-gradient-main: linear-gradient(135deg, #00B4A6 0%, #4CAF50 100%);
    --nutricion-gradient-soft: linear-gradient(135deg, #E0F2E7 0%, #F1F8E9 100%);
    --nutricion-gradient-hero: linear-gradient(135deg, #00695C 0%, #00B4A6 50%, #E0F2E7 100%);
    --nutricion-shadow: rgba(0, 180, 166, 0.3);
    --nutricion-shadow-strong: rgba(0, 105, 92, 0.4);

    /* Línea de Belleza - Elegancia y Lujo */
    --belleza-primary: #E91E63;
    --belleza-secondary: #F48FB1;
    --belleza-accent: #FCE4EC;
    --belleza-rose: #C2185B;
    --belleza-gold: #FF6F00;
    --belleza-light: #FFF0F3;
    --belleza-text-primary: #880E4F;
    --belleza-text-secondary: #AD1457;
    --belleza-gradient-main: linear-gradient(135deg, #E91E63 0%, #F48FB1 100%);
    --belleza-gradient-soft: linear-gradient(135deg, #FFF0F3 0%, #FCE4EC 100%);
    --belleza-gradient-hero: linear-gradient(135deg, #880E4F 0%, #E91E63 50%, #FFF0F3 100%);
    --belleza-shadow: rgba(233, 30, 99, 0.3);
    --belleza-shadow-strong: rgba(136, 14, 79, 0.4);
}

/* ============================================
   RESET Y CONFIGURACIÓN BASE
============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--tienda-fuente-cuerpo);
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ============================================
   HERO SECTION - NUEVO
============================================ */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: var(--navy-gradient);
    overflow: hidden;
    margin-top: -20px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 31, 54, 0.5), rgba(26, 31, 54, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-gold);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: var(--tienda-fuente-titulo);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Elegant Button */
.btn-elegant {
    background: var(--gold-gradient);
    border: none;
    color: var(--dark-navy);
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-elegant:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    color: var(--dark-navy);
}

.btn-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-elegant:hover::before {
    left: 100%;
}

/* ============================================
   BARRA DE CARACTERÍSTICAS - NUEVO
============================================ */
.features-bar {
    background: white;
    padding: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.feature-item {
    text-align: center;
    padding: 0 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--dark-navy);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 5px;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--charcoal);
    opacity: 0.8;
}

/* ============================================
   CONTENEDOR PRINCIPAL MEJORADO
============================================ */
.tienda-contenedor-principal {
    background-color: var(--pearl);
    min-height: 100vh;
    padding: 60px 0;
}

/* ============================================
   ENCABEZADO PREMIUM MEJORADO
============================================ */
.tienda-encabezado {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.tienda-titulo-principal {
    font-family: var(--tienda-fuente-titulo);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--dark-navy);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.tienda-titulo-principal::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.tienda-subtitulo {
    font-size: 1.2rem;
    color: var(--charcoal);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   BARRA LATERAL PREMIUM MEJORADA - FIJA
============================================ */
.tienda-barra-lateral {
    position: sticky;
    top: 140px;
    height: fit-content;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    align-self: flex-start;
    margin-top: 20px;
}

/* Scrollbar personalizado para la barra lateral */
.tienda-barra-lateral::-webkit-scrollbar {
    width: 6px;
}

.tienda-barra-lateral::-webkit-scrollbar-track {
    background: transparent;
}

.tienda-barra-lateral::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 10px;
}

.tienda-barra-lateral::-webkit-scrollbar-thumb:hover {
    background: var(--dark-navy);
}

.tienda-card-filtro {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--soft-shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all var(--tienda-transicion-media);
}

.tienda-card-filtro:hover {
    box-shadow: 0 15px 40px rgba(26, 31, 54, 0.15);
    transform: translateY(-2px);
}

.tienda-card-encabezado {
    background: var(--navy-gradient);
    color: white;
    padding: 16px 20px;
    border: none;
}

.tienda-card-titulo {
    font-family: var(--tienda-fuente-titulo);
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.tienda-card-titulo i {
    color: var(--secondary-gold);
}

/* Lista de categorías mejorada */
.tienda-lista-categorias {
    border: none;
}

.tienda-item-categoria {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0;
    transition: all var(--tienda-transicion-rapida);
}

.tienda-item-categoria:last-child {
    border-bottom: none;
}

.tienda-enlace-categoria {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 22px;
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--tienda-transicion-rapida);
    position: relative;
}

.tienda-enlace-categoria i {
    color: var(--primary-gold);
    font-size: 1.15rem;
    min-width: 20px;
    text-align: center;
}

.tienda-enlace-categoria:hover {
    color: var(--primary-gold);
    background-color: rgba(212, 175, 55, 0.05);
    padding-left: 28px;
}

.tienda-item-categoria.active .tienda-enlace-categoria {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), rgba(244, 228, 188, 0.05));
    color: var(--primary-gold);
    font-weight: 600;
}

.tienda-item-categoria.active .tienda-enlace-categoria::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold-gradient);
}

/* Filtros específicos para productos de Nutrición y Belleza */
.beneficios-grid,
.certificaciones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
}

.beneficio-opcion,
.certificacion-opcion {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all var(--tienda-transicion-rapida);
    border: 2px solid transparent;
}

.beneficio-opcion:hover,
.certificacion-opcion:hover {
    background: var(--pearl);
    border-color: var(--primary-gold);
}

.beneficio-opcion input[type="checkbox"],
.certificacion-opcion input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--primary-gold);
    transform: scale(1.2);
}

.beneficio-texto,
.certificacion-texto {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--charcoal);
}

.beneficio-texto i,
.certificacion-texto i {
    margin-right: 8px;
    color: var(--primary-gold);
    font-size: 0.9rem;
}

.beneficio-opcion:has(input:checked),
.certificacion-opcion:has(input:checked) {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), rgba(244, 228, 188, 0.05));
    border-color: var(--primary-gold);
}

.beneficio-opcion:has(input:checked) .beneficio-texto,
.certificacion-opcion:has(input:checked) .certificacion-texto {
    color: var(--primary-gold);
    font-weight: 600;
}

/* Herramientas Interactivas */
.herramientas-interactivas {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 20px;
}

.herramienta-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all var(--tienda-transicion-rapida);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    border: 2px solid transparent;
}

.herramienta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-gold);
}

.herramienta-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.herramienta-card h4 {
    color: var(--charcoal);
    margin-bottom: 15px;
    font-weight: 600;
}

.herramienta-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-herramienta {
    background: var(--gold-gradient);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all var(--tienda-transicion-rapida);
    cursor: pointer;
}

.btn-herramienta:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Sección Educativa */
.seccion-educativa {
    margin: 40px 0;
    padding: 30px 20px;
}

.seccion-educativa h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--charcoal);
    font-weight: 700;
}

.consejo-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    transition: all var(--tienda-transicion-rapida);
    border-left: 5px solid;
}

.consejo-nutricion {
    border-left-color: #4CAF50;
}

.consejo-belleza {
    border-left-color: #E91E63;
}

.consejo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.consejo-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.consejo-header i {
    font-size: 18px;
    margin-right: 10px;
}

.consejo-nutricion .consejo-header i {
    color: #4CAF50;
}

.consejo-belleza .consejo-header i {
    color: #E91E63;
}

.consejo-header span {
    font-weight: 600;
    color: var(--charcoal);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.consejo-card h5 {
    color: var(--charcoal);
    margin-bottom: 10px;
    font-weight: 600;
}

.consejo-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.consejo-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--tienda-transicion-rapida);
}

.consejo-link:hover {
    color: var(--secondary-gold);
    text-decoration: none;
}

.consejo-link i {
    margin-left: 5px;
    transition: all var(--tienda-transicion-rapida);
}

.consejo-link:hover i {
    transform: translateX(3px);
}

/* Sección de Testimonios */
.seccion-testimonios {
    margin: 50px 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
}

.seccion-testimonios h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--charcoal);
    font-weight: 700;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.testimonio-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all var(--tienda-transicion-rapida);
    border-top: 4px solid;
    position: relative;
}

.testimonio-nutricion {
    border-top-color: #4CAF50;
}

.testimonio-belleza {
    border-top-color: #E91E63;
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.testimonio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.cliente-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.cliente-avatar {
    margin-right: 15px;
}

.cliente-datos h5 {
    margin: 0 0 5px 0;
    color: var(--charcoal);
    font-weight: 600;
    font-size: 16px;
}

.estrellas {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 3px;
}

.tiempo-uso {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.linea-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nutricion-badge {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.belleza-badge {
    background: rgba(233, 30, 99, 0.1);
    color: #E91E63;
}

.testimonio-card p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
    font-size: 14px;
}

.producto-resenado {
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.producto-resenado small {
    color: #666;
    font-weight: 500;
}

.ver-mas-testimonios {
    text-align: center;
}

.btn-ver-mas-testimonios {
    background: var(--gold-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all var(--tienda-transicion-rapida);
    cursor: pointer;
}

.btn-ver-mas-testimonios:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-ver-mas-testimonios i {
    margin-left: 8px;
    transition: all var(--tienda-transicion-rapida);
}

.btn-ver-mas-testimonios:hover i {
    transform: translateX(5px);
}

/* Responsive para testimonios */
@media (max-width: 768px) {
    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .testimonio-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .linea-badge {
        margin-top: 10px;
    }

    .cliente-info {
        margin-bottom: 10px;
    }
}

/* Búsqueda mejorada */
.tienda-formulario-busqueda {
    padding: 20px;
}

.tienda-input-busqueda {
    border: 2px solid transparent;
    background: var(--pearl);
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all var(--tienda-transicion-rapida);
}

.tienda-input-busqueda:focus {
    border-color: var(--primary-gold);
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    outline: none;
}

.tienda-boton-busqueda {
    background: var(--gold-gradient);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: var(--dark-navy);
    transition: all var(--tienda-transicion-rapida);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tienda-boton-busqueda:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* ============================================
   BANNER DE OFERTAS - MEJORADO CON ALTO CONTRASTE
============================================ */
.banner-ofertas {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FDC830 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

.banner-ofertas::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.banner-contenido {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.oferta-icono {
    font-size: 3rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.oferta-texto {
    flex: 1;
}

.oferta-texto h3 {
    font-family: var(--tienda-fuente-titulo);
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #FFFFFF;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.oferta-texto p {
    font-size: 1rem;
    color: #FFFFFF;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    margin: 0;
}

.oferta-contador {
    display: flex;
    gap: 12px;
}

.contador-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 1);
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contador-numero {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FF6B35;
    line-height: 1;
    text-shadow: none;
}

.contador-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #555;
    font-weight: 600;
    text-shadow: none;
    margin-top: 4px;
}

/* ============================================
   TARJETAS DE PRODUCTO PREMIUM MEJORADAS
============================================ */
.tienda-grid-productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.tienda-card-producto {
    background: white;
    border: none;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06), 0 4px 15px rgba(0,0,0,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tienda-card-producto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.tienda-card-producto:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0,0,0,0.15),
        0 15px 35px rgba(0,0,0,0.1),
        0 5px 15px rgba(0,0,0,0.08);
}

.tienda-card-producto:hover::before {
    opacity: 1;
}

/* Efectos específicos para tema nutrición */
body.tema-nutricion .tienda-card-producto:hover {
    box-shadow:
        0 25px 50px var(--nutricion-shadow),
        0 15px 35px rgba(0, 180, 166, 0.2),
        0 5px 15px rgba(0, 105, 92, 0.1);
    border-color: var(--nutricion-primary);
}

/* Efectos específicos para tema belleza */
body.tema-belleza .tienda-card-producto:hover {
    box-shadow:
        0 25px 50px var(--belleza-shadow),
        0 15px 35px rgba(233, 30, 99, 0.2),
        0 5px 15px rgba(136, 14, 79, 0.1);
    border-color: var(--belleza-primary);
}

/* Badge de descuento */
.producto-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.badge-new {
    background: var(--gold-gradient);
    color: var(--dark-navy);
}

.badge-sale {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* Contenedor de imagen mejorado */
.tienda-contenedor-imagen {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f8f8, #ffffff);
}

.tienda-imagen-producto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--tienda-transicion-lenta);
}

.tienda-card-producto:hover .tienda-imagen-producto {
    transform: scale(1.15);
}

.tienda-card-producto:hover .tienda-overlay-acciones {
    opacity: 1;
}

/* Overlay mejorado - ACTIVO */
.tienda-overlay-acciones {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.overlay-btn {
    background: white;
    color: var(--dark-navy);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tienda-card-producto:hover .overlay-btn {
    opacity: 1;
    transform: translateY(0);
}

.tienda-card-producto:hover .overlay-btn:first-child {
    transition-delay: 0.1s;
}

.tienda-card-producto:hover .overlay-btn:last-child {
    transition-delay: 0.2s;
}

.overlay-btn:hover {
    background: var(--gold-gradient);
    color: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Contenido de la tarjeta mejorado */
.tienda-contenido-card {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tienda-nombre-producto {
    font-family: var(--tienda-fuente-titulo);
    font-size: 1.3rem;
    color: var(--dark-navy);
    margin-bottom: 10px;
    line-height: 1.3;
}

.tienda-descripcion-producto {
    color: var(--charcoal);
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tienda-info-producto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tienda-etiquetas {
    display: flex;
    gap: 8px;
}

.tienda-etiqueta {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tienda-precio {
    font-family: var(--tienda-fuente-titulo);
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-weight: 700;
}

/* Acciones de la tarjeta mejoradas */
.tienda-acciones-card {
    padding: 20px 25px;
    background: rgba(244, 228, 188, 0.1);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    gap: 10px;
}

.tienda-boton-detalle {
    flex: 1;
    padding: 10px 20px;
    border: 2px solid var(--dark-navy);
    background: transparent;
    color: var(--dark-navy);
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--tienda-transicion-rapida);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tienda-boton-detalle:hover {
    background: var(--dark-navy);
    color: white;
    transform: translateY(-2px);
}

.tienda-boton-carrito {
    flex: 1;
    padding: 10px 20px;
    background: var(--gold-gradient);
    border: none;
    color: var(--dark-navy);
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--tienda-transicion-rapida);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tienda-boton-carrito:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* ============================================
   MODAL DEL CARRITO - DISEÑO MEJORADO
============================================ */
.carrito-header {
    background: var(--navy-gradient);
    color: white;
    border: none;
    padding: 25px 30px;
}

.carrito-header .modal-title {
    font-family: var(--tienda-fuente-titulo);
    font-size: 1.5rem;
    color: white;
}

.carrito-header .modal-title i {
    color: var(--secondary-gold);
}

.carrito-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.carrito-header .btn-close:hover {
    opacity: 0.75;
}

.carrito-items-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.carrito-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--silver);
    background: white;
    transition: background-color 0.2s ease;
    gap: 20px;
}

.carrito-item:hover {
    background-color: var(--pearl);
}

.carrito-item-imagen {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.carrito-item-info {
    flex: 1;
}

.carrito-item-nombre {
    font-family: var(--tienda-fuente-titulo);
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-navy);
    line-height: 1.3;
}

.carrito-item-detalles {
    font-size: 0.9rem;
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: 15px;
}

.carrito-item-precio-unitario {
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.carrito-item-precio-unitario strong {
    color: var(--primary-gold);
}

.carrito-item-controles {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    min-width: 150px;
}

.cantidad-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--pearl);
    border-radius: 30px;
    padding: 5px;
}

.cantidad-btn {
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--dark-navy);
}

.cantidad-btn:hover {
    background-color: white;
}

.cantidad-valor {
    width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-navy);
}

.carrito-item-subtotal {
    text-align: right;
}

.carrito-item-subtotal-label {
    font-size: 0.85rem;
    color: var(--charcoal);
    opacity: 0.7;
}

.carrito-item-subtotal-valor {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.carrito-item-acciones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.btn-eliminar-item {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 50%;
}

.btn-eliminar-item:hover {
    background-color: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}

.carrito-resumen {
    padding: 20px 30px;
    background: white;
    border-top: 1px solid var(--silver);
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.resumen-item.total {
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 10px;
}

.btn-pagar {
    background: var(--gold-gradient);
    border: none;
    color: var(--dark-navy);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.btn-pagar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
    }

    .modal-content {
        min-height: 100vh;
        border-radius: 0 !important;
        display: flex;
        flex-direction: column;
    }

    .carrito-header {
        padding: 20px;
    }

    .carrito-header .modal-title {
        font-size: 1.2rem;
    }

    .modal-body {
        flex: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .carrito-items-container {
        flex: 1;
        max-height: none;
        overflow-y: auto;
    }

    .carrito-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 15px;
    }

    .carrito-item-imagen {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .carrito-item-info {
        width: 100%;
    }

    .carrito-item-controles {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .carrito-item-acciones {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .carrito-resumen {
        position: sticky;
        bottom: 0;
        background: white;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
        z-index: 10;
    }

    .carrito-footer {
        flex-direction: column;
        gap: 10px;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    }

    .carrito-footer button {
        width: 100%;
        margin: 0;
    }
}

/* ============================================
   NEWSLETTER SECTION - NUEVO
============================================ */
.newsletter-section {
    background: var(--navy-gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.newsletter-title {
    font-family: var(--tienda-fuente-titulo);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.newsletter-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.newsletter-btn {
    padding: 15px 40px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 50px;
    color: var(--dark-navy);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* ============================================
   TESTIMONIOS - NUEVO
============================================ */
.testimonials-section {
    padding: 80px 0;
    background: white;
}

.testimonial-card {
    background: var(--pearl);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    margin: 0 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all var(--tienda-transicion-media);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--charcoal);
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-navy);
    font-size: 1.1rem;
}

.testimonial-role {
    color: var(--primary-gold);
    font-size: 0.9rem;
}

/* Ocultar carrito del header del template original */
.cart-dropdown {
    display: none !important;
}

/* ============================================
   FIX SUPER AGRESIVO: BOTÓN DEBE FUNCIONAR SÍ O SÍ
============================================ */

/* Eliminar overlays y pseudoelementos que puedan bloquear */
.tienda-card-producto::before,
.tienda-card-producto::after,
.tienda-info-producto::before,
.tienda-info-producto::after,
.tienda-acciones-producto::before,
.tienda-acciones-producto::after {
    content: none !important;
    display: none !important;
}

/* Todo debe permitir clicks */
.tienda-card-producto,
.tienda-card-producto *,
.tienda-info-producto,
.tienda-info-producto * {
    pointer-events: auto !important;
}

.tienda-acciones-producto {
    position: relative !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    isolation: isolate !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.tienda-boton-principal {
    /* Reset completo */
    all: unset !important;

    /* Estilos base */
    display: inline-block !important;
    padding: 14px 32px !important;
    text-align: center !important;

    /* Degradado Verde-Amarillo (Nutrición por defecto) */
    background: linear-gradient(135deg, #4ade80 0%, #facc15 100%) !important;
    color: #ffffff !important;

    /* Tipografía */
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-family: inherit !important;
    line-height: 1.5 !important;

    /* Forma */
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4) !important;

    /* Interactividad */
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;

    /* Posicionamiento */
    position: relative !important;
    z-index: 999999 !important;

    /* Transición */
    transition: all 0.3s ease !important;
}

.tienda-boton-principal:hover {
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.6) !important;
}

.tienda-boton-principal:active {
    transform: translateY(0px) !important;
    background: linear-gradient(135deg, #4ade80 0%, #facc15 100%) !important;
}

.tienda-boton-principal * {
    pointer-events: none !important;
}

/* Botones cuando el tema es BELLEZA */
body.tema-belleza .tienda-boton-principal {
    background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%) !important;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4) !important;
}

body.tema-belleza .tienda-boton-principal:hover {
    background: linear-gradient(135deg, #d946ef 0%, #c026d3 100%) !important;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6) !important;
}

body.tema-belleza .tienda-boton-principal:active {
    background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%) !important;
}

/* Botones cuando el tema es NUTRICIÓN (mantener verde-amarillo) */
body.tema-nutricion .tienda-boton-principal {
    background: linear-gradient(135deg, #4ade80 0%, #facc15 100%) !important;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4) !important;
}

body.tema-nutricion .tienda-boton-principal:hover {
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%) !important;
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.6) !important;
}

body.tema-nutricion .tienda-boton-principal:active {
    background: linear-gradient(135deg, #4ade80 0%, #facc15 100%) !important;
}

/* ============================================
   BOTÓN FLOTANTE MEJORADO
============================================ */
.tienda-carrito-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4ade80 0%, #facc15 100%);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.4);
    transition: all 0.3s ease;
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tienda-carrito-flotante:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(74, 222, 128, 0.6);
}

/* Carrito flotante tema BELLEZA (Rosa-Fucsia) */
body.tema-belleza .tienda-carrito-flotante {
    background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%) !important;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4) !important;
}

body.tema-belleza .tienda-carrito-flotante:hover {
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.6) !important;
}

/* Carrito flotante tema NUTRICIÓN (Verde-Amarillo) */
body.tema-nutricion .tienda-carrito-flotante {
    background: linear-gradient(135deg, #4ade80 0%, #facc15 100%) !important;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.4) !important;
}

body.tema-nutricion .tienda-carrito-flotante:hover {
    box-shadow: 0 15px 40px rgba(74, 222, 128, 0.6) !important;
}

.tienda-carrito-flotante .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    border: 3px solid white;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ============================================
   ANIMACIONES Y EFECTOS
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pearl);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-navy);
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .tienda-grid-productos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .tienda-contenedor-imagen {
        height: 300px;
    }

    .tienda-carrito-flotante {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .banner-contenido {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    /* Modal del carrito en móviles */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
    }

    .modal-content {
        min-height: 100vh;
        border-radius: 0 !important;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        flex: 1;
        overflow-y: auto;
    }

    .carrito-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 15px;
    }

    .carrito-item-imagen {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .carrito-item-info {
        width: 100%;
    }

    .carrito-item-controles {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
    }

    .cantidad-control {
        order: 2;
    }

    .btn-eliminar-item {
        order: 1;
        align-self: flex-end;
    }

    .carrito-items-container {
        max-height: calc(100vh - 350px);
        padding: 10px;
    }

    .carrito-resumen {
        position: sticky;
        bottom: 0;
        background: white;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
        z-index: 10;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
        position: sticky;
        bottom: 0;
        background: white;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    }

    .modal-footer button {
        width: 100%;
        margin: 0;
    }

    /* Ajustes de tipografía */
    .tienda-titulo-principal {
        font-size: 2rem;
    }

    .feature-item {
        margin-bottom: 20px;
    }

    /* Barra lateral en móviles */
    .tienda-barra-lateral {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    /* Filtros colapsables en móviles */
    .tienda-card-filtro {
        margin-bottom: 15px;
    }

    .tienda-card-encabezado {
        cursor: pointer;
        position: relative;
    }

    .tienda-card-encabezado::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

    .tienda-card-filtro.collapsed .tienda-card-encabezado::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Precio y acciones en móviles */
    .tienda-info-producto {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tienda-precio {
        margin-top: 5px;
    }

    .tienda-acciones-card {
        flex-direction: column;
        gap: 10px;
    }

    .tienda-boton-detalle,
    .tienda-boton-carrito {
        width: 100%;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .tienda-grid-productos {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-dialog {
        max-width: 90%;
    }
}

/* Media query específica para móviles pequeños */
@media (max-width: 480px) {
    .tienda-titulo-principal {
        font-size: 1.8rem;
    }

    .tienda-subtitulo {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-elegant {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* Tarjetas de producto en móviles */
    .tienda-card-producto {
        border-radius: 15px;
    }

    .tienda-contenedor-imagen {
        height: 250px;
    }

    .tienda-nombre-producto {
        font-size: 1.1rem;
    }

    .tienda-precio {
        font-size: 1.3rem;
    }

    /* Features bar responsive */
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-text {
        font-size: 0.85rem;
    }

    /* Modal del carrito en móviles pequeños */
    .modal-header {
        padding: 20px !important;
    }

    .modal-title {
        font-size: 1.2rem !important;
    }

    .carrito-item {
        padding: 12px;
    }

    .carrito-item-imagen {
        width: 100%;
        height: auto;
        max-height: 150px;
    }

    .carrito-item-nombre {
        font-size: 1rem;
    }

    .carrito-item-detalles {
        font-size: 0.85rem;
    }

    .cantidad-control {
        transform: scale(0.9);
    }

    .carrito-resumen {
        padding: 15px;
    }

    .resumen-item {
        font-size: 0.95rem;
    }

    .resumen-item.total {
        font-size: 1.1rem;
    }

    /* Newsletter en móviles */
    .newsletter-title {
        font-size: 1.8rem;
    }

    .newsletter-subtitle {
        font-size: 1rem;
    }

    .newsletter-input,
    .newsletter-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    /* Testimonials en móviles */
    .testimonial-card {
        padding: 25px;
        margin: 0 5px;
    }

    .quote-icon {
        font-size: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

/* ============================================
   ESTILOS PARA SELECTOR DE LÍNEAS MEJORADO
============================================ */
.lineas-selector-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.lineas-selector-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 180, 166, 0.1), transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(233, 30, 99, 0.1), transparent 60%);
    animation: float 8s ease-in-out infinite;
}

.lineas-selector-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.lineas-titulo {
    font-family: var(--tienda-fuente-titulo);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00B4A6, #E91E63, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: none;
}

.lineas-subtitulo {
    font-size: 1.2rem;
    color: #2C2C2C;
    margin-bottom: 50px;
    font-weight: 500;
}

.lineas-toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.lineas-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 700px;
    width: 100%;
}

.lineas-toggle input[type="radio"] {
    display: none;
}

.linea-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    overflow: hidden;
}

.linea-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    z-index: 1;
    transition: opacity 0.4s ease;
}

.linea-option > * {
    position: relative;
    z-index: 2;
}

.linea-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.linea-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.linea-content {
    width: 100%;
}

.linea-content h4 {
    font-family: var(--tienda-fuente-titulo);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    transition: all 0.4s ease;
}

.linea-content p {
    font-size: 1rem;
    margin: 0 0 15px 0;
    opacity: 0.8;
    transition: all 0.4s ease;
    font-weight: 500;
}

.linea-features {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Estados por defecto */
.linea-option.nutricion {
    background: linear-gradient(135deg, rgba(0, 180, 166, 0.05), rgba(76, 175, 80, 0.05));
}

.linea-option.nutricion .linea-icon {
    background: var(--nutricion-gradient-soft);
    color: var(--nutricion-primary);
    border: 2px solid var(--nutricion-primary);
}

.linea-option.nutricion .linea-content h4 {
    color: var(--nutricion-text-primary);
}

.linea-option.nutricion .linea-content p {
    color: var(--nutricion-text-secondary);
}

.linea-option.belleza {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05), rgba(244, 143, 177, 0.05));
}

.linea-option.belleza .linea-icon {
    background: var(--belleza-gradient-soft);
    color: var(--belleza-primary);
    border: 2px solid var(--belleza-primary);
}

.linea-option.belleza .linea-content h4 {
    color: var(--belleza-text-primary);
}

.linea-option.belleza .linea-content p {
    color: var(--belleza-text-secondary);
}

/* Estados hover */
.linea-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.linea-option.nutricion:hover {
    border-color: var(--nutricion-primary);
    background: linear-gradient(135deg, rgba(0, 180, 166, 0.1), rgba(76, 175, 80, 0.1));
}

.linea-option.belleza:hover {
    border-color: var(--belleza-primary);
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(244, 143, 177, 0.1));
}

.linea-option:hover .linea-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Estados activos */
.lineas-toggle input[type="radio"]:checked + .linea-option.nutricion {
    background: var(--nutricion-gradient-main);
    border-color: var(--nutricion-primary);
    box-shadow: 0 20px 60px var(--nutricion-shadow-strong);
    transform: translateY(-8px);
}

.lineas-toggle input[type="radio"]:checked + .linea-option.nutricion::before {
    opacity: 0.1;
}

.lineas-toggle input[type="radio"]:checked + .linea-option.nutricion .linea-icon {
    background: white;
    color: var(--nutricion-primary);
    transform: scale(1.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lineas-toggle input[type="radio"]:checked + .linea-option.nutricion .linea-content h4,
.lineas-toggle input[type="radio"]:checked + .linea-option.nutricion .linea-content p {
    color: white;
}

.lineas-toggle input[type="radio"]:checked + .linea-option.belleza {
    background: var(--belleza-gradient-main);
    border-color: var(--belleza-primary);
    box-shadow: 0 20px 60px var(--belleza-shadow-strong);
    transform: translateY(-8px);
}

.lineas-toggle input[type="radio"]:checked + .linea-option.belleza::before {
    opacity: 0.1;
}

.lineas-toggle input[type="radio"]:checked + .linea-option.belleza .linea-icon {
    background: white;
    color: var(--belleza-primary);
    transform: scale(1.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lineas-toggle input[type="radio"]:checked + .linea-option.belleza .linea-content h4,
.lineas-toggle input[type="radio"]:checked + .linea-option.belleza .linea-content p {
    color: white;
}

/* Animación para feature dots */
.lineas-toggle input[type="radio"]:checked + .linea-option .feature-dot {
    background: white !important;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ============================================
   TEMAS DINÁMICOS - LÍNEA DE NUTRICIÓN
============================================ */
body.tema-nutricion {
    --primary-gold: var(--nutricion-primary);
    --secondary-gold: var(--nutricion-secondary);
    --accent-rose: var(--nutricion-accent);
    --gold-gradient: var(--nutricion-gradient-main);
    --navy-gradient: var(--nutricion-gradient-soft);
    --charcoal: var(--nutricion-text-primary);
}

body.tema-nutricion .carrito-header {
    color: var(--nutricion-primary);
}

body.tema-nutricion .carrito-header .modal-title {
    color: var(--nutricion-primary);
}

body.tema-nutricion .carrito-header .btn-close {
    filter: none;
    opacity: 1;
}

body.tema-nutricion .carrito-header .modal-title i {
    color: var(--nutricion-secondary);
}

body.tema-nutricion .hero-section {
    background: var(--nutricion-gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

body.tema-nutricion .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

body.tema-nutricion .hero-title,
body.tema-nutricion .hero-text,
body.tema-nutricion .hero-subtitle {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

body.tema-nutricion .btn-elegant {
    background: var(--nutricion-gradient-main);
    border-color: var(--nutricion-primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--nutricion-shadow);
}

body.tema-nutricion .btn-elegant:hover {
    background: linear-gradient(135deg, var(--nutricion-dark) 0%, var(--nutricion-primary) 100%);
    box-shadow: 0 8px 25px var(--nutricion-shadow-strong);
    transform: translateY(-3px);
    color: white;
}

body.tema-nutricion .tienda-card-encabezado {
    background: var(--nutricion-gradient-main);
    color: white;
}

body.tema-nutricion .tienda-card-titulo {
    color: white;
    font-weight: 600;
}

body.tema-nutricion .feature-icon {
    background: var(--nutricion-gradient-soft);
    color: var(--nutricion-primary);
    border: 2px solid var(--nutricion-primary);
    position: relative;
    overflow: hidden;
}

body.tema-nutricion .feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--nutricion-primary) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

body.tema-nutricion .feature-icon:hover::before {
    width: 100px;
    height: 100px;
}

body.tema-nutricion .feature-title {
    color: var(--nutricion-text-primary);
    font-weight: 600;
}

body.tema-nutricion .feature-text {
    color: var(--nutricion-text-secondary);
}

body.tema-nutricion .tienda-titulo-principal {
    color: var(--nutricion-text-primary);
}

body.tema-nutricion .tienda-subtitulo {
    color: var(--nutricion-text-secondary);
}

body.tema-nutricion .lineas-selector-section {
    background: var(--nutricion-gradient-soft);
    position: relative;
}

body.tema-nutricion .lineas-selector-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 180, 166, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(76, 175, 80, 0.15), transparent 40%),
        radial-gradient(circle at 60% 20%, rgba(129, 199, 132, 0.1), transparent 30%);
    animation: drift 15s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* ============================================
   TEMAS DINÁMICOS - LÍNEA DE BELLEZA
============================================ */
body.tema-belleza {
    --primary-gold: var(--belleza-primary);
    --secondary-gold: var(--belleza-secondary);
    --accent-rose: var(--belleza-accent);
    --gold-gradient: var(--belleza-gradient-main);
    --navy-gradient: var(--belleza-gradient-soft);
    --charcoal: var(--belleza-text-primary);
}

body.tema-belleza .carrito-header {
    color: var(--belleza-primary);
}

body.tema-belleza .carrito-header .modal-title {
    color: var(--belleza-primary);
}

body.tema-belleza .carrito-header .btn-close {
    filter: none;
    opacity: 1;
}

body.tema-belleza .carrito-header .modal-title i {
    color: var(--belleza-secondary);
}

body.tema-belleza .hero-section {
    background: var(--belleza-gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

body.tema-belleza .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(3px 3px at 25px 35px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 50px 75px, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(1px 1px at 85px 45px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 120px 85px, rgba(255, 215, 0, 0.2), transparent),
        radial-gradient(1px 1px at 155px 35px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 180px 120px;
    animation: glitter 15s linear infinite;
}

@keyframes glitter {
    0% { transform: translateX(0px) rotate(0deg); }
    100% { transform: translateX(-180px) rotate(360deg); }
}

body.tema-belleza .hero-title,
body.tema-belleza .hero-text,
body.tema-belleza .hero-subtitle {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

body.tema-belleza .btn-elegant {
    background: var(--belleza-gradient-main);
    border-color: var(--belleza-primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--belleza-shadow);
}

body.tema-belleza .btn-elegant:hover {
    background: linear-gradient(135deg, var(--belleza-rose) 0%, var(--belleza-primary) 100%);
    box-shadow: 0 8px 25px var(--belleza-shadow-strong);
    transform: translateY(-3px);
    color: white;
}

body.tema-belleza .tienda-card-encabezado {
    background: var(--belleza-gradient-main);
    color: white;
}

body.tema-belleza .tienda-card-titulo {
    color: white;
    font-weight: 600;
}

body.tema-belleza .feature-icon {
    background: var(--belleza-gradient-soft);
    color: var(--belleza-primary);
    border: 2px solid var(--belleza-primary);
    position: relative;
    overflow: hidden;
}

body.tema-belleza .feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--belleza-primary) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

body.tema-belleza .feature-icon:hover::before {
    width: 100px;
    height: 100px;
}

body.tema-belleza .feature-title {
    color: var(--belleza-text-primary);
    font-weight: 600;
}

body.tema-belleza .feature-text {
    color: var(--belleza-text-secondary);
}

body.tema-belleza .tienda-titulo-principal {
    color: var(--belleza-text-primary);
}

body.tema-belleza .tienda-subtitulo {
    color: var(--belleza-text-secondary);
}

body.tema-belleza .lineas-selector-section {
    background: var(--belleza-gradient-soft);
    position: relative;
}

body.tema-belleza .lineas-selector-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(233, 30, 99, 0.15), transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(244, 143, 177, 0.15), transparent 40%),
        radial-gradient(circle at 50% 60%, rgba(252, 228, 236, 0.1), transparent 30%);
    animation: shimmer 12s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.05) rotate(2deg); opacity: 1; }
}

/* ============================================
   RESPONSIVE DESIGN PARA SELECTOR DE LÍNEAS
============================================ */
@media (max-width: 768px) {
    .lineas-titulo {
        font-size: 2.2rem;
    }

    .lineas-toggle {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }

    .linea-option {
        padding: 30px 25px;
    }

    .linea-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .linea-content h4 {
        font-size: 1.4rem;
    }

    .linea-content p {
        font-size: 0.95rem;
    }

    .lineas-selector-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .lineas-titulo {
        font-size: 1.8rem;
    }

    .lineas-subtitulo {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .linea-option {
        padding: 15px;
        gap: 10px;
    }

    .linea-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .linea-content h4 {
        font-size: 1.1rem;
    }

    .linea-content p {
        font-size: 0.85rem;
    }
}

/* ============================================
   ESTILOS PARA BADGES DE LÍNEAS DE PRODUCTO
============================================ */
.producto-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-nutricion {
    background: var(--nutricion-gradient-main);
    color: white;
    border: 2px solid var(--nutricion-primary);
    box-shadow: 0 4px 15px var(--nutricion-shadow);
    position: relative;
    overflow: hidden;
}

.badge-nutricion::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.badge-belleza {
    background: var(--belleza-gradient-main);
    color: white;
    border: 2px solid var(--belleza-primary);
    box-shadow: 0 4px 15px var(--belleza-shadow);
    position: relative;
    overflow: hidden;
}

.badge-belleza::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite 1.5s;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.badge-nutricion i,
.badge-belleza i {
    margin-right: 5px;
    font-size: 0.8rem;
}

/* Animaciones específicas para badges de línea */
.badge-nutricion:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--nutricion-shadow);
}

.badge-belleza:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--belleza-shadow);
}

/* Responsive para badges */
@media (max-width: 768px) {
    .producto-badges {
        top: 10px;
        left: 10px;
        gap: 6px;
    }

    .badge-nutricion,
    .badge-belleza {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .badge-nutricion i,
    .badge-belleza i {
        margin-right: 3px;
        font-size: 0.7rem;
    }
}

/* ============================================
   OPTIMIZACIONES RESPONSIVE ADICIONALES
============================================ */

/* Tablet - Mejoras específicas */
@media (max-width: 992px) {
    .tienda-grid-productos {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .lineas-selector-section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }
}

/* Mobile - Optimizaciones específicas para líneas */
@media (max-width: 576px) {
    .tienda-grid-productos {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .btn-elegant {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    /* Ajustes específicos para filtros */
    .tienda-card-filtro {
        margin-bottom: 20px;
    }

    .tienda-enlace-categoria {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .tienda-enlace-categoria i {
        font-size: 1rem;
    }

    /* Productos en mobile */
    .tienda-card-producto {
        margin-bottom: 15px;
    }

    .tienda-imagen-producto {
        height: 250px;
    }

    .tienda-titulo-producto {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .tienda-precio-actual {
        font-size: 1.3rem;
    }

    /* Banner de ofertas responsive */
    .banner-ofertas {
        padding: 20px;
        margin: 20px 0;
    }

    .banner-contenido {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .oferta-icono {
        font-size: 2.5rem;
    }

    .oferta-texto h3 {
        font-size: 1.4rem;
        color: #FFFFFF;
    }

    .oferta-texto p {
        font-size: 0.9rem;
        color: #FFFFFF;
    }

    .oferta-contador {
        justify-content: center;
        gap: 10px;
    }

    .contador-item {
        padding: 10px 15px;
    }

    .contador-numero {
        font-size: 1.5rem;
    }

    .contador-label {
        font-size: 0.7rem;
    }

    .contador-numero {
        font-size: 1.2rem;
        color: var(--secondary-gold);
        text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    }
}

/* Extra Small devices - Ajustes finales */
@media (max-width: 360px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .lineas-titulo {
        font-size: 1.6rem;
    }

    .tienda-imagen-producto {
        height: 200px;
    }

    .features-bar .feature-item {
        text-align: center;
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 0.9rem;
    }

    .feature-text {
        font-size: 0.8rem;
    }
}

/* ============================================
   ANIMACIONES EXCLUSIVAS PREMIUM
============================================ */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes sparkle {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
    100% { opacity: 0; transform: scale(0) rotate(360deg); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Notificaciones premium */
.notificacion-premium {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    padding: 20px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notificacion-premium.show {
    transform: translateX(0);
    animation: slideInRight 0.5s ease-out;
}

.notificacion-premium i {
    font-size: 24px;
    animation: pulse 1s infinite;
}

/* Badge animado del carrito */
.tienda-carrito-flotante .badge {
    animation: pulse 0.5s ease-out;
}

.tienda-carrito-flotante.shake {
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-5deg); }
    20%, 40%, 60%, 80% { transform: rotate(5deg); }
}

/* Loading spinner elegante */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: 9999;
    display: none;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--pearl);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover effect en productos mejorado */
.tienda-card-producto:hover {
    animation: float 3s ease-in-out infinite;
}

/* Glow effect para badges */
.producto-badge {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px -10px var(--primary-gold); }
    to { box-shadow: 0 0 20px 5px var(--primary-gold); }
}

/* Botón de favoritos animado */
.btn-favorito i {
    transition: all 0.3s ease;
}

.btn-favorito:hover i {
    transform: scale(1.3);
    color: #e74c3c;
}

.btn-favorito i.fas {
    animation: heartBeat 1.5s ease-in-out;
    color: #e74c3c;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Success checkmark animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4CAF50;
}

.success-checkmark .check-icon::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 50px;
    border: solid #4CAF50;
    border-width: 0 5px 5px 0;
    transform: rotate(45deg);
    animation: checkmark 0.8s ease-in-out;
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 0;
    }
    20% {
        height: 0;
        width: 10px;
        opacity: 1;
    }
    40% {
        height: 25px;
        width: 10px;
    }
    100% {
        height: 50px;
        width: 30px;
    }
}

/* Fix para botón en modal Bootstrap */
#btn-proceder-pago {
    background: var(--gold-gradient) !important;
    border: none !important;
    color: var(--dark-navy) !important;
    padding: 12px 30px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px !important;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    cursor: pointer;
}

#btn-proceder-pago:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

/* Debugging - Asegurar que los botones sean clickeables */
.btn-agregar-carrito {
    cursor: pointer !important;
    z-index: 10;
    position: relative;
}

.btn-agregar-carrito:hover {
    filter: brightness(1.1);
}

/* ============================================
   MEJORAS PARA TARJETAS DE PRODUCTOS - TIPOGRAFÍA Y BOTONES
============================================ */

/* Mejoras tipográficas para nombres de productos */
.tienda-nombre-producto a {
    color: var(--dark-navy);
    text-decoration: none;
    font-family: var(--tienda-fuente-titulo);
    font-size: 1.4rem;
    font-weight: 700;
    transition: color 0.3s ease;
    cursor: pointer;
    line-height: 1.2;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.tienda-nombre-producto a:hover {
    color: var(--primary-gold);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Mejoras para descripción del producto */
.tienda-descripcion-corta {
    color: var(--charcoal);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mejoras para contenedor de precios */
.tienda-precio-contenedor {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tienda-precio-actual {
    font-family: var(--tienda-fuente-titulo);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-gold);
    text-shadow: 0 1px 2px rgba(212, 175, 55, 0.2);
}

.tienda-precio-original {
    font-size: 1.1rem;
    color: var(--charcoal);
    text-decoration: line-through;
    opacity: 0.6;
}

.precio-descuento {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mejoras para información de stock */
.tienda-stock-info {
    margin-bottom: 25px;
}

.stock-disponible {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stock-agotado {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stock-limitado {
    color: #f39c12;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Rediseño del botón principal "Agregar al Carrito" */
.tienda-boton-principal {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f1c40f 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 22px;
    color: var(--dark-navy);
    font-family: var(--tienda-fuente-titulo);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(212, 175, 55, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.tienda-boton-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.tienda-boton-principal:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(212, 175, 55, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f1c40f 0%, var(--primary-gold) 100%);
}

.tienda-boton-principal:hover::before {
    left: 100%;
}

.tienda-boton-principal:active {
    transform: translateY(-1px);
    box-shadow:
        0 4px 15px rgba(212, 175, 55, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.tienda-boton-principal i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.tienda-boton-principal:hover i {
    transform: scale(1.1);
}

/* Mejoras para botones de overlay */
.tienda-boton-accion {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--dark-navy);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tienda-boton-accion::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-gold);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.tienda-boton-accion:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--dark-navy);
}

.tienda-boton-accion:hover::before {
    width: 100%;
    height: 100%;
}

/* Mejoras para categoría del producto */
.tienda-categoria-producto {
    background: rgba(244, 228, 188, 0.2);
    color: var(--primary-gold);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Mejoras para badges de productos */
.producto-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.badge-nutricion {
    background: linear-gradient(135deg, var(--nutricion-primary), #00897b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 180, 166, 0.3);
}

.badge-belleza {
    background: linear-gradient(135deg, var(--belleza-primary), #ad1457);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

/* Mejoras en el espaciado de la información del producto */
.tienda-info-producto {
    padding: 18px 22px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(5px);
}

/* Mejoras para el contenedor de acciones - ÁREA DE COMPRA INFERIOR */
.tienda-acciones-producto {
    margin-top: auto;
    padding-top: 25px;
    border-top: 2px solid rgba(212, 175, 55, 0.1);
    background: linear-gradient(to bottom, transparent, rgba(244, 228, 188, 0.05));
    margin-left: -25px;
    margin-right: -25px;
    margin-bottom: -25px;
    padding-left: 25px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    padding-right: 25px;
    padding-bottom: 25px;
    border-radius: 0 0 25px 25px;
}

/* Estados responsivos mejorados */
@media (max-width: 768px) {
    .tienda-nombre-producto a {
        font-size: 1.2rem;
    }

    .tienda-precio-actual {
        font-size: 1.6rem;
    }

    .tienda-boton-principal {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .tienda-boton-accion {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ============================================
   MEJORAS ADICIONALES DE ESPACIADO Y JERARQUÍA VISUAL
============================================ */

/* Mejoras para el contenedor principal de la imagen - AMPLIADO */
.tienda-imagen-contenedor {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.tienda-imagen-producto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tienda-card-producto:hover .tienda-imagen-producto {
    transform: scale(1.15);
}

/* Mejorar la jerarquía visual de la información del producto - REORGANIZADO */
.tienda-info-producto {
    padding: 18px 22px 22px 22px;
    background: white;
    position: relative;
    border-radius: 0 0 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tienda-info-producto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), transparent, var(--primary-gold));
    opacity: 0.4;
}

/* Contenedor para información principal del producto */
.tienda-contenido-principal {
    flex-grow: 1;
    margin-bottom: 25px;
}

/* Espaciado mejorado para elementos individuales - REORGANIZADO */
.tienda-categoria-producto {
    margin-bottom: 6px;
    position: relative;
    font-size: 0.7rem;
}

.tienda-nombre-producto {
    margin-bottom: 10px;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
    line-height: 1.4;
}

.tienda-descripcion-corta {
    display: none;
}

.tienda-precio-contenedor {
    margin: 12px 0;
    padding: 0;
    border: none;
}

.tienda-stock-info {
    display: none;
}

/* Mejoras para la estructura general del grid - REORGANIZADO */
.tienda-grid-productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 10px;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.producto-contenedor {
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tienda-card-producto {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    overflow: hidden;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.tienda-card-producto:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Efectos específicos por tema */
body.tema-nutricion .tienda-card-producto:hover {
    box-shadow:
        0 20px 50px rgba(0, 180, 166, 0.15),
        0 8px 25px rgba(0, 105, 92, 0.1);
}

body.tema-belleza .tienda-card-producto:hover {
    box-shadow:
        0 20px 50px rgba(233, 30, 99, 0.15),
        0 8px 25px rgba(136, 14, 79, 0.1);
}

/* Mejoras para estados de interacción */
.tienda-card-producto .tienda-boton-accion {
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tienda-card-producto:hover .tienda-boton-accion {
    transform: translateY(0);
    opacity: 1;
}

.tienda-card-producto:hover .tienda-boton-accion:nth-child(1) {
    transition-delay: 0.1s;
}

.tienda-card-producto:hover .tienda-boton-accion:nth-child(2) {
    transition-delay: 0.2s;
}

.tienda-card-producto:hover .tienda-boton-accion:nth-child(3) {
    transition-delay: 0.3s;
}

/* Estados adicionales para botones específicos */
.btn-agregar-carrito,
.tienda-boton-principal[onclick*="agregarCarrito"] {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f1c40f 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 16px 24px !important;
    color: var(--dark-navy) !important;
    font-family: var(--tienda-fuente-titulo) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
}

.btn-agregar-carrito:hover,
.tienda-boton-principal[onclick*="agregarCarrito"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    background: linear-gradient(135deg, #f1c40f 0%, var(--primary-gold) 100%) !important;
    filter: none !important;
}

/* Responsividad mejorada */
@media (max-width: 1200px) {
    .tienda-grid-productos {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .tienda-grid-productos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .tienda-info-producto {
        padding: 25px 20px 20px 20px;
    }
}

@media (max-width: 576px) {
    .tienda-grid-productos {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 15px;
    }

    .tienda-imagen-contenedor {
        height: 350px; /* Mantener imágenes grandes en móvil */
    }

    .tienda-info-producto {
        padding: 20px;
    }

    .tienda-acciones-producto {
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: -20px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }

    .tienda-boton-accion {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .tienda-nombre-producto {
        min-height: 50px;
    }

    .tienda-descripcion-corta {
        min-height: 40px;
    }
}

/* ============================================
   MEJORAS FINALES DE ORGANIZACIÓN Y ESTRUCTURA
============================================ */

/* Asegurar que las tarjetas tengan altura consistente */
.tienda-card-producto {
    min-height: 500px;
}

/* Optimizar la distribución del contenido */
.tienda-info-producto {
    min-height: auto;
    padding: 20px 22px 22px 22px;
}

/* Mejorar la presentación de badges en imágenes grandes */
.producto-badges {
    top: 20px;
    left: 20px;
    z-index: 4;
}

/* Optimizar el overlay para imágenes más grandes */
.tienda-overlay-acciones .tienda-boton-accion {
    margin: 0 5px;
}

/* Estados mejorados para interacción */
.tienda-card-producto:hover {
    transform: translateY(-8px) scale(1.01);
}

/* Mejor jerarquía visual para precio en tarjetas más grandes */
.tienda-precio-actual {
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

/* Mejorar separación visual entre contenido y acción */
.tienda-acciones-producto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    opacity: 0.3;
}

.tienda-acciones-producto {
    position: relative;
}

/* Responsividad específica para imágenes grandes */
@media (max-width: 1400px) {
    .tienda-imagen-contenedor {
        height: 280px;
    }
}

@media (max-width: 1200px) {
    .tienda-imagen-contenedor {
        height: 260px;
    }

    .tienda-card-producto {
        min-height: 460px;
    }
}

@media (max-width: 992px) {
    .tienda-imagen-contenedor {
        height: 240px;
    }

    .tienda-card-producto {
        min-height: 440px;
    }
}

@media (max-width: 768px) {
    .tienda-imagen-contenedor {
        height: 220px;
    }

    .tienda-card-producto {
        min-height: 420px;
    }

    .tienda-precio-actual {
        font-size: 1.8rem;
    }
}

/* Efecto de brillo en botones */
.btn-elegant::after,
.tienda-boton-carrito::after,
.overlay-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.btn-elegant:hover::after,
.tienda-boton-carrito:hover::after,
.overlay-btn:hover::after {
    animation: shimmer 0.6s ease-out;
    opacity: 1;
}

/* Efecto ripple al hacer click */
.tienda-boton-carrito {
    position: relative;
    overflow: hidden;
}

.tienda-boton-carrito::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tienda-boton-carrito:active::before {
    width: 300px;
    height: 300px;
}

/* Animación de partículas al agregar al carrito */
.particula {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    font-size: 20px;
    animation: sparkle 1s ease-out forwards, moveParticle 1s ease-out forwards;
}

@keyframes moveParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--random-x), var(--random-y)) scale(0);
        opacity: 0;
    }
}

/* ============================================
   BARRA DE BÚSQUEDA SUPERIOR - DINÁMICA POR LÍNEA
============================================ */
.tienda-busqueda-superior {
    margin-bottom: 30px;
}

.tienda-busqueda-superior .input-group {
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.barra-busqueda-input {
    border: 2px solid #e0e0e0;
    border-right: none;
    padding: 12px 20px;
    font-size: 15px;
    font-family: var(--tienda-fuente-cuerpo);
    transition: all 0.3s ease;
    background: white;
}

.barra-busqueda-input:focus {
    outline: none;
    border-color: var(--nutricion-primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
}

.barra-busqueda-boton {
    padding: 12px 25px;
    border: none;
    background: var(--nutricion-gradient-main);
    color: white;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.barra-busqueda-boton:hover {
    background: linear-gradient(135deg, #00897b 0%, #388E3C 100%);
    transform: translateX(2px);
}

.barra-busqueda-boton i {
    font-size: 16px;
}

/* Estilos para tema Belleza */
body.tema-belleza .barra-busqueda-input:focus {
    border-color: var(--belleza-primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

body.tema-belleza .barra-busqueda-boton {
    background: var(--belleza-gradient-main);
}

body.tema-belleza .barra-busqueda-boton:hover {
    background: linear-gradient(135deg, #ad1457 0%, #D81B60 100%);
}

/* Estilos para tema Nutrición (por defecto) */
body.tema-nutricion .barra-busqueda-input:focus {
    border-color: var(--nutricion-primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
}

body.tema-nutricion .barra-busqueda-boton {
    background: var(--nutricion-gradient-main);
}

body.tema-nutricion .barra-busqueda-boton:hover {
    background: linear-gradient(135deg, #00897b 0%, #388E3C 100%);
}

/* Responsivo */
@media (max-width: 768px) {
    .barra-busqueda-input {
        font-size: 14px;
        padding: 10px 15px;
    }

    .barra-busqueda-boton {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ============================================
   INDICADORES VISUALES DE CARRITO - ESTADO "EN CARRITO"
============================================ */

/* Botón cuando el producto está en el carrito */
.tienda-boton-principal.en-carrito,
.btn-agregar-carrito.en-carrito {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
}

.tienda-boton-principal.en-carrito:hover,
.btn-agregar-carrito.en-carrito:hover {
    background: linear-gradient(135deg, #20c997, #28a745) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5), 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Badge de cantidad en el botón */
.badge-cantidad-carrito {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: linear-gradient(135deg, #dc3545, #ff6b7a) !important;
    color: white !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4) !important;
    animation: badgePulse 2s infinite !important;
    z-index: 10 !important;
    border: 2px solid white !important;
}

/* Animación del badge */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.6);
    }
}

/* Icono de check cuando está en el carrito */
.tienda-boton-principal.en-carrito i.fa-check-circle,
.btn-agregar-carrito.en-carrito i.fa-check-circle {
    animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Efecto de resplandor para botones en carrito */
.tienda-boton-principal.en-carrito::after,
.btn-agregar-carrito.en-carrito::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: shimmerEffect 3s infinite;
    pointer-events: none;
}

@keyframes shimmerEffect {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

/* Responsividad del badge */
@media (max-width: 768px) {
    .badge-cantidad-carrito {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
        top: -6px !important;
        right: -6px !important;
    }
}

/* ============================================
   BOTONES DE FAVORITOS - ESTADO ACTIVO
============================================ */

/* Botón de favorito normal */
.tienda-boton-accion[onclick*="toggleFavorito"] {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ddd;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tienda-boton-accion[onclick*="toggleFavorito"]:hover {
    background: white;
    border-color: #D4AF37;
    color: #D4AF37;
    transform: scale(1.1);
}

/* Botón de favorito cuando está ACTIVO (producto en favoritos) */
.tienda-boton-accion.favorito-activo,
button[onclick*="toggleFavorito"].favorito-activo {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f) !important;
    border-color: #ee5a6f !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.4) !important;
}

.tienda-boton-accion.favorito-activo:hover,
button[onclick*="toggleFavorito"].favorito-activo:hover {
    background: linear-gradient(135deg, #ee5a6f, #c92a2a) !important;
    box-shadow: 0 6px 20px rgba(238, 90, 111, 0.5) !important;
    transform: scale(1.15) !important;
}

/* Icono cuando está en favoritos */
.tienda-boton-accion.favorito-activo i,
button[onclick*="toggleFavorito"].favorito-activo i {
    color: white !important;
}

/* Animación al agregar a favoritos */
@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.2);
    }
}

/* Efecto de brillo en favoritos activos */
.tienda-boton-accion.favorito-activo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: shimmerFavorito 3s infinite;
    pointer-events: none;
}

@keyframes shimmerFavorito {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}