@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --accent: #FF6200;
    --accent-dark: #e55a00;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --bg-card: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

#page-loader {
    animation: loaderFade 0.4s ease 1.4s forwards;
}

@keyframes loaderFade {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.control-chip {
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

body[data-theme="light"] {
    background: #f4f4f5 !important;
    color: #18181b !important;
}

body[data-theme="light"] .bg-zinc-950,
body[data-theme="light"] .bg-zinc-900,
body[data-theme="light"] nav.bg-zinc-900,
body[data-theme="light"] footer.bg-zinc-900 {
    background-color: #ffffff !important;
}

body[data-theme="light"] .bg-zinc-800 {
    background-color: #f4f4f5 !important;
}

body[data-theme="light"] .text-zinc-100,
body[data-theme="light"] .text-white,
body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] h4 {
    color: #18181b !important;
}

body[data-theme="light"] .text-zinc-300,
body[data-theme="light"] .text-zinc-400,
body[data-theme="light"] .text-zinc-500 {
    color: #52525b !important;
}

body[data-theme="light"] .border-zinc-800,
body[data-theme="light"] .border-zinc-700 {
    border-color: #d4d4d8 !important;
}

body[data-theme="light"] .control-chip,
body[data-theme="light"] #mobile-menu,
body[data-theme="light"] #search-suggestions,
body[data-theme="light"] #filters-content,
body[data-theme="light"] #no-results,
body[data-theme="light"] .faq-item,
body[data-theme="light"] .faq-sidecard,
body[data-theme="light"] #wishlist-empty {
    background-color: #ffffff !important;
    color: #18181b !important;
}

body[data-theme="light"] .hover\:bg-zinc-700:hover,
body[data-theme="light"] .hover\:bg-zinc-800:hover {
    background-color: #e4e4e7 !important;
}

body[data-theme="light"] #filters-content {
    box-shadow: 0 18px 45px -28px rgba(15, 23, 42, 0.18);
}

/* ==================== RECOMENDADOS ==================== */

body[data-theme="light"] .category-pill,
body[data-theme="light"] .brand-pill,
body[data-theme="light"] .inches-pill {
    background: #ffffff !important;
    border-color: #d4d4d8 !important;
    color: #3f3f46 !important;
}

body[data-theme="light"] .category-pill:hover,
body[data-theme="light"] .brand-pill:hover,
body[data-theme="light"] .inches-pill:hover {
    background: #fff7ed !important;
    border-color: #fb923c !important;
    color: #18181b !important;
}

body[data-theme="light"] .category-pill.bg-\[\#FF6200\],
body[data-theme="light"] .brand-pill.bg-\[\#FF6200\],
body[data-theme="light"] .inches-pill.bg-\[\#FF6200\] {
    color: #18181b !important;
    border-color: #ff6200 !important;
}

body[data-theme="light"] #filters-content input[type="checkbox"] + span,
body[data-theme="light"] #filters-content label,
body[data-theme="light"] #filters-content .text-sm,
body[data-theme="light"] #filters-content .text-zinc-300 {
    color: #18181b !important;
}

body[data-theme="light"] #home .absolute.inset-0 {
    background: linear-gradient(180deg, rgba(12, 10, 9, 0.42), rgba(12, 10, 9, 0.58)) !important;
}

body[data-theme="light"] #home h1,
body[data-theme="light"] #home p,
body[data-theme="light"] #home button,
body[data-theme="light"] #home #offer-timer,
body[data-theme="light"] #home #offer-timer p,
body[data-theme="light"] #home #countdown span,
body[data-theme="light"] #home .inline-flex {
    color: #fafaf9 !important;
}

body[data-theme="light"] #home .inline-flex,
body[data-theme="light"] #home #offer-timer {
    background: rgba(24, 24, 27, 0.42) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.45);
}

body[data-theme="light"] #home p.text-zinc-300,
body[data-theme="light"] #home p.text-zinc-400,
body[data-theme="light"] #home #offer-timer .text-zinc-400,
body[data-theme="light"] #home #countdown .text-\[10px\] {
    color: rgba(255, 255, 255, 0.84) !important;
}

body[data-theme="light"] #home h1 .text-\[\#FF6200\],
body[data-theme="light"] #home #countdown .text-\[\#FF6200\] {
    color: #ff6a00 !important;
}

body[data-theme="light"] #home button.bg-\[\#FF6200\] {
    color: #18181b !important;
    box-shadow: 0 18px 45px -24px rgba(255, 98, 0, 0.6);
}

