/* ==========================================
   1. FUENTES E ICONOS
   ========================================== */
@font-face { font-family: 'MC'; src: url('/mc.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; font-variation-settings: 'ROND' 100; }
@font-face { font-family: 'MC2'; src: url('/mc2.woff2') format('woff2'); font-variation-settings: "GRAD" 400, "wght" 1000;  font-display: swap}
@font-face { font-family: 'mcicons'; src: url('/mcicons.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap }
* { font-family: 'MC'; font-variation-settings: 'ROND' 100; box-sizing: border-box; -webkit-tap-highlight-color: transparent; transition: all 0.3s cubic-bezier(0.2, 0, 0, 1); }

[class^="icon-"], [class*=" icon-"] { font-family: 'mcicons' !important; speak: never; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.brand { font-size: 1.8rem; }
.icono { font-size: 24px; }

/* (Iconos mapeados) */
.icon-isla:before{content:"\e971"}.icon-business:before{content:"\e973"}.icon-cafe:before{content:"\e974"}.icon-kids:before{content:"\e975"}.icon-salon:before{content:"\e976"}.icon-terraza:before{content:"\e977"}.icon-yoga:before{content:"\e978"}.icon-playa1:before{content:"\e951"}.icon-restaurant:before{content:"\e972"}.icon-build:before{content:"\e913"}.icon-seguridad:before{content:"\e923"}.icon-phone:before{content:"\e931"}.icon-check:before{content:"\e932"}.icon-iglesia:before{content:"\e933"}.icon-city:before{content:"\e934"}.icon-casa:before{content:"\e935"}.icon-amueblado2:before{content:"\e936"}.icon-telefono:before{content:"\e937"}.icon-elevador:before{content:"\e938"}.icon-correo:before{content:"\e939"}.icon-evento:before{content:"\e93a"}.icon-favicon1:before{content:"\e93b"}.icon-escuela:before{content:"\e93c"}.icon-grid1:before{content:"\e93d"}.icon-martillo:before{content:"\e93e"}.icon-construccion:before{content:"\e93f"}.icon-home:before{content:"\e940"}.icon-propiedades:before{content:"\e941"}.icon-hospital:before{content:"\e942"}.icon-hotel:before{content:"\e943"}.icon-houses:before{content:"\e944"}.icon-key1:before{content:"\e945"}.icon-key2:before{content:"\e946"}.icon-key3:before{content:"\e947"}.icon-location1:before{content:"\e948"}.icon-clock:before{content:"\e949"}.icon-phone1:before{content:"\e94a"}.icon-school:before{content:"\e94b"}.icon-shop:before{content:"\e94c"}.icon-shower1:before{content:"\e94d"}.icon-ac:before{content:"\e94e"}.icon-trash:before{content:"\e94f"}.icon-city1:before{content:"\e950"}.icon-list1:before{content:"\e952"}.icon-llave:before{content:"\e953"}.icon-garage2:before{content:"\e954"}.icon-pool:before{content:"\e955"}.icon-whatsapp:before{content:"\e956"}.icon-oficina:before{content:"\e957"}.icon-mantenimiento:before{content:"\e958"}.icon-alberca:before{content:"\e959"}.icon-amueblado:before{content:"\e95a"}.icon-apartment:before{content:"\e95b"}.icon-appartment2:before{content:"\e95c"}.icon-baos:before{content:"\e95d"}.icon-bar:before{content:"\e95e"}.icon-clima:before{content:"\e95f"}.icon-estacionamiento:before{content:"\e960"}.icon-estadios:before{content:"\e961"}.icon-garage:before{content:"\e962"}.icon-gym:before{content:"\e963"}.icon-gymnasio:before{content:"\e964"}.icon-habitaciones:before{content:"\e965"}.icon-logo16:before{content:"\e966"}.icon-logo17:before{content:"\e967"}.icon-mall:before{content:"\e968"}.icon-padel:before{content:"\e969"}.icon-playa:before{content:"\e96a"}.icon-raquet:before{content:"\e96b"}.icon-raquetball:before{content:"\e96c"}.icon-ruler:before{content:"\e96d"}.icon-universidades:before{content:"\e96e"}.icon-right:before{content:"\e96f"}.icon-left:before{content:"\e970"}.icon-logo1:before{content:"\e904"}.icon-search:before{content:"\e907"}.icon-bahari:before{content:"\e924"}.icon-logo2:before{content:"\e925"}.icon-apartments:before{content:"\e926"}.icon-apartamento:before{content:"\e927"}.icon-logo404:before{content:"\e928"}.icon-list:before{content:"\e92f"}.icon-grid:before{content:"\e930"}.icon-onlysky:before{content:"\e929"}.icon-clean:before{content:"\e92a"}.icon-favicon:before{content:"\e92b"}.icon-amueblado1:before{content:"\e92c"}.icon-favoritesfill:before{content:"\e92d"}.icon-favorites:before{content:"\e92e"}.icon-car:before{content:"\e911"}.icon-bath:before{content:"\e900"}.icon-apartment2:before{content:"\e914"}.icon-shower:before{content:"\e916"}.icon-garage1:before{content:"\e917"}.icon-location:before{content:"\e918"}.icon-key:before{content:"\e91a"}.icon-filter:before{content:"\e91d"}.icon-star:before{content:"\e91e"}.icon-check1:before{content:"\e91f"}.icon-home1:before{content:"\e920"}.icon-gym1:before{content:"\e921"}.icon-fitness:before{content:"\e922"}.icon-room:before{content:"\e902"}.icon-ruler1:before{content:"\e903"}.icon-building:before{content:"\e90b"}.icon-buildingfill:before{content:"\e90c"}.icon-logo:before{content:"\e90d"}.icon-apartment1:before{content:"\e910"}.icon-badge:before{content:"\e901"}.icon-category:before{content:"\e905"}.icon-close:before{content:"\e906"}.icon-delete:before{content:"\e908"}.icon-forest:before{content:"\e909"}.icon-house:before{content:"\e90a"}.icon-menu:before{content:"\e90e"}.icon-news:before{content:"\e90f"}.icon-pet:before{content:"\e912"}.icon-share:before{content:"\e915"}.icon-tag:before{content:"\e919"}.icon-treefill:before{content:"\e91b"}.icon-view:before{content:"\e91c"}
li { display: table; }

/* ==========================================
   2. PALETA APPLE LIQUID GLASS (Puro Cristal)
   ========================================== */
:root {
    /* Textos y Acentos Base (Reemplaza a Material You) */
    --glass-text-primary: #1C1C1E;
    --glass-text-secondary: #6E6E73;
    --glass-accent: #fff;
    
    /* Variables Maestras de Cristal */
    --glass-bg: rgba(255, 255, 255, 0.3);
    --glass-bg-hover: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(25px);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   16. ADAPTACIÓN AL DARK GLASS (El cambio Mágico)
   ========================================== */
[data-theme="dark"] {
    /* Al cambiar estas variables, TODO el texto y acentos cambian automáticamente */
    --glass-text-primary: #ffffff;
    --glass-text-secondary: rgba(255, 255, 255, 0.7);
    --glass-accent: #80DEEA;
}

[data-theme="dark"] .mc-card, [data-theme="dark"] .news-card, [data-theme="dark"] .checkout-summary, [data-theme="dark"] .step-item, [data-theme="dark"] .product-detail-view {
    background: rgba(20, 20, 25, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .chip, [data-theme="dark"] .badge, [data-theme="dark"] .btn-outline-3d, [data-theme="dark"] .iconbtn,
[data-theme="dark"] span[style*="rgba(0,0,0,0.05)"],
[data-theme="dark"] span[style*="rgba(0, 0, 0, 0.05)"] {
    background: rgba(45, 45, 50, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .chip:hover, [data-theme="dark"] .btn-outline-3d:hover, [data-theme="dark"] .iconbtn:hover {
    background: rgba(70, 70, 80, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .lg-overlay, [data-theme="dark"] .glass-filter {
    background: rgba(20, 20, 22, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .global-glass-bg .lg-overlay {
    background: rgba(10, 10, 12, 0.8) !important;
}

[data-theme="dark"] .badge { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.05) !important; }

/* ==========================================
   3. ESTILOS GLOBALES
   ========================================== */
html, body {
    margin: 0; padding: 0;
    font-family: 'MC', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400; color: var(--glass-text-primary);
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(135deg, #F5F5F7 0%, #E5E5EA 100%);
    background-attachment: fixed;
}
h1, h2, h3, .card-title, .chiptext, .price-tag, .btn { font-family: inherit; font-weight: 700; color: var(--glass-text-primary); }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; outline: none; }
.main { width: 100%; padding-bottom: 64px; }

/* ==========================================
   4. HEADER Y NAVEGACIÓN
   ========================================== */
.bars { width: 100%; z-index: 200; }
.rowbar {
    display: flex; height: 64px; width: 100%;
    position: fixed !important; top: 0 !important; z-index: 9999 !important;   
    background: transparent !important; border: none !important; box-shadow: none !important;
}
.bar { display: inline-flex; flex: 1; align-items: center; padding: 0 15px; }
.startbar  { justify-content: flex-start; }
.middlebar { justify-content: center; gap: 8px; }
.endbar    { justify-content: flex-end; gap: 10px; }

/* ==========================================
   5. BOTONES E ICONOS (Refracción Crystal Glass - SINTAXIS SEGURA)
   ========================================== */
.iconbtn, .chip, .badge, .btn-outline-3d, .image-badge, span[style*="rgba(0,0,0,0.05)"], span[style*="rgba(0, 0, 0, 0.05)"] {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%) !important;
    backdrop-filter: blur(15px) !important; 
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    color: var(--glass-text-primary) !important;
    display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; 
}

.iconbtn { width: 48px; height: 48px; border-radius: 50%; font-size: 24px; }
.chip { padding: 0 20px; border-radius: 100px !important; height: 40px; }
.btn-outline-3d { border-radius: 100px !important; height: 40px; padding: 0 24px; font-weight: 600; font-size: 0.95rem; }
.badge, .image-badge { padding: 6px 14px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.image-badge { position: absolute; top: 16px; left: 16px; z-index: 10; gap: 6px; }

/* ¡LA SOLUCIÓN! El código SVG ahora está codificado (sin signos de menor/mayor que rompan tu editor) */
.iconbtn::before, .chip::before, .btn-outline-3d::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

.iconbtn i, .chip .chiptext, .chip i, .btn-outline-3d *, .badge {
    position: relative;
    z-index: 1;
}

.iconbtn:hover, .chip:hover, .btn-outline-3d:hover { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.05) 100%) !important; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important; 
}

.chip-nav i, .chip-nav .chiptext { color: var(--glass-text-secondary); font-size: 1rem; }
.active-nav, .chip.btn-saved, .chip-filtro.active-filter, .adv-filter-chip.active-filter { background: rgba(255, 255, 255, 0.6) !important; border-color: rgba(255, 255, 255, 1) !important; }
.active-nav i, .active-nav .chiptext, .chip.btn-saved .chiptext, .chip.btn-saved i { color: var(--glass-text-primary) !important; }
/* ==========================================
   6. TARJETAS LIQUID GLASS NATIVAS
   ========================================== */
.mc-card, .news-card, .checkout-summary, .step-item, .product-detail-view {
    background: rgba(255, 255, 255, 0.15) !important; 
    backdrop-filter: var(--glass-blur) !important; -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    border-radius: 24px !important; 
    overflow: hidden; display: flex; flex-direction: column;
    position: relative;
}

.mc-card:hover, .news-card:hover { transform: translateY(-4px) !important; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important; background: rgba(255, 255, 255, 0.3) !important; }

.card-img-container, .news-img-container { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(255,255,255,0.4) !important; position: relative; }
.card-img, .news-img-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.card-body, .news-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; align-items: start; }
.card-title, .news-title { margin: 0 0 8px 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important;}
.card-desc, .news-excerpt { color: var(--glass-text-secondary); font-size: 0.95rem; line-height: 1.5; margin-bottom: 8px; flex-grow: 0; display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; margin-top:0px;}
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; width: 100%; }
.price-tag { font-weight: 800; color: var(--glass-text-primary); font-size: 1.3rem; }
.old-price { text-decoration: line-through; color: var(--glass-text-secondary); font-size: 0.9rem; margin-right: 8px; }

/* ==========================================
   7. BUSCADOR Y CONTROLES
   ========================================== */
.search-container { width: 100%; max-width: 600px; margin: 20px auto 30px; padding: 0 20px; }
.search-wrapper {
    position: relative; display: flex; align-items: center;
    background: var(--glass-bg) !important; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border-radius: 100px; height: 56px;
}
.search-wrapper:focus-within { background: rgba(255, 255, 255, 0.6) !important; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); }
#buscar { border: none; background: transparent; outline: none; width: 100%; height: 100%; padding: 0 50px 0 45px; font-size: 1.1rem; color: var(--glass-text-primary); font-family: inherit; }
.search-icon { position: absolute; left: 16px; color: var(--glass-text-secondary); font-size: 1.2rem; pointer-events: none; }
#btn-limpiar-busqueda { position: absolute; right: 12px; width: 36px; height: 36px; backdrop-filter: blur(4px); border: 1px solid var(--glass-border); border-radius: 50%; color: var(--glass-text-secondary); display: flex; justify-content: center; align-items: center; }

.advanced-filters { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px auto; padding: 0 15px; }
.duo-select {
    appearance: none; -webkit-appearance: none;
    background-color: var(--glass-bg) !important; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
    border-radius: 12px !important; padding: 12px 40px 12px 16px;
    font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--glass-text-primary) !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231C1C1E%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 12px top 50%; background-size: 10px auto;
}

.sliders_control { position: relative; height: 32px; }
.duo-slider-dual { -webkit-appearance: none; appearance: none; width: 100%; position: absolute; top: 12px; pointer-events: none; background: transparent; height: 6px; outline: none; margin: 0; }
#slider-min { background: rgba(0,0,0,0.05); border-radius: 4px; z-index: 1; border: 1px solid rgba(255,255,255,0.5); }
.duo-slider-dual::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: all; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 2px 8px rgba(0,0,0,0.15); cursor: pointer; position: relative; z-index: 2; transition: transform 0.1s; }
.duo-slider-dual::-webkit-slider-thumb:active { transform: scale(1.1); }
.chip-slider { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 8px !important; padding: 4px 4px 12px 4px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.chip-slider::-webkit-scrollbar { display: none; }
.chip-slider > * { flex-shrink: 0 !important; }

/* ==========================================
   8. MODAL VISTA RÁPIDA
   ========================================== */
.qv-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
    background: rgba(255,255,255,0.6) !important; backdrop-filter: blur(8px); border: 1px solid var(--glass-border) !important; 
    color: var(--glass-text-primary) !important; border-radius: 50% !important; width: 48px; height: 48px; font-size: 1.5rem;
    opacity: 0; z-index: 5; display: flex; align-items: center; justify-content: center; box-shadow: var(--glass-shadow);
}
.card-img-container:hover .qv-btn { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.qv-btn:hover { background: #FFFFFF !important; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 10000; display: none; justify-content: center; align-items: center; opacity: 0; padding: 20px; box-sizing: border-box; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; }
.quick-view-box { background: transparent !important; border: none !important; box-shadow: none !important; width: 100%; max-width: 900px; max-height: 90vh; position: relative; display: flex; flex-wrap: wrap; transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1); }
.modal-overlay.active .quick-view-box { transform: translateY(0) scale(1); }
.qv-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.3) !important; border: 1px solid rgba(255,255,255,0.5) !important; border-radius: 50% !important; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; z-index: 30; }
.qv-img-col { flex: 1; min-width: 300px; padding: 20px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.2); border-right: 1px solid rgba(255,255,255,0.4); position: relative; }
.qv-info-col { flex: 1.2; min-width: 300px; padding: 32px; position: relative; z-index: 10; }
.qv-divider { border-top: 1px solid rgba(255,255,255,0.4); margin-top: 20px; padding-top: 20px; text-align: center; }
.product-main-image-modal { flex-grow: 1; display: flex; justify-content: center; align-items: center; background: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.6); border-radius: 24px; padding: 0; height: 400px; position: relative; overflow: hidden; touch-action: pan-y; }
@media (max-width: 600px) { .product-main-image-modal { height: 300px; } .qv-img-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.4); } }

/* ==========================================
   9. GALERÍA FULLSCREEN (Lightbox)
   ========================================== */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 20000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; overflow: hidden; flex-direction: column; touch-action: none; }
.lightbox-overlay.active { opacity: 1; }
.lightbox-content { background: none; border: none; padding: 0; box-shadow: none; border-radius: 0; width: 100vw; height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; position: relative; }
.lightbox-image { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; max-width: 100vw; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transition: opacity 0.3s ease; cursor: grab; user-drag: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
.lightbox-overlay.active .lightbox-content:active .lightbox-image { cursor: grabbing; }
.lightbox-arrow { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.2) !important; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.3) !important; border-radius: 50% !important; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; color: #FFFFFF !important; font-size: 1.8rem; z-index: 25; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.3) !important; }
.lightbox-arrow:active { transform: translateY(-50%) scale(0.95); }
.prev-lightbox-arrow { left: 30px; } .next-lightbox-arrow { right: 30px; }
.lightbox-close { position: fixed; top: 20px; right: 20px; background: rgba(255,255,255,0.2) !important; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.3) !important; border-radius: 50% !important; width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; color: #FFFFFF !important; z-index: 30; }
.lightbox-thumbnails { width: 100vw; height: 120px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 20px; background: rgba(0,0,0,0.3); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.1); position: fixed; bottom: 0; left: 0; z-index: 20; overflow-x: auto; scrollbar-width: none; }
.lightbox-thumbnails::-webkit-scrollbar { display: none; }
.lightbox-thumb-btn { flex: 0 0 100px; height: 75px; border: 2px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 0; background: none; cursor: pointer; overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.lightbox-thumb-btn img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.lightbox-thumb-btn.active-thumb { border-color: rgba(255,255,255,1); transform: scale(1.05); }
.lightbox-thumb-btn.active-thumb img { opacity: 1; }
.lightbox-thumb-btn:not(.active-thumb) img { opacity: 0.6; }
@media (max-width: 600px) { .lightbox-thumbnails { height: 90px; } .lightbox-thumb-btn { flex: 0 0 70px; height: 50px; } .lightbox-arrow { width: 44px; height: 44px; font-size: 1.2rem; } .prev-lightbox-arrow { left: 15px; } .next-lightbox-arrow { right: 15px; } }

/* ==========================================
   10. DETALLES DE PROPIEDAD
   ========================================== */
.product-gallery-wrapper { display: flex; gap: 20px; padding: 30px; background: transparent; border-bottom: 1px solid rgba(255,255,255,0.4); align-items: flex-start; }
.product-main-image { flex-grow: 1; display: block !important; position: relative !important; background: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.6); border-radius: 24px; padding: 20px; height: 450px; touch-action: pan-y; }
.product-main-image > div[style*="position: relative"] { position: absolute !important; top: 20px !important; left: 20px !important; right: 20px !important; bottom: 20px !important; width: auto !important; height: auto !important; }
.product-thumbnails { display: flex; flex-direction: column; gap: 12px; width: 80px; flex-shrink: 0; }
.thumbnail-btn { border: 1px solid rgba(255,255,255,0.6); border-radius: 16px; background: rgba(255,255,255,0.4); backdrop-filter: blur(4px); height: 80px; padding: 6px; cursor: pointer; }
.thumbnail-btn.active-thumb { border-color: #a9a9a9; background: rgba(255,255,255,0.8); }
.product-detail-body { padding: 40px; }
@media (min-width: 900px) { .product-detail-view { flex-direction: row; align-items: stretch; } .product-gallery-wrapper { flex: 1.2; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.4); padding: 40px; } .product-detail-body { flex: 1; display: flex; flex-direction: column; } }
@media (max-width: 768px) { .product-gallery-wrapper { flex-direction: column-reverse; padding: 20px; } .product-thumbnails { flex-direction: row; width: 100%; overflow-x: auto; } .thumbnail-btn { min-width: 70px; height: 70px; } .product-main-image { height: 350px !important; padding: 10px !important; width: 100%; } .product-main-image > div[style*="position: relative"] { top: 10px !important; left: 10px !important; right: 10px !important; bottom: 10px !important; } }