body[data-theme="light"] .hero-bg .absolute.inset-0 {
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.58), rgba(9, 9, 11, 0.72)) !important;
}

body[data-theme="light"] .hero-bg h1,
body[data-theme="light"] .hero-bg p,
body[data-theme="light"] .hero-bg a,
body[data-theme="light"] .hero-bg .text-white,
body[data-theme="light"] .hero-bg .text-white\/60 {
    color: #fafaf9 !important;
}

body[data-theme="light"] .hero-bg h1 .text-\[\#FF6200\] {
    color: #ff6a00 !important;
}

body[data-theme="light"] .hero-bg a.bg-\[\#FF6200\] {
    color: #18181b !important;
    box-shadow: 0 18px 45px -24px rgba(255, 98, 0, 0.6);
}

body[data-theme="light"] .hero-bg .bg-\[\#121826\] {
    background: #182033 !important;
}

body[data-theme="light"] .hero-bg .bg-zinc-950.rounded-2xl {
    background: linear-gradient(180deg, #111827 0%, #0b1220 100%) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

body[data-theme="light"] .hero-bg .bg-white\/10.hover\:bg-white\/20 {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

body[data-theme="light"] .hero-bg .bg-zinc-950.rounded-2xl .fa-play,
body[data-theme="light"] .hero-bg .bg-zinc-950.rounded-2xl .text-white\/60 {
    color: #f8fafc !important;
}

body[data-theme="light"] #plataformas h2 {
    color: #18181b !important;
}

body[data-theme="light"] #plataformas p {
    color: #52525b !important;
}

body[data-theme="light"] #plataformas article h4,
body[data-theme="light"] #plataformas article .text-white,
body[data-theme="light"] #plataformas article .line-through,
body[data-theme="light"] #plataformas article p {
    color: #18181b !important;
}

body[data-theme="light"] #plataformas article .line-through {
    color: #64748b !important;
}

body[data-theme="light"] #plataformas .tab-button.is-inactive {
    background: #ffffff !important;
    border: 1px solid #dbe4ee !important;
    color: #334155 !important;
    box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.16);
}

body[data-theme="light"] #plataformas .tab-button.is-active {
    color: #18181b !important;
}

body[data-theme="light"] #plataformas .tab-button.is-inactive:hover {
    background: #fff7ed !important;
    border-color: #fdba74 !important;
    color: #18181b !important;
}

body[data-theme="light"] #plataformas article a {
    color: #18181b !important;
}

body[data-theme="light"] #plataformas article {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-color: #dbe4ee !important;
    box-shadow: 0 20px 45px -28px rgba(15, 23, 42, 0.18);
}

body[data-theme="light"] #plataformas article img {
    filter: none;
}

body[data-theme="light"] #plataformas article .bg-white.rounded-3xl {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

body[data-theme="light"] #plataformas article .text-\[\#22C55E\] {
    color: #16a34a !important;
}

body[data-theme="light"] #plataformas article a.bg-gradient-to-r {
    color: #ffffff !important;
}

body[data-theme="light"] main section:last-of-type .bg-zinc-800\/50 {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.14);
}

body[data-theme="light"] main section:last-of-type .bg-zinc-800\/50 h4 {
    color: #18181b !important;
}

body[data-theme="light"] main section:last-of-type .bg-zinc-800\/50 p {
    color: #52525b !important;
}

.logo-font {
    font-family: 'Space Grotesk', sans-serif;
}

/* ==================== TARJETAS DE PRODUCTOS ==================== */
.product-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f3f4f6;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
}

.product-card:hover {
    box-shadow: 0 20px 40px -18px rgba(255, 98, 0, 0.12);
    transform: translateY(-4px);
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 98, 0, 0.02), transparent 24%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.sale-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 98, 0, 0.2);
}

.stock-badge {
    position: absolute;
    top: 14px;
    right: 64px;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 9999px;
    max-width: calc(100% - 132px);
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    z-index: 10;
    box-shadow: 0 6px 14px -10px rgba(0, 0, 0, 0.5);
}

.wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: #18181b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wishlist-btn:hover {
    transform: scale(1.04);
    color: #ff6200;
    border-color: rgba(255, 98, 0, 0.22);
}

.wishlist-btn.is-active {
    background: #ff6200;
    color: #ffffff;
    border-color: transparent;
}