/* ==========================================
   11. SLIDERS HORIZONTALES
   ========================================== */
#contenedor-destacados, #contenedor-noticias-slider, #contenedor-recomendados { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; scroll-snap-type: x mandatory; padding: 10px 10px 40px 10px !important; gap: 20px !important; scrollbar-width: none; }
#contenedor-destacados::-webkit-scrollbar, #contenedor-noticias-slider::-webkit-scrollbar, #contenedor-recomendados::-webkit-scrollbar { display: none; }
.slider-card { flex: 0 0 calc(33.333% - 14px) !important; scroll-snap-align: start; min-width: 280px; }
@media (max-width: 992px) { .slider-card { flex: 0 0 calc(45% - 10px) !important; } }
@media (max-width: 600px) { .slider-card { flex: 0 0 calc(85% - 10px) !important; } }
.slider-arrow, .gallery-arrow { position: absolute; transform: translateY(-50%); background: rgba(255, 255, 255, 0.6) !important; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.8) !important; color: var(--glass-text-primary) !important; width: 48px; height: 48px; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 50 !important; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important; margin: 0 !important; }
.slider-arrow { top: calc(50% - 15px) !important; }
.gallery-arrow { top: 50% !important; }
.slider-arrow:hover, .gallery-arrow:hover { background: rgba(255,255,255,0.9) !important; }
.prev-slider-arrow { left: -12px; font-size: 2rem;} .next-slider-arrow { right: -12px; font-size: 2rem;}
.prev-arrow { left: 15px !important; right: auto !important; font-size: 2rem;} .next-arrow { right: 15px !important; left: auto !important; font-size: 2rem;}
.prev-slider-arrow i, .prev-arrow i { display: inline-block !important; transform: rotate(180deg) !important; font-size: 2rem;}
@media (max-width: 600px) { .slider-arrow { display: none !important; } }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); background: rgba(255, 255, 255, 0.2); padding: 0; cursor: pointer; }
.hero-dot.active { background: rgba(255, 255, 255, 1); transform: scale(1.3); }