.product-card .content {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h4 {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-container {
    margin-top: auto;
    padding-top: 10px;
    min-height: 42px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 14.5px;
}

.current-price {
    color: var(--accent);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

/* Botón Añadir al carrito */
button[onclick*="quickAddToCart"],
.add-to-cart-btn {
    margin-top: 14px;
    width: 100%;
    background: #111827;
    color: white;
    border: none;
    padding: 13px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

button[onclick*="quickAddToCart"]:hover,
.add-to-cart-btn:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

/* ==================== VISTA LISTA ==================== */
#products-grid.is-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#products-grid.is-list .product-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 180px;
}

#products-grid.is-list .product-card .relative {
    width: 220px;
    height: auto;
    flex-shrink: 0;
}

#products-grid.is-list .product-card .content {
    padding: 20px 24px;
}

#products-grid.is-list .product-card .price-container {
    margin-top: 8px;
}

#products-grid.is-list .product-card .add-to-cart-btn {
    width: auto;
    align-self: flex-start;
    padding: 10px 20px;
}

#products-grid.is-list .product-card h4 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

#products-grid.is-list .stock-badge {
    right: 14px;
    top: 14px;
}

#view-grid-btn.is-active,
#view-list-btn.is-active {
    background: #ff6200;
    color: #111827;
}

/* ==================== RECOMENDADOS ==================== */

/* ==================== ACORDEON PLATAFORMAS ==================== */
.streaming-accordion {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
}

@media (min-width: 640px) {
    .streaming-accordion {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .streaming-accordion {
        display: flex;
        gap: 22px;
        align-items: stretch;
    }

    .streaming-accordion .accordion-card {
        flex: 1 1 0;
        transition: flex 0.35s ease, transform 0.25s ease, box-shadow 0.25s ease;
        min-width: 0;
    }

    .streaming-accordion:hover .accordion-card {
        flex: 0.9 1 0;
    }

    .streaming-accordion .accordion-card:hover,
    .streaming-accordion .accordion-card:focus-within {
        flex: 1.35 1 0;
        transform: translateY(-4px);
        box-shadow: 0 26px 60px -26px rgba(255, 98, 0, 0.35);
    }
}

/* ==================== RECOMENDADOS ==================== */

/* ==================== FILTROS (PILLS) ==================== */
.category-pill,
.brand-pill,
.inch-pill {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-pill.active,
.brand-pill.active,
.inch-pill.active {
    background-color: var(--accent) !important;
    color: #111827 !important;
    border-color: var(--accent) !important;
    font-weight: 600;
}

/* ==================== DOBLE SLIDER DE PRECIO (Corregido) ==================== */
.price-range-container {
    position: relative;
    height: 48px;
    margin-top: 12px;
}

.price-range-container::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 19px;
    height: 6px;
    background: #3f3f46;
    border-radius: 9999px;
    z-index: 1;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    position: absolute;
    top: 19px;
    z-index: 2;
    pointer-events: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 22px;
    width: 22px;
    background: var(--accent);
    border: 3px solid #111827;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 5px rgba(255, 98, 0, 0.3);
    pointer-events: auto;
}

input[type="range"]::-moz-range-thumb {
    height: 22px;
    width: 22px;
    background: var(--accent);
    border: 3px solid #111827;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 5px rgba(255, 98, 0, 0.3);
}

#price-min-range {
    z-index: 4;
}

#price-max-range {
    z-index: 3;
}

/* ==================== GRID DE PRODUCTOS ==================== */
#products-grid,
#wishlist-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 22px;
    padding: 20px 0;
}

@media (min-width: 640px) {
    #products-grid,
    #wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    #products-grid,
    #wishlist-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    #products-grid,
    #wishlist-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

#products-pagination {
    display: flex;
    justify-content: center;
}

.pagination-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.pagination-summary {
    color: #a1a1aa;
    font-size: 0.95rem;
    text-align: center;
}

.pagination-controls {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(24, 24, 27, 0.88);
    color: #f4f4f5;
    min-width: 48px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(255, 98, 0, 0.45);
    background: rgba(255, 98, 0, 0.14);
    color: #ffffff;
}

.pagination-btn.is-active {
    background: linear-gradient(135deg, #ff6200, #ff8a3d);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 16px 30px -16px rgba(255, 98, 0, 0.8);
}

.pagination-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: #71717a;
    padding: 0 4px;
    font-weight: 700;
}

.faq-item {
    box-shadow: 0 14px 40px -30px rgba(0, 0, 0, 0.7);
}

.faq-item:hover {
    border-color: rgba(255, 98, 0, 0.28);
    transform: translateY(-1px);
}

.faq-question.is-open .faq-icon {
    background: #ff6200;
    border-color: transparent;
    color: #ffffff;
    transform: rotate(180deg);
}

.faq-question.is-open + .faq-answer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
}

.faq-sidecard {
    position: sticky;
    top: 120px;
    box-shadow: 0 24px 60px -42px rgba(255, 98, 0, 0.35);
}

.proforma-shell,
.proforma-summary {
    box-shadow: 0 24px 70px -42px rgba(0, 0, 0, 0.48);
}

.proforma-summary {
    position: sticky;
    top: 118px;
}

.proforma-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
}

.proforma-section-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.proforma-step {
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: rgba(255, 98, 0, 0.16);
    color: #ff6200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.proforma-section-head h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.proforma-section-head p {
    margin-top: 6px;
    color: #a1a1aa;
    line-height: 1.6;
}

.proforma-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proforma-field > span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f4f4f5;
}

.proforma-field input:not([type="checkbox"]),
.proforma-field select,
.proforma-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.proforma-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 48px;
    background-color: rgba(15, 23, 42, 0.72);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23F8FAFC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 12px;
}

.proforma-field input:not([type="checkbox"])::placeholder,
.proforma-field textarea::placeholder {
    color: #71717a;
}

.proforma-field input:not([type="checkbox"]):focus,
.proforma-field select:focus,
.proforma-field textarea:focus {
    border-color: rgba(255, 98, 0, 0.75);
    box-shadow: 0 0 0 4px rgba(255, 98, 0, 0.14);
}

.proforma-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.proforma-check-grid label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.55);
    color: #e4e4e7;
    cursor: pointer;
    min-height: 72px;
}

.proforma-check-grid input {
    accent-color: #ff6200;
    flex-shrink: 0;
    width: 18px !important;
    height: 18px !important;
    margin: 2px 0 0;
}

.proforma-check-grid label span {
    line-height: 1.35;
    font-weight: 600;
    text-align: left;
    color: inherit;
    overflow-wrap: anywhere;
}

.proforma-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.proforma-summary-row span {
    color: #a1a1aa;
    font-size: 0.92rem;
}

.proforma-summary-row strong {
    color: #f8fafc;
    text-align: right;
    font-size: 0.95rem;
}

body[data-theme="light"] .proforma-shell,
body[data-theme="light"] .proforma-summary {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #e4e4e7 !important;
    box-shadow: 0 22px 55px -38px rgba(15, 23, 42, 0.16);
}

body[data-theme="light"] .proforma-section {
    background: #fafafc;
    border-color: #e5e7eb;
}

body[data-theme="light"] .proforma-section-head p,
body[data-theme="light"] .proforma-summary-row span {
    color: #52525b !important;
}

body[data-theme="light"] .proforma-field span,
body[data-theme="light"] .proforma-summary-row strong {
    color: #18181b !important;
}

body[data-theme="light"] .proforma-field input:not([type="checkbox"]),
body[data-theme="light"] .proforma-field select,
body[data-theme="light"] .proforma-field textarea,
body[data-theme="light"] .proforma-check-grid label,
body[data-theme="light"] .proforma-summary-row {
    background-color: #ffffff;
    border-color: #dbe4ee;
    color: #18181b;
}

body[data-theme="light"] .proforma-field select {
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2318181B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 12px 12px !important;
}

@media (max-width: 640px) {
    #products-grid,
    #wishlist-grid {
        gap: 20px;
    }

    .product-card {
        border-radius: 20px;
    }

    .product-card h4 {
        font-size: 15.5px;
    }

    .current-price {
        font-size: 21px;
    }

    .pagination-controls {
        gap: 10px;
    }

    .pagination-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0 14px;
        font-size: 0.9rem;
    }

    .pagination-arrow {
        width: 100%;
    }

    .faq-sidecard {
        position: static;
        top: auto;
    }

    .proforma-check-grid {
        grid-template-columns: 1fr;
    }

    .proforma-section {
        padding: 20px;
    }

    .proforma-summary {
        position: static;
        top: auto;
    }
}

/* ==================== CARRUSEL RECOMENDADOS ==================== */
#recommended-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 12px 0;
    overflow-y: visible;
    scroll-padding: 16px;
    align-items: stretch;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#recommended-track::-webkit-scrollbar {
    display: none;
}

#recommended-track .product-card {
    height: 460px;
    min-height: 460px;
    scroll-snap-align: start;
}

#recommended-track .product-card .content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#recommended-track .product-card .price-container {
    margin-top: auto;
}

#recommended-track .product-card .add-to-cart-btn {
    margin-top: 14px;
}

#recently-viewed-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 12px 0;
    align-items: stretch;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#recently-viewed-track::-webkit-scrollbar {
    display: none;
}