/* ==========================================
   12. CARRITO / FOOTER / ALERTAS
   ========================================== */
.mc-cart-item { background: rgba(255,255,255,0.3) !important; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.6) !important; border-radius: 24px !important; padding: 16px !important; box-shadow: var(--glass-shadow) !important; }
.cart-item-img { background: rgba(255,255,255,0.2); border-radius: 16px; }
.btn-delete-cart { background: rgba(255,255,255,0.4) !important; border: 1px solid rgba(255,255,255,0.6) !important; color: var(--glass-text-secondary) !important; border-radius: 50% !important; width: 40px !important; height: 40px !important; }
.site-footer { background-color: transparent !important; border-top: 1px solid rgba(255,255,255,0.4) !important; padding: 48px 20px; color: var(--glass-text-secondary) !important; }
.alertas { background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 100px; padding: 8px 18px; bottom: 30px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); color: var(--glass-text-primary); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; transition: all 0.3s cubic-bezier(0.2, 0, 0, 1); }
.toast-oculto { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.98); }
.toast-visible { opacity: 1; transform: translateX(-50%) translateY(0px) scale(1); }
.alertastexto { display: flex; align-items: center; } .alertastexto i { font-size: 1.1rem; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.15); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* ==========================================
   13. BREADCRUMBS Y MENU MOVIL (Glass)
   ========================================== */
.breadcrumbs-container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; padding: 0 20px; max-width: 1200px; margin-left: auto; margin-right: auto; width: 100%; }
.breadcrumb-chip, .breadcrumb-chip-active { background: rgba(255,255,255,0.3) !important; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.6) !important; padding: 8px 16px; border-radius: 100px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.breadcrumb-chip { color: var(--glass-text-secondary); font-size: 0.95rem; font-weight: 600; }
.breadcrumb-chip-active { background: rgba(255, 255, 255, 0.6) !important; color: var(--glass-text-primary); font-weight: 700; }
.breadcrumb-separator { color: rgba(0,0,0,0.3); font-size: 2rem; display: flex; align-items: center; justify-content: center; }

.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(8px); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.4s ease; }
.mobile-overlay.open { opacity: 1; visibility: visible; }
.drawer-link { display: flex; align-items: center; gap: 16px; padding: 18px 24px; border-radius: 16px; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.4); color: var(--glass-text-primary); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.drawer-link:hover, .drawer-link.active-nav { background: rgba(255, 255, 255, 0.5) !important; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); }

/* ==========================================
   14. CONTENEDORES Y CAPAS LIQUID GLASS MÁGICAS
   ========================================== */
/* Botón especial Contactar/Whatsapp */
.btn-liquid-glass { position: relative; width: 100%; height: 55px; border: none; background: transparent; cursor: pointer; outline: none; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); display: flex; justify-content: center; align-items: center; }
.glass-filter { position: absolute; inset: 0; background: transparent; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: inherit; z-index: 1; }
.glass-overlay { position: absolute; inset: -20px; background: transparent; filter: url(#glass-distortion); z-index: 2; pointer-events: none; }
.glass-specular { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; transition: background 0.1s ease; }
.glass-content { position: relative; z-index: 4; color: var(--glass-text-primary); font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; pointer-events: none; }

/* Contenedores Universales (Header, Modales, Drawer) */
.lg-bg-container { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
.rowbar .lg-bg-container { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.quick-view-box .lg-bg-container { border-radius: 28px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.lg-filter { position: absolute; inset: 0; z-index: 1; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); filter: url(#glass-distortion) saturate(120%) brightness(1.05); }
.lg-distortion { position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 80%), radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 80%); background-size: 300% 300%; animation: floatDistort 10s infinite ease-in-out; mix-blend-mode: overlay; }
.lg-overlay { position: absolute; inset: 0; z-index: 3; background: rgba(255, 255, 255, 0.35); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: inherit; }
.lg-specular { position: absolute; inset: 0; z-index: 4; box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.8); transition: background 0.1s ease; border-radius: inherit; }
.lg-content-wrapper { position: relative; z-index: 5; width: 100%; height: 100%; display: flex; }
.quick-view-box .lg-content-wrapper { flex-wrap: wrap; }
@keyframes floatDistort { 0% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } 100% { background-position: 0% 0%; } }

/* ==========================================
   15. LUPA ELIMINADA 
   ========================================== */
/* Ocultamos el elemento de la lupa por completo */
.liquid-magnifier { 
    display: none !important; 
}

/* Restauramos la flecha/manita del ratón al pasar sobre las fotos */
.card-img-container, .card-img-container:hover { 
    cursor: pointer !important; 
}

/* ==========================================
   25. CORRECCIONES ESTRUCTURALES (Responsive & Drawer)
   ========================================== */
.desktop-nav-section { display: none !important; }

@media (min-width: 992px) {
    .desktop-nav-section { display: flex !important; justify-content: center; flex: 2; }
    .desktop-nav { display: flex; gap: 10px; flex-wrap: nowrap; white-space: nowrap; }
    .mobile-menu-btn { display: none !important; }
}

.mobile-drawer {
    position: fixed; 
    top: 0; 
    right: 0; /* Lo fijamos a la derecha siempre */
    width: 280px; 
    height: 100%;
    background: rgba(245, 245, 247, 0.65) !important;
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.6); 
    z-index: 10000; 
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    display: flex; 
    flex-direction: column; 
    padding: 30px 20px; 
    border-radius: 32px 0 0 32px;
    
    /* El truco de la GPU: Lo sacamos de la pantalla usando Transform */
    transform: translateX(100%);
    will-change: transform; /* Le avisa a la GPU que esto se va a mover */
    transition: transform 0.4s cubic-bezier(0.1, 1, 0.2, 1);
}

.mobile-drawer.open { 
    /* Lo traemos de vuelta a la pantalla */
    transform: translateX(0); 
}
[data-theme="dark"] .mobile-drawer {
    background: rgba(20, 20, 25, 0.85) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   26. VISTA LISTA (Toggle Grid/List)
   ========================================== */
#layout-toggle {
    border: 1px solid var(--glass-border) !important; border-radius: 12px;
    background: var(--glass-bg) !important; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    color: var(--glass-text-primary); width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
#layout-toggle:hover { background: var(--glass-bg-hover) !important; transform: translateY(-2px); }
#layout-toggle:active { transform: scale(0.95); }

#contenedor-productos.list-view-active { grid-template-columns: 1fr !important; }
#contenedor-productos.list-view-active .card-glass-content { display: flex !important; flex-direction: row !important; align-items: stretch; width: 100%; }
#contenedor-productos.list-view-active .mc-card:not(:has(.card-glass-content)) { display: flex !important; flex-direction: row !important; align-items: stretch; }
#contenedor-productos.list-view-active .card-img-container { width: 320px !important; min-width: 320px !important; max-width: 320px !important; border-bottom: none !important; border-right: 1px solid rgba(255, 255, 255, 0.4) !important; height: auto !important; min-height: 220px; }
#contenedor-productos.list-view-active .card-body { width: calc(100% - 320px) !important; display: flex !important; flex-direction: column !important; justify-content: center !important; }

[data-theme="dark"] #layout-toggle { background: rgba(45, 45, 50, 0.5) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important; color: #ffffff !important; }

@media (max-width: 768px) { 
    #layout-toggle { display: none !important; } 
    #contenedor-productos.list-view-active .card-glass-content { flex-direction: column !important; }
    #contenedor-productos.list-view-active .card-body { width: 100% !important; }
    #contenedor-productos.list-view-active .card-img-container { width: 100% !important; min-width: 100% !important; max-width: 100% !important; border-right: none !important; border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important; height: 220px !important; }
}

/* ==========================================
   27. FÍSICA Y ANIMACIÓN 3D PARA BOTONES
   ========================================== */
@property --light-shift { syntax: '<length>'; initial-value: -5px; inherits: false; }

.chip, .btn-outline-3d, .btn-liquid-glass, .iconbtn {
    transition: all 0.6s linear(0, 0.01 0.9%, 0.037 1.8%, 0.148 3.8%, 0.762 11%, 0.985 14.2%, 1.062 15.7%, 1.125 17.3%, 1.167 18.9%, 1.191 20.5%, 1.199 22.5%, 1.185 24.8%, 1.012 35.7%, 0.979 39%, 0.963 42.4%, 0.963 47%, 0.997 57.7%, 1.007 64%, 1) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 0 2px 1px rgba(255, 255, 255, 0.6), inset var(--light-shift) var(--light-shift) 10px 0px rgba(255, 255, 255, 0.4), inset 0 10px 15px 5px rgba(0, 0, 0, 0.05) !important;
}

.chip:active, .btn-outline-3d:active, .btn-liquid-glass:active, .iconbtn:active {
    transform: perspective(400px) rotateX(20deg) scale(0.9) !important; --light-shift: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 0 4px 1px rgba(255, 255, 255, 0.9), inset var(--light-shift) var(--light-shift) 15px 0px rgba(255, 255, 255, 0.6), inset 0 15px 15px 5px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .chip:active, [data-theme="dark"] .btn-outline-3d:active, [data-theme="dark"] .btn-liquid-glass:active, [data-theme="dark"] .iconbtn:active {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6), inset 0 0 2px 1px rgba(255, 255, 255, 0.3), inset var(--light-shift) var(--light-shift) 15px 0px rgba(255, 255, 255, 0.1), inset 0 15px 15px 5px rgba(0, 0, 0, 0.4) !important;
}



/* ==========================================
   29. CORRECCIONES PARA MÓVILES (Lupa y Modal)
   ========================================== */

/* 1. Desactivamos la lupa en celulares y tabletas para evitar bloqueos táctiles */
@media (max-width: 991px) {
    .liquid-magnifier {
        display: none !important;
    }
    
    /* Restaurar el comportamiento táctil normal de las imágenes */
    .card-img-container, .card-img-container:hover {
        cursor: pointer !important;
    }
}

/* 2. Arreglamos el scroll de la Vista Rápida para que baje fluidamente */
.quick-view-box {
    max-height: 90vh !important; /* Límite de altura para la caja de cristal */
    overflow: hidden !important; /* Mantiene los bordes redondos impecables */
}

/* Le decimos al contenido interno que haga scroll si es muy largo */
.quick-view-box .lg-content-wrapper {
    overflow-y: auto !important; 
    max-height: 90vh !important;
    -webkit-overflow-scrolling: touch !important; /* Da un scroll súper suave y con inercia en iOS/Android */
    scrollbar-width: none; /* Oculta la barra fea en Firefox */
}

/* Oculta la barra de scroll en Chrome/Safari para mantener el look de cristal limpio */
.quick-view-box .lg-content-wrapper::-webkit-scrollbar {
    display: none !important;
}

/* Aseguramos que el botón de cerrar siempre se quede al frente al bajar el texto */
.qv-close {
    z-index: 100 !important;
}

/* ==========================================
   30. COMPARADOR ANTES/DESPUÉS (Liquid Glass)
   ========================================== */
.comparison-section {
    width: 100%;
    max-width: 1000px; 
    margin: 80px auto; 
    padding: 0 20px;
}

.glass-comparison {
    position: relative; 
    width: 100%; 
    aspect-ratio: 16 / 9; /* Formato panorámico */
    border-radius: 24px; 
    overflow: hidden; 
    box-shadow: var(--glass-shadow); 
    border: 1px solid var(--glass-border);
    background: var(--glass-bg); /* Fondo de cristal por si la imagen tarda en cargar */
}

.comp-img {
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover;
    pointer-events: none; /* Evita que las imágenes interfieran con el toque */
}

.comp-after {
    z-index: 10; 
    /* El recorte inicial a la mitad exacta */
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

/* La línea brillante divisoria */
.comp-slider-line {
    position: absolute; top: 0; left: 50%; bottom: 0; 
    width: 2px;
    background: rgba(255,255,255,0.9); 
    z-index: 20; 
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0,0,0,0.3); 
    pointer-events: none;
}

/* El control invisible que captura el dedo/ratón */
#comp-range {
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%; 
    z-index: 30;
    opacity: 0; 
    cursor: ew-resize; 
    margin: 0;
}

/* El botón central usa tu estilo .iconbtn */
.comp-slider-button {
    position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%);
    display: flex; gap: 2px; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}