#recently-viewed-track .product-card {
    flex: 0 0 290px;
    width: 290px;
    min-width: 290px;
    height: 460px;
    min-height: 460px;
    scroll-snap-align: start;
}

@media (max-width: 640px) {
    #recommended-track {
        padding: 12px 16px 20px;
    }

    #recently-viewed-track {
        padding: 12px 16px 20px;
    }

    .product-card.min-w-\[290px\] {
        min-width: 86vw;
    }

    #recommended-track .product-card {
        height: 440px;
        min-height: 440px;
    }

    #recently-viewed-track .product-card {
        flex-basis: 86vw;
        width: 86vw;
        min-width: 86vw;
        height: 440px;
        min-height: 440px;
    }
}

/* ==================== CARRITO ==================== */
#cart-panel>div {
    max-width: 100%;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.cart-dialog {
    animation: fadeIn 0.25s ease forwards;
}

#cart-clear-btn:disabled {
    pointer-events: none;
}

.cart-item-card,
.cart-placeholder {
    box-shadow: 0 8px 24px -18px rgba(17, 24, 39, 0.35);
}

@media (min-width: 640px) {
    #cart-panel>div {
        max-width: 420px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

@media (max-width: 640px) {
    #cart-panel>div {
        height: 85vh;
        margin-top: auto;
    }

    #cart-items {
        max-height: 55vh;
        overflow-y: auto;
    }
}

/* ==================== FILTROS EN MÓVIL ==================== */
.filters-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 12px;
}

.filters-container::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1023px) {
    #filters-content {
        display: none;
    }

    #filters-content.active {
        display: block;
        animation: fadeIn 0.3s ease forwards;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================== CARDS ====================== */
.card {
    background: #1E2937;
    border: 1px solid #334155;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: visible;
    /* Importante para etiquetas flotantes */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-2px);
    border-color: #64748B;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Card POPULAR - Destacada */
.popular-card {
    border: 1px solid #A78BFA;
    background: linear-gradient(145deg, #1E2937, #0F172A);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.25);
}

.popular-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* Neon glow para mockup */
.neon-glow {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* ====================== ANIMACIÓN CIRCULAR ELEGANTE ====================== */
.blob {
    animation: circularOrbit 16s linear infinite;
    animation-play-state: running;
    transition: transform 0.28s ease, filter 0.28s ease;
    transform-origin: center;
    opacity: 0.92;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Pausa al hacer hover */
.blob:hover {
    animation-play-state: paused;
    transform: translateZ(0) scale(1.06);
    filter: brightness(1.04);
}

/* Animación circular precisa + regreso a posición */
@keyframes circularOrbit {
    0% {
        transform: translate(0px, 0px) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(36px, -26px) rotate(90deg) scale(1.03);
    }

    50% {
        transform: translate(0px, -40px) rotate(180deg) scale(0.99);
    }

    75% {
        transform: translate(-36px, -26px) rotate(270deg) scale(1.02);
    }

    100% {
        transform: translate(0px, 0px) rotate(360deg) scale(1);
    }
}

/* Variante más lenta y suave */
.blob-slow {
    animation-duration: 22s;
}

/* Brillo sutil y elegante */
.blob::after {
    content: '';
    position: absolute;
    inset: -40%;
    opacity: 0;
    border-radius: 50%;
    z-index: -1;
    transition: opacity 0.6s ease;
}

.blob:hover::after {
    opacity: 0.6;
}

/* ====================== PESTAÑAS ====================== */
.tab-button {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.tab-button.is-active {
    background: #ff6200;
    color: #ffffff;
    box-shadow: 0 12px 30px -18px rgba(255, 98, 0, 0.65);
}

.tab-button.is-inactive {
    background: #1e2937;
    color: #94a3b8;
}

.tab-button.is-inactive:hover {
    background: #334155;
    color: #ffffff;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Centrado de pestañas en desktop */
@media (min-width: 768px) {
    #tabs {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* En móvil se mantiene scroll horizontal */
@media (max-width: 767px) {
    #tabs {
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    .blob {
        animation-duration: 28s;
    }

    #recommended-track {
        gap: 16px;
    }
}



@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    #recommended-track .product-card,
    #recently-viewed-track .product-card,
    .product-card.min-w-\[290px\] {
        min-width: 82vw;
    }

    #cart-panel>div {
        max-width: 100%;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

    #search-bar {
        padding-left: 16px;
        padding-right: 16px;
    }

    #search-bar button {
        position: static;
        transform: none;
        margin-top: 12px;
        width: 100%;
    }

    #search-input {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }
}