.comp-slider-button i { font-size: 1.2rem; }

/* ¡CRUCIAL! Cancelamos las transiciones globales aquí para que se mueva en tiempo real con el dedo */
.comp-after, .comp-slider-line {
    transition: none !important;
}

/* Adaptación para celulares (más alto para que se vea bien) */
@media (max-width: 768px) {
    .glass-comparison { aspect-ratio: 4 / 5; }
}


/* ==========================================
   AGREGADO: EFECTO DE REFRACCIÓN IRIDISCENTE (Seguro)
   ========================================== */

/* 1. Destello de Prisma para los Botones (Hover) */
.chip::after, .iconbtn::after, .btn-outline-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Los colores del prisma: Rosa, Azul claro, Púrpura */
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.15) 0%, rgba(135, 206, 235, 0.15) 30%, rgba(147, 112, 219, 0.15) 60%, rgba(255, 182, 193, 0.15) 100%);
    mix-blend-mode: color-dodge;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Evita que bloquee los clics */
    z-index: 0;
    border-radius: inherit;
}

.chip:hover::after, .iconbtn:hover::after, .btn-outline-3d:hover::after {
    opacity: 1;
}

/* Protegemos los iconos y textos del botón para que no se opaquen */
.chip *, .iconbtn *, .btn-outline-3d * {
    position: relative;
    z-index: 1;
}

/* 2. Rayo de luz de Prisma para las Tarjetas */
.mc-card::after, .news-card::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255, 105, 180, 0.1) 25%, 
        rgba(135, 206, 235, 0.15) 50%, 
        rgba(147, 112, 219, 0.1) 75%, 
        rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
}

/* La animación corre como un destello al pasar el ratón */
.mc-card:hover::after, .news-card:hover::after {
    animation: cardPrisma 1.2s ease-in-out;
    opacity: 1;
}

@keyframes cardPrisma {
    0% { left: -100%; }
    100% { left: 200%; }
}



/* ==========================================
   33. REFRACTED LIQUID GLASS (Versión Ligera y Ultra Rápida)
   ========================================== */

.mc-card, .news-card, .chip, .iconbtn, .btn-outline-3d, .product-detail-view {
    /* Fondo translúcido un poco más sólido */
    background: rgba(255, 255, 255, 0.25) !important; 
    
    /* 1. Usamos SOLO el desenfoque nativo (Súper rápido en GPU) */
    backdrop-filter: blur(16px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
    
    /* 2. FORZAMOS ACELERACIÓN DE HARDWARE (Elimina el lag al hacer scroll) */
    transform: translateZ(0);
    will-change: transform, backdrop-filter;
    
    /* 3. Biselado 3D de luz en los bordes */
    box-shadow: 0 8px 32px rgba(0,0,0,0.06), inset 0 0 1px 1px rgba(255,255,255,0.4) !important;
    
    position: relative;
}

/* 4. Inyectamos la textura "escarchada" de cristal estática (Pesa menos de 1kb y no consume memoria) */
.mc-card::before, .news-card::before, .chip::before, .iconbtn::before, .btn-outline-3d::before, .product-detail-view::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Textura de micro-ruido de cristal */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    mix-blend-mode: overlay; /* Fusiona la escarcha con el color de fondo */
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

/* Protegemos el contenido principal sin romper las etiquetas flotantes (CORREGIDO) */
.mc-card > *, .news-card > *, .chip > *, .iconbtn > *, .btn-outline-3d > *, .product-detail-view > * {
    position: relative;
    z-index: 1;
}

/* Blindamos la etiqueta para que siempre flote sobre la foto */
.image-badge {
    position: absolute !important;
    z-index: 10 !important;
}

/* Modo oscuro ultra ligero */
[data-theme="dark"] .mc-card, [data-theme="dark"] .news-card, [data-theme="dark"] .chip, [data-theme="dark"] .iconbtn, [data-theme="dark"] .btn-outline-3d, [data-theme="dark"] .product-detail-view {
    background: rgba(20, 20, 25, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 0 1px 1px rgba(255,255,255,0.1) !important;
}

/* ==========================================
   35. ACCESIBILIDAD: NAVEGACIÓN POR TECLADO
   ========================================== */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible {
    outline: 3px solid var(--glass-text-primary) !important;
    outline-offset: 3px !important;
    border-radius: inherit; /* Respeta los bordes redondos de tu diseño */
    transition: outline 0.1s ease;
}