/* ============================================================
   QIRU CENTER — Premium Furniture & Mattress Store
   Palette: clean white · black nav · red accent · natural wood
   ============================================================ */

:root {
    --bg:        #FFFFFF;
    --bg2:       #F7F5F2;
    --bg-light:  #F7F5F2;
    --bg-light2: #EDE8DF;
    --gold:      #8B6940;
    --gold-lt:   #A07848;
    --wood:      #8B6940;
    --wood-dk:   #6B4E2A;
    --accent:    #C8102E;
    --accent-dk: #A00D25;
    --cream:     #F0EAE0;
    --td:        #1A1612;
    --tm:        #5A5248;
    --tl:        #1A1612;
    --tmu:       rgba(26,22,18,0.5);
    --brd:       rgba(26,22,18,0.1);
    --brl:       rgba(26,22,18,0.08);
    --fh:        'Cormorant Garamond', Georgia, serif;
    --fb:        'Inter', system-ui, sans-serif;
    --ease:      cubic-bezier(0.16,1,0.3,1);
    --ease2:     cubic-bezier(0.76,0,0.24,1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
    background: var(--bg);
    color: var(--td);
    font-family: var(--fb);
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
}
img { max-width:100%; display:block; }
a { cursor:none; }
button { cursor:none; }

/* ── CUSTOM CURSOR ─────────────────────────────────── */
.cursor {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed; top:0; left:0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    transition: transform .1s, background .3s;
}
.cursor-follower {
    width: 30px; height: 30px;
    border: 1px solid rgba(200,16,46,.3);
    border-radius: 50%;
    position: fixed; top:0; left:0;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    transition: width .3s var(--ease), height .3s var(--ease),
                border-color .3s, transform .08s linear;
}
body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower,
body:has(.product-card:hover) .cursor-follower {
    width: 50px; height: 50px;
    border-color: rgba(200,16,46,.5);
}

/* ── LOADER ────────────────────────────────────────── */
.loader {
    position: fixed; inset: 0;
    background: #1a1a1a;
    z-index: 10000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1.2rem;
    transition: opacity .7s var(--ease), visibility .7s;
}
.loader.out { opacity: 0; visibility: hidden; pointer-events:none; }

.loader-logo {
    font-family: var(--fh);
    font-size: 2.2rem; font-weight: 400;
    letter-spacing: .45em;
    color: #F4F0EA;
}
.loader-tagline {
    font-size: .65rem; letter-spacing: .3em;
    text-transform: uppercase; color: var(--accent);
}
.loader-bar {
    width: 180px; height: 1px;
    background: rgba(255,255,255,.15); overflow: hidden; margin-top: .5rem;
}
.loader-fill {
    height: 100%; width: 0%;
    background: var(--accent);
    animation: loadFill 1.9s var(--ease2) forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ── NAVIGATION ────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 68px;
    padding: 0 4rem;
    background: #1a1a1a;
    display: flex; align-items: center; gap: 2rem;
    transition: background .4s, box-shadow .4s;
}
.nav.scrolled {
    background: rgba(20,20,20,.97);
    backdrop-filter: blur(24px) saturate(120%);
    box-shadow: 0 1px 0 rgba(255,255,255,.07);
}

/* Logo */
.nav-logo {
    text-decoration: none;
    display: flex; align-items: center; gap: .65rem;
    flex-shrink: 0;
}
.nav-logo img {
    height: 38px; width: 38px;
    border-radius: 50%; object-fit: cover;
    display: block;
}
.nav-brand-title {
    font-family: var(--fh);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .25em;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    pointer-events: none;
}
.nav-logo-text {
    font-family: var(--fh);
    font-size: 1.15rem; font-weight: 400;
    letter-spacing: .3em;
    color: #F4F0EA;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Links */
.nav-links {
    display: flex; gap: 2rem;
    flex-shrink: 0;
}
.nav-link {
    font-size: .72rem; font-weight: 400;
    letter-spacing: .16em; text-transform: uppercase;
    color: rgba(244,240,234,.55); text-decoration: none;
    transition: color .3s;
    position: relative; white-space: nowrap;
}
.nav-link::after {
    content: ''; position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width .35s var(--ease);
}
.nav-link:hover { color: #F4F0EA; }
.nav-link:hover::after { width: 100%; }

/* Search — ocupa el espacio restante */
.nav-search {
    position: relative;
    flex: 1;
    max-width: 300px;
    margin-left: auto;
}
.nav-search-box {
    display: flex; align-items: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50px;
    padding: .38rem .9rem; gap: .5rem;
    transition: border-color .3s, background .3s;
}
.nav-search-box:focus-within {
    border-color: var(--accent);
    background: rgba(255,255,255,.15);
}
.nav-search-icon { color: rgba(244,240,234,.5); flex-shrink: 0; }
.nav-search-input {
    flex: 1; background: none; border: none; outline: none;
    color: #F4F0EA; font-family: var(--fb);
    font-size: .78rem; font-weight: 300; min-width: 0;
}
.nav-search-input::placeholder { color: rgba(244,240,234,.4); }
.nav-search-clear {
    background: none; border: none;
    color: rgba(244,240,234,.45); font-size: .7rem;
    display: flex; align-items: center;
    cursor: none; padding: 0; transition: color .2s;
}
.nav-search-clear:hover { color: #F4F0EA; }

/* Right actions */
.nav-right {
    display: flex; align-items: center; gap: .75rem;
    flex-shrink: 0;
}
.nav-cta {
    padding: .48rem 1.2rem;
    border: 1px solid var(--accent); color: var(--accent);
    font-family: var(--fb); font-size: .68rem;
    font-weight: 500; letter-spacing: .14em;
    text-transform: uppercase; text-decoration: none;
    transition: all .3s; white-space: nowrap;
    border-radius: 3px;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

/* Search toggle (solo móvil) */
.nav-search-toggle {
    display: none; align-items: center; justify-content: center;
    background: none; border: none;
    color: rgba(244,240,234,.7); padding: .3rem;
    transition: color .2s;
}
.nav-search-toggle:hover { color: var(--accent); }

/* Hamburger (tablet + móvil) */
.nav-hamburger {
    display: none; flex-direction: column;
    justify-content: center; gap: 5px;
    background: none; border: none;
    padding: 4px; width: 32px; height: 32px;
}
.nav-hamburger span {
    display: block; width: 22px; height: 1.5px;
    background: #F4F0EA; transition: all .3s;
    border-radius: 2px;
}

/* ── BÚSQUEDA MÓVIL (desplegable) ──────────────────── */
.nav-search-mobile {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: .65rem 1.2rem;
    z-index: 999;
    display: none;
}
.nav-search-mobile.open { display: block; }
.nav-search-mobile .nav-search-box { border-radius: 8px; }
.nav-search-mobile .search-results { left: 0; right: 0; min-width: unset; }

/* Resultados */
.search-results {
    position: absolute;
    top: calc(100% + .6rem);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--brd);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,.15);
    z-index: 9999;
    max-height: 420px;
    overflow-y: auto;
    display: none;
}
.search-results.open { display: block; }
.sr-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem 1rem;
    cursor: pointer;
    transition: background .2s;
    border-bottom: 1px solid var(--brd);
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: rgba(200,16,46,.05); }
.sr-img {
    width: 48px; height: 48px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 6px;
    flex-shrink: 0;
}
.sr-img--placeholder { background: #eee; }
.sr-info { flex: 1; min-width: 0; }
.sr-name {
    font-size: .8rem; font-weight: 400;
    color: var(--td);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sr-cat {
    font-size: .65rem; color: var(--tmu);
    letter-spacing: .1em; text-transform: uppercase;
    margin-top: .15rem;
}
.sr-price {
    font-family: var(--fh);
    font-size: .95rem;
    color: var(--accent);
    flex-shrink: 0;
}
.sr-empty {
    padding: 1.2rem 1rem;
    font-size: .8rem;
    color: var(--tmu);
    text-align: center;
}

/* ── NAV RIGHT ─────────────────────────────────────── */
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-cart {
    position: relative;
    background: none; border: none;
    color: rgba(244,240,234,.6); padding: 4px;
    transition: color .3s;
}
.nav-cart:hover { color: var(--accent); }
.cart-badge {
    position: absolute; top: -4px; right: -6px;
    width: 18px; height: 18px;
    background: var(--accent); color: #fff;
    border-radius: 50%;
    font-size: .6rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    transition: transform .3s var(--ease);
}
.cart-badge.bump { transform: scale(1.4); }

/* ── CART OVERLAY ───────────────────────────────────── */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1100;
    opacity: 0; pointer-events: none;
    transition: opacity .4s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* ── CART SIDEBAR ───────────────────────────────────── */
.cart-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 420px; max-width: 95vw;
    background: #fff;
    border-left: 1px solid var(--brd);
    z-index: 1200;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    overflow: hidden;
}
.cart-sidebar.open { transform: translateX(0); }

.cart-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--brd);
    flex-shrink: 0;
}
.cart-title {
    font-family: var(--fh); font-size: 1.5rem;
    font-weight: 400; color: var(--td);
}
.cart-close {
    background: none; border: none;
    color: var(--tmu); font-size: 1.2rem;
    transition: color .3s;
}
.cart-close:hover { color: var(--td); }

.cart-items {
    flex: 1; overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.cart-empty {
    color: var(--tmu); font-size: .85rem;
    text-align: center; margin-top: 2rem;
}

.cart-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--brd);
}
.cart-item-img {
    width: 60px; height: 60px;
    object-fit: contain; background: #fff;
    border-radius: 3px; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name {
    font-family: var(--fh); font-size: 1rem;
    color: var(--td); line-height: 1.3;
    margin-bottom: .3rem;
}
.cart-item-price { font-size: .85rem; color: var(--accent); }
.cart-item-remove {
    background: none; border: none;
    color: var(--tmu); font-size: .85rem;
    transition: color .3s; flex-shrink: 0;
}
.cart-item-remove:hover { color: #e05; }

.cart-foot {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--brd);
    flex-shrink: 0;
    display: flex; flex-direction: column; gap: 1.2rem;
}
.cart-total-row {
    display: flex; justify-content: space-between;
    align-items: center;
}
.cart-total-row span:first-child {
    font-size: .75rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--tmu);
}
.cart-total-val {
    font-family: var(--fh); font-size: 1.8rem;
    color: var(--accent);
}

/* Payment info in cart */
.cart-payment {
    background: #f8f8f8;
    border: 1px solid var(--brd);
    border-radius: 4px;
    padding: 1rem 1.2rem;
    display: flex; flex-direction: column; gap: .6rem;
}
.pay-title {
    font-size: .65rem; letter-spacing: .25em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: .3rem;
}
.pay-item {
    display: flex; justify-content: space-between;
    align-items: center; gap: .5rem;
}
.pay-bank {
    font-size: .72rem; color: var(--tm);
    flex-shrink: 0;
}
.pay-num {
    font-size: .72rem; color: var(--td);
    font-family: monospace; letter-spacing: .05em;
    text-align: right;
}
.pay-item.yape .pay-bank { color: #7C3AED; }
.pay-item.yape .pay-num { color: #A78BFA; font-size: .85rem; font-weight: 600; }
.pay-name {
    font-size: .72rem; color: var(--tm);
    padding-top: .4rem;
    border-top: 1px solid var(--brd);
}
.pay-name strong { color: var(--td); }
.cart-confirm { width: 100%; justify-content: center; font-size: .78rem; }

/* ── FILTER DUAL (Tamaños + Líneas) ─────────────────── */
.filter-dual {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 5rem 2rem;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--brd);
    margin-bottom: .8rem;
}
.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.filter-group-label {
    font-family: var(--fb);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    min-width: 60px;
}
.filter-group .filter-tabs {
    padding: 0;
    flex-wrap: wrap;
    gap: .5rem;
    flex: 1;
}

/* ── FILTER TABS ────────────────────────────────────── */
.filter-tabs {
    display: flex; gap: .6rem; flex-wrap: wrap;
    padding: 0 5rem 2rem;
}
.filter-tab {
    padding: .45rem 1.2rem;
    background: transparent;
    border: 1px solid var(--brd);
    color: var(--tm);
    font-family: var(--fb); font-size: .72rem;
    font-weight: 400; letter-spacing: .12em;
    text-transform: uppercase;
    transition: all .3s;
}
.filter-tab:hover { color: var(--td); border-color: rgba(26,22,18,.3); }
.filter-tab.active {
    background: #1a1a1a; color: #fff;
    border-color: #1a1a1a;
}
.light-section .filter-tab {
    border-color: var(--brl); color: var(--tm);
}
.light-section .filter-tab:hover { color: var(--td); }
.light-section .filter-tab.active {
    background: var(--wood-dk); color: #fff;
    border-color: var(--wood-dk);
}

/* ── SOCIAL ─────────────────────────────────────────── */
.footer-social { display: flex; justify-content: center; }
.social-link {
    display: flex; align-items: center; gap: .6rem;
    font-size: .75rem; letter-spacing: .15em;
    text-transform: uppercase; text-decoration: none;
    transition: all .3s; padding: .6rem 1.4rem;
    border: 1px solid var(--brd);
}
.social-link.tiktok { color: rgba(244,240,234,.55); border-color: rgba(255,255,255,.15); }
.social-link.tiktok:hover { color: #F4F0EA; border-color: rgba(244,240,234,.45); }

/* ── ADD TO CART BUTTON ─────────────────────────────── */
.btn-add-cart {
    display: flex; align-items: center; justify-content: center;
    gap: .5rem; width: 100%;
    padding: .7rem 1rem; margin-top: 0;
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    color: #fff;
    font-family: var(--fb); font-size: .75rem;
    font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase;
    transition: all .35s;
    cursor: pointer;
    position: relative;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
}
.btn-add-cart:hover {
    background: var(--accent); border-color: var(--accent); color: #fff;
    box-shadow: 0 4px 20px rgba(200,16,46,.3);
}

/* ── Size selector buttons on cards ── */
.card-size-btns {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 8px 0 6px;
}
.card-size-btn {
    padding: 4px 12px;
    border: 1.5px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}
.card-size-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}
.card-size-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

@media (max-width: 768px) {
    .filter-tabs { padding: 0 2rem 2rem; }
    .filter-dual { padding: 0 2rem 2rem; }
    .filter-group { gap: .8rem; }
    .filter-group-label { min-width: 50px; font-size: .6rem; }
}

/* ── MOBILE NAV ───────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed; inset: 0;
    background: #1a1a1a;
    z-index: 999;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2.5rem;
    opacity: 0; pointer-events: none;
    transition: opacity .4s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav-close {
    position: absolute; top: 2rem; right: 2.5rem;
    background: none; border: none; color: rgba(244,240,234,.55);
    font-size: 1.4rem; transition: color .3s;
}
.mobile-nav-close:hover { color: #F4F0EA; }
.mobile-nav-link {
    font-family: var(--fh); font-size: 3rem; font-weight: 300;
    color: #F4F0EA; text-decoration: none;
    transition: color .3s;
}
.mobile-nav-link:hover { color: var(--accent); }

/* ── HERO ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: hidden;
    background: #1a1a1a;
}
.hero-layer {
    position: absolute; inset: 0; pointer-events: none;
}
.layer-warm {
    background: radial-gradient(ellipse 65% 75% at 70% 48%,
        rgba(200,16,46,.06) 0%, transparent 70%);
}
.layer-ambient {
    background: radial-gradient(ellipse 45% 50% at 15% 85%,
        rgba(200,16,46,.03) 0%, transparent 65%);
}

/* Hero content */
.hero-content {
    padding: 0 4rem 0 5rem;
    position: relative; z-index: 2;
}
.hero-tag {
    display: inline-block;
    font-size: .65rem; letter-spacing: .32em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 2rem;
    opacity: 0; transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero-tag.show { opacity: 1; transform: translateY(0); }

.hero-title {
    font-family: var(--fh);
    font-size: clamp(4rem,7vw,7.5rem);
    font-weight: 300; line-height: .93;
    color: #F4F0EA; margin-bottom: 1.6rem;
    overflow: hidden;
}
.hero-title .line-1,
.hero-title .line-2 {
    display: block;
    opacity: 0; transform: translateY(90px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.hero-title .line-1.show { opacity: 1; transform: translateY(0); }
.hero-title .line-2.show { opacity: 1; transform: translateY(0); }
.hero-title em { font-style: italic; color: var(--wood); }

.hero-desc {
    font-size: .95rem; font-weight: 300;
    color: rgba(244,240,234,.6); max-width: 390px; line-height: 1.75;
    margin-bottom: 2.5rem;
    opacity: 0; transform: translateY(22px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero-desc.show { opacity: 1; transform: translateY(0); }

.hero-actions {
    display: flex; gap: 1.5rem; align-items: center;
    opacity: 0; transform: translateY(22px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero-actions.show { opacity: 1; transform: translateY(0); }

/* Hero visual */
.hero-visual {
    position: relative; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
}
.scene {
    position: relative;
    width: 460px; height: 380px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .08s linear;
}
.mattress-float {
    position: relative;
    animation: mattFloat 9s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: transform .5s var(--ease);
}
@keyframes mattFloat {
    0%,100% { transform: translateY(0) rotate(-1.5deg); }
    25%      { transform: translateY(-22px) rotate(-.5deg); }
    50%      { transform: translateY(-34px) rotate(1deg); }
    75%      { transform: translateY(-16px) rotate(.2deg); }
}

/* ── ISOMETRIC MATTRESS CSS ART ── */
.mattress-iso {
    position: relative;
    width: 300px; height: 110px;
    transform-style: preserve-3d;
}
/* Top face */
.m-top {
    position: absolute;
    width: 300px; height: 190px;
    top: -80px; left: 0;
    background: linear-gradient(148deg,
        #F5F0E8 0%, #EDE5D5 35%, #E0D5C0 70%, #D4C8AE 100%);
    transform: skewY(-18deg) skewX(-2deg);
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    box-shadow: 0 -6px 30px rgba(0,0,0,.18);
}
.quilted-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(ellipse at center, rgba(255,255,255,.45) 2px, transparent 2px),
        radial-gradient(ellipse at center, rgba(0,0,0,.06) 3px, transparent 3px);
    background-size: 38px 32px, 38px 32px;
    background-position: 0 0, 19px 16px;
}
.m-top::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(255,255,255,.12) 0%, transparent 30%,
        transparent 70%, rgba(0,0,0,.06) 100%);
}
.m-brand {
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--fh); font-size: .6rem;
    letter-spacing: .28em; text-transform: uppercase;
    color: rgba(90,70,45,.5);
    white-space: nowrap;
}
/* Front face */
.m-front {
    position: absolute;
    width: 300px; height: 56px;
    bottom: 0; left: 0;
    background: linear-gradient(180deg, #C4B8A5 0%, #A89888 55%, #948070 100%);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    gap: 10px; padding: 8px 16px;
}
.m-front::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.m-front-stripe {
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,.18) 50%, transparent 95%);
}
/* Side face */
.m-side {
    position: absolute;
    width: 52px; height: 56px;
    right: -26px; bottom: 0;
    background: linear-gradient(135deg, #B0A490 0%, #948070 100%);
    transform: skewY(-30deg);
    transform-origin: top left;
}
.m-side::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,.2);
}

/* Pillows */
.pillow {
    position: absolute;
    border-radius: 44px;
    box-shadow: 0 6px 24px rgba(0,0,0,.25),
                inset 0 1px 4px rgba(255,255,255,.5);
    animation: pillFloat 7s ease-in-out infinite;
}
.p1 {
    width: 88px; height: 55px;
    background: linear-gradient(140deg, #F5F0E8, #E5DDD0);
    top: -118px; left: 18px;
    animation-delay: -1.2s;
}
.p2 {
    width: 88px; height: 55px;
    background: linear-gradient(140deg, #EDE8DE, #DAD0C2);
    top: -118px; left: 116px;
    animation-delay: -3.5s;
}
@keyframes pillFloat {
    0%,100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-10px) rotate(2deg); }
}
.mattress-img {
    width: 420px;
    max-width: 90vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,.55));
    border-radius: 8px;
}

.mattress-glow {
    position: absolute; bottom: -28px; left: 50%;
    transform: translateX(-50%);
    width: 260px; height: 28px;
    background: radial-gradient(ellipse, rgba(192,154,70,.22) 0%, transparent 70%);
    animation: glowPulse 9s ease-in-out infinite;
}
@keyframes glowPulse {
    0%,100% { opacity: .6; transform: translateX(-50%) scaleX(1); }
    50%      { opacity: 1;  transform: translateX(-50%) scaleX(.82); }
}

/* Dust particles */
.dust-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dust {
    position: absolute;
    width: 3px; height: 3px;
    background: rgba(192,154,70,.35);
    border-radius: 50%;
    animation: dustFloat linear infinite;
}
@keyframes dustFloat {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: .6; }
    100% { transform: translateY(-120px) translateX(var(--dx,20px)) scale(0); opacity: 0; }
}

/* Hero scroll hint */
.hero-scroll {
    position: absolute; bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: .7rem; z-index: 2;
}
.scroll-mouse {
    width: 23px; height: 38px;
    border: 1px solid rgba(244,240,234,.18);
    border-radius: 12px;
    display: flex; align-items: flex-start;
    justify-content: center; padding-top: 7px;
}
.scroll-wheel {
    width: 3px; height: 8px;
    background: var(--accent); border-radius: 2px;
    animation: scrollW 2.2s ease-in-out infinite;
}
@keyframes scrollW {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(13px); }
}
.hero-scroll span {
    font-size: .62rem; letter-spacing: .28em;
    text-transform: uppercase; color: var(--tmu);
}

/* ── BUTTONS ───────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center;
    padding: .9rem 2.1rem;
    background: var(--accent); color: #fff;
    font-family: var(--fb); font-size: .78rem;
    font-weight: 500; letter-spacing: .12em;
    text-transform: uppercase; text-decoration: none;
    position: relative; overflow: hidden;
    transition: box-shadow .3s;
}
.btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--accent-dk);
    transform: translateX(-105%);
    transition: transform .38s var(--ease);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary.glow {
    box-shadow: 0 0 40px rgba(200,16,46,.25);
}
.btn-primary.glow:hover {
    box-shadow: 0 0 70px rgba(200,16,46,.45);
}

.btn-ghost {
    display: inline-flex; align-items: center;
    padding: .9rem 2.1rem;
    background: transparent;
    color: rgba(244,240,234,.65);
    font-family: var(--fb); font-size: .78rem;
    font-weight: 300; letter-spacing: .12em;
    text-transform: uppercase; text-decoration: none;
    border: 1px solid rgba(244,240,234,.25);
    transition: all .3s;
}
.btn-ghost:hover { color: #F4F0EA; border-color: rgba(244,240,234,.55); }
.btn-ghost.light { color: rgba(244,240,234,.55); border-color: rgba(244,240,234,.18); }
.btn-ghost.light:hover { color: #F4F0EA; border-color: rgba(244,240,234,.45); }

/* ── STATEMENT ─────────────────────────────────────── */
.statement {
    padding: 10rem 5rem;
    min-height: 520px;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
/* Video background */
.statement-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Siempre cubre todo el contenedor sin distorsionar */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    display: block;
    /* Nitidez máxima: sin blur, sin escala de suavizado */
    filter: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    image-rendering: auto;
}
.statement-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(20,20,20,.55) 0%,
        rgba(20,20,20,.38) 50%,
        rgba(20,20,20,.60) 100%
    );
}
.statement-wrap { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.statement-line {
    display: flex; align-items: flex-start;
    gap: 2rem; margin-bottom: 2rem;
}
.st-dash { font-family: var(--fh); font-size: 2.4rem; color: var(--accent); line-height: 1.15; }
.st-headline {
    font-family: var(--fh);
    font-size: clamp(2.4rem, 4.5vw, 4.4rem);
    font-weight: 300; line-height: 1.08;
    color: #F4F0EA;
}
.st-body {
    font-size: .95rem; font-weight: 300;
    color: rgba(244,240,234,.6); line-height: 1.85;
    max-width: 600px; padding-left: calc(2rem + 2.4rem + 2rem);
}

/* ── PRODUCTS SECTION ──────────────────────────────── */
.products-section { padding: 8rem 0; }
.dark-section  { background: var(--bg); }
.light-section { background: var(--bg-light); }

.section-header { padding: 0 5rem; margin-bottom: 5rem; }
.section-header.dark .section-title { color: var(--td); }
.section-header.dark .section-num   { color: var(--accent); }
.section-header.dark .section-tag   { color: var(--wood-dk); }
.section-header.dark .section-sub   { color: var(--tm); }

.section-label {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1rem;
}
.section-num {
    font-family: var(--fh); font-size: .9rem; color: var(--accent);
}
.section-tag {
    font-size: .68rem; letter-spacing: .3em;
    text-transform: uppercase; color: var(--wood);
}
.section-title {
    font-family: var(--fh);
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    font-weight: 300; line-height: .97;
    color: var(--td); margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-title.dark { color: var(--td); }
.section-sub { font-size: .88rem; font-weight: 300; color: var(--tm); }
.section-sub.dark { color: var(--tm); }

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 3.5rem 3rem;
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
}
.product-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--brd);
    cursor: none;
    position: relative;
    opacity: 0; transform: translateY(44px);
    transition:
        opacity .75s var(--ease),
        transform .75s var(--ease),
        box-shadow .3s,
        border-color .3s;
    display: flex; flex-direction: column;
    background: #fff;
}
.product-card.visible { opacity: 1; transform: translateY(0); }
.dark-section  .product-card { border-color: var(--brd); background: #fff; }
.light-section .product-card { border-color: var(--brl); background: #fff; }
.product-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
    border-color: var(--accent);
    transform: translateY(-4px);
}
.light-section .product-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

/* Card visual thumbnails */
.card-visual {
    width: 100%; height: 110px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform .5s var(--ease);
}
.product-card:hover .card-visual { transform: translateY(-4px) scale(1.02); }

/* Mini mattress thumbnail */
.mini-mattress { position: relative; width: 130px; height: 54px; }
.mini-top {
    position: absolute; width: 130px; height: 45px; top: -18px; left: 0;
    background: linear-gradient(145deg, #F2EDE5, #E0D5C2);
    transform: skewY(-16deg);
    border-radius: 4px 4px 0 0; overflow: hidden;
}
.mini-top::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,.06) 1px, transparent 1px);
    background-size: 14px 12px;
}
.mini-front {
    position: absolute; width: 130px; height: 24px; bottom: 0;
    background: linear-gradient(180deg, #C4B8A5, #9A8878);
    border-radius: 0 0 3px 3px;
}
.mini-side {
    position: absolute; width: 22px; height: 24px;
    right: -11px; bottom: 0;
    background: linear-gradient(135deg, #B0A490, #9A8878);
    transform: skewY(-30deg); transform-origin: top left;
}

/* Mini bed thumbnail */
.mini-bed { position: relative; width: 130px; height: 70px; }
.bed-headboard {
    position: absolute; top: 0; left: 12px; right: 12px; height: 36px;
    background: linear-gradient(180deg, #8B6940, #6B4E2A);
    border-radius: 5px 5px 2px 2px;
}
.bed-frame {
    position: absolute; bottom: 0; left: 0; right: 0; height: 22px;
    background: linear-gradient(180deg, #9A7848, #7A5830);
    border-radius: 2px;
}
.bed-mattress-t {
    position: absolute; bottom: 20px; left: 6px; right: 6px; height: 14px;
    background: linear-gradient(180deg, #EFE8DE, #DDD5C5);
    border-radius: 2px;
}
.bed-pillow-t {
    position: absolute; bottom: 34px;
    width: 30px; height: 16px;
    background: linear-gradient(140deg, #F2EDE5, #E0D5C2);
    border-radius: 8px;
}
.bed-pillow-t.bl { left: 16px; }
.bed-pillow-t.br { right: 16px; }

/* Mini table thumbnail */
.mini-table { position: relative; width: 120px; height: 60px; }
.table-top-t {
    position: absolute; top: 0; left: 0; right: 0; height: 12px;
    background: linear-gradient(180deg, #8B6940, #7A5830);
    border-radius: 3px;
}
.table-legs-wrap {
    position: absolute; bottom: 0; left: 8px; right: 8px; height: 48px;
    display: flex; justify-content: space-between; align-items: flex-end;
}
.tleg {
    width: 7px; height: 46px;
    background: linear-gradient(180deg, #7A5830, #5A3820);
    border-radius: 2px;
}

/* Mini pillow thumbnail */
.mini-pillow-thumb {
    width: 90px; height: 58px;
    background: linear-gradient(140deg, #F5F0E8, #E8DDD0);
    border-radius: 44px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15),
                inset 0 1px 3px rgba(255,255,255,.5);
}

/* Mini crib thumbnail */
.mini-crib { position: relative; width: 110px; height: 65px; }
.crib-body {
    position: absolute; bottom: 0; left: 0; right: 0; height: 46px;
    border: 2px solid #8B6940;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(245,240,232,.1), rgba(235,225,210,.1));
}
.crib-legs-w { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 6px; }
.crib-leg { width: 5px; height: 12px; background: #7A5830; border-radius: 0 0 2px 2px; }
.crib-slats { position: absolute; inset: 6px; display: flex; justify-content: space-evenly; }
.crib-slat { width: 1.5px; height: 100%; background: rgba(139,105,64,.4); }
.crib-top {
    position: absolute; top: 0; left: 0; right: 0; height: 22px;
    background: linear-gradient(140deg, #F5F0E8 40%, transparent);
    border-radius: 6px 6px 0 0;
}

/* ── IMAGEN DE TARJETA ──────────────────────────────────── */
.card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}
.card-main-img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .4s var(--ease);
}
.product-card:hover .card-main-img { transform: scale(1.04); }

.card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #F0EDE8;
}

/* Miniaturas strip (aparece al hover) */
.card-thumbs-strip {
    position: absolute;
    bottom: .6rem; left: 0; right: 0;
    display: flex; justify-content: center; gap: .4rem;
    opacity: 0;
    transition: opacity .3s;
    padding: 0 .5rem;
}
.product-card:hover .card-thumbs-strip { opacity: 1; }
.card-thumb {
    width: 44px; height: 34px;
    object-fit: contain;
    background: #fff;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: none;
    transition: border-color .2s;
}
.card-thumb--active,
.card-thumb:hover { border-color: var(--accent); }

/* Botón favorito */
.card-fav-btn {
    position: absolute;
    bottom: .7rem; right: .7rem;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: none;
    display: flex; align-items: center; justify-content: center;
    color: #999;
    transition: color .2s, background .2s, transform .2s;
    cursor: none;
    z-index: 2;
}
.card-fav-btn:hover,
.card-fav-btn.active { color: #e84393; transform: scale(1.12); }
.card-fav-btn.active svg { fill: #e84393; }

/* ── CUERPO DE TARJETA ──────────────────────────────────── */
.card-body {
    padding: 1rem 1rem .8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── SPECS TOGGLE ───────────────────────────────────────── */
.btn-specs-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .5rem 0 .3rem;
    cursor: none;
    text-align: left;
    transition: opacity .2s;
}
.btn-specs-toggle:hover { opacity: .75; }
.card-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: .5rem;
}
.card-specs-table tr { border-bottom: 1px solid var(--brd); }
.card-specs-table tr:last-child { border-bottom: none; }
.card-specs-table .spec-key,
.card-specs-table .spec-val {
    padding: .25rem .1rem;
    font-size: .68rem;
    font-weight: 300;
}
.card-specs-table .spec-key { color: var(--tm); width: 46%; }
.card-specs-table .spec-val { color: var(--td); font-weight: 400; }
.light-section .card-specs-table .spec-key { color: var(--tm); }
.light-section .card-specs-table .spec-val { color: var(--td); }
.card-specs-table.hidden { display: none; }
.fc-specs-title {
    font-size: .62rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: .4rem;
    margin-bottom: .2rem;
}
.light-section .fc-specs-title { color: var(--accent); }
.fc-specs { width: 100%; border-collapse: collapse; }
.fc-specs tr { border-bottom: 1px solid var(--brd); }
.light-section .fc-specs tr { border-bottom: 1px solid var(--brl); }
.fc-specs tr:last-child { border-bottom: none; }
.spec-key, .spec-val {
    padding: .22rem .2rem;
    font-size: .7rem;
    font-weight: 300;
}
.spec-key { color: var(--tm); width: 48%; }
.spec-val { color: var(--td); font-weight: 400; }
.light-section .spec-key { color: var(--tm); }
.light-section .spec-val { color: var(--td); }

/* Card content */
.card-category {
    font-size: .62rem; letter-spacing: .3em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: .5rem;
    height: 1rem; overflow: hidden;
}
.light-section .card-category { color: var(--accent); }
.card-name {
    font-family: var(--fh); font-size: 1.05rem; font-weight: 400;
    color: var(--td); line-height: 1.3; margin-bottom: .3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
}
.light-section .card-name { color: var(--td); }
.card-desc {
    font-size: .75rem; color: var(--tm);
    line-height: 1.5; margin-bottom: .6rem;
    height: 1.15rem;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.light-section .card-desc { color: var(--tm); }
.card-price {
    font-family: var(--fh); font-size: 1.55rem; font-weight: 400;
    color: var(--td); line-height: 1; margin-bottom: .75rem;
    height: 1.6rem;
}
.light-section .card-price { color: var(--td); }
.card-price span {
    font-size: .75rem; font-family: var(--fb);
    font-weight: 300; color: var(--tm); margin-left: .2rem;
}

/* ── STATS STRIP ────────────────────────────────────── */
.stats-strip {
    background: #1a1a1a;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 3.5rem 5rem;
    display: flex; align-items: center;
    justify-content: space-between; gap: 2rem;
}
.stat-item {
    display: flex; flex-direction: column;
    align-items: center; gap: .4rem; flex: 1;
}
.stat-num {
    font-family: var(--fh); font-size: 3.2rem;
    font-weight: 300; color: var(--accent); line-height: 1;
}
.stat-label {
    font-size: .68rem; letter-spacing: .22em;
    text-transform: uppercase; color: rgba(244,240,234,.55);
}
.stat-divider {
    width: 1px; height: 56px; background: rgba(255,255,255,.1);
}

/* ── AMBIENTE ───────────────────────────────────────── */
.ambiente {
    background: var(--bg2);
    padding: 8rem 5rem;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6rem; align-items: center;
    border-top: 1px solid var(--brd);
}
.ambiente-tag {
    display: inline-block;
    font-size: .65rem; letter-spacing: .3em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 1.2rem;
}
.ambiente-title {
    font-family: var(--fh);
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 300; line-height: 1.08;
    color: var(--td); margin-bottom: 1.5rem;
}
.ambiente-title em { font-style: italic; color: var(--accent); }
.ambiente-desc {
    font-size: .92rem; color: var(--tm);
    line-height: 1.85; max-width: 400px; margin-bottom: 2.5rem;
}

.ambiente-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    background: #F0EDE8;
}

/* CSS Room Scene */
.ambiente-visual {
    display: flex; align-items: flex-end; justify-content: center;
    height: 340px;
}
.room-scene {
    position: relative; width: 420px; height: 300px;
    border-radius: 8px; overflow: hidden;
}
.room-wall {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #1C1814 0%, #2A2218 100%);
}
.room-floor-surface {
    position: absolute; bottom: 0; left: 0; right: 0; height: 50px;
    background: linear-gradient(180deg, #2E2418, #1A150E);
}
.room-bed-frame {
    position: absolute; bottom: 48px; left: 50%;
    transform: translateX(-50%);
    width: 270px; height: 140px;
}
.room-headboard {
    position: absolute; top: 0; left: -8px; right: -8px; height: 70px;
    background: linear-gradient(180deg, #7A5830 0%, #5A3820 100%);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 0 40px rgba(0,0,0,.4);
}
.room-mattress-layer {
    position: absolute; bottom: 20px; left: 0; right: 0; height: 30px;
    background: linear-gradient(180deg, #EFE8DE, #DDD0C0);
    border-radius: 3px;
}
.room-pillow {
    position: absolute; top: 56px;
    width: 68px; height: 36px;
    background: linear-gradient(140deg, #F2EDE5, #E0D5C2);
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,.25);
}
.room-pillow.rl { left: 20px; }
.room-pillow.rr { right: 20px; }
.room-duvet {
    position: absolute; bottom: 48px; left: 0; right: 0; height: 26px;
    background: linear-gradient(180deg, #D4C8B0 0%, #C4B8A0 100%);
    border-radius: 0 0 4px 4px;
    opacity: .75;
}
.room-nightstand {
    position: absolute; bottom: 48px; width: 46px; height: 54px;
    background: linear-gradient(180deg, #6B4E2A, #4A3215);
    border-radius: 3px;
}
.rns-l { left: calc(50% - 135px - 56px); transform: translateX(50%); }
.rns-r { right: calc(50% - 135px - 56px); transform: translateX(-50%); }
.rns-lamp {
    position: absolute; top: -36px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 28px;
    background: #7A6040;
}
.rns-lamp::before {
    content: '';
    position: absolute; top: -16px; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 16px;
    background: linear-gradient(180deg, #F0D080, #D09030);
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
    filter: drop-shadow(0 0 8px rgba(240,200,80,.45));
}
.room-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 65% 60% at 50% 80%,
        rgba(200,150,50,.07) 0%, transparent 70%);
}

/* ── CONTACTO ───────────────────────────────────────── */
.contacto {
    padding: 10rem 5rem;
    background: #1a1a1a;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.08);
    position: relative; overflow: hidden;
}
.contacto-bg-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(200,16,46,.06) 0%, transparent 70%);
    pointer-events: none;
}
.contacto-wrap { position: relative; max-width: 720px; margin: 0 auto; }
.contacto-tag {
    display: inline-block;
    font-size: .65rem; letter-spacing: .3em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 1.5rem;
}
.contacto-title {
    font-family: var(--fh);
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 300; line-height: .97;
    color: #F4F0EA; margin-bottom: 1.5rem;
}
.contacto-title em { font-style: italic; color: var(--accent); }
.contacto-desc { font-size: .95rem; color: rgba(244,240,234,.6); margin-bottom: 3rem; }
.contacto-actions {
    display: flex; gap: 1.5rem; justify-content: center;
    flex-wrap: wrap; margin-bottom: 4.5rem;
}
.contacto-info {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 3rem;
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 3rem;
}
.info-block { display: flex; flex-direction: column; gap: .4rem; }
.info-label {
    font-size: .62rem; letter-spacing: .3em;
    text-transform: uppercase; color: var(--accent);
}
.info-val { font-family: var(--fh); font-size: 1.1rem; color: #F4F0EA; }
.info-sep { width: 1px; height: 44px; background: rgba(255,255,255,.15); }

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
    background: #111;
    padding: 4.5rem 5rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.footer-wrap {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-direction: column;
    align-items: center; gap: 1.4rem;
}
.footer-logo {
    font-family: var(--fh); font-size: 1.5rem;
    font-weight: 400; letter-spacing: .42em; color: #F4F0EA;
}
.footer-tagline {
    font-family: var(--fh); font-size: .88rem;
    font-style: italic; color: rgba(244,240,234,.45);
}
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
    font-size: .68rem; letter-spacing: .2em;
    text-transform: uppercase; color: rgba(244,240,234,.45);
    text-decoration: none; transition: color .3s;
}
.footer-nav a:hover { color: #F4F0EA; }
/* ── WHATSAPP FLOTANTE ──────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 1.8rem;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: .7rem;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: .85rem 1.2rem .85rem 1rem;
    box-shadow: 0 6px 28px rgba(37,211,102,.45);
    text-decoration: none;
    font-family: var(--fb);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .02em;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), padding .25s var(--ease);
    cursor: pointer;
    overflow: hidden;
    max-width: 56px;
}
.whatsapp-float-label {
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity .25s, max-width .3s var(--ease);
}
.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(37,211,102,.6);
    max-width: 220px;
    padding-right: 1.4rem;
}
.whatsapp-float:hover .whatsapp-float-label {
    opacity: 1;
    max-width: 160px;
}
@media (max-width: 480px) {
    .whatsapp-float { bottom: 1.2rem; right: 1rem; }
    .whatsapp-float-label { display: none; }
}

.footer-copy {
    font-size: .68rem; color: rgba(244,240,234,.25);
    letter-spacing: .1em;
}

/* ── REVEAL UTILITY ─────────────────────────────────── */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── IMAGE SHARPNESS ────────────────────────────────── */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ── RESPONSIVE ─────────────────────────────────────── */

/* ── TABLET  (≤ 1100px) ─────────────────────────────── */
@media (max-width: 1100px) {
    /* Nav */
    .nav { padding: 0 2.5rem; gap: 1.2rem; }
    .nav-links { display: none; }
    .nav-search { max-width: 220px; }
    .nav-hamburger { display: flex; }
    .mobile-nav { display: flex; }

    /* Hero */
    .hero { grid-template-columns: 1fr; }
    .hero-content {
        padding: 10rem 4rem 2rem;
        text-align: center;
        order: 1;
    }
    .hero-desc { margin: 0 auto 2.5rem; max-width: 520px; }
    .hero-actions { justify-content: center; }
    .hero-visual { height: 340px; order: 2; }
    .mattress-img { max-width: 340px; margin: 0 auto; }

    /* Statement */
    .statement { padding: 7rem 4rem; min-height: 440px; }
    .st-body { padding-left: 0; }
    .st-stats { flex-wrap: wrap; gap: 2rem; }

    /* Sections */
    .section-header { padding: 0 3rem; }
    .filter-dual { padding: 0 3rem 1.5rem; }
    .filter-tabs { padding: 0 3rem; flex-wrap: wrap; gap: .5rem; }
    .products-grid { padding: 0 2rem 2.5rem; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
    .card-name { font-size: .95rem; }
    .card-price { font-size: 1.3rem; }

    /* Ambiente */
    .ambiente { grid-template-columns: 1fr; padding: 6rem 4rem; gap: 4rem; }
    .ambiente-img { height: 320px; width: 100%; max-width: 560px; margin: 0 auto; }

    /* Stats */
    .stats-strip { padding: 3rem 4rem; flex-wrap: wrap; }
    .stat-divider { display: none; }
    .stat-item { flex: 0 0 calc(50% - 1rem); }

    /* Contacto */
    .contacto { padding: 8rem 4rem; }
    .footer { padding: 4rem; }

    /* Cart */
    .cart-sidebar { width: 380px; }
}

/* ── MOBILE  (≤ 768px) ──────────────────────────────── */
@media (max-width: 768px) {
    /* Cursor off on touch */
    .cursor, .cursor-follower { display: none !important; }
    * { cursor: auto !important; }

    /* Nav */
    .nav { padding: 0 1.2rem; gap: .75rem; }
    .nav-search { display: none; }
    .nav-search-toggle { display: flex; }
    .nav-cta { display: none; }
    .nav-logo-text { font-size: .95rem; letter-spacing: .22em; }
    .nav-logo img { height: 32px; width: 32px; }

    /* Hero */
    .hero { min-height: auto; padding-bottom: 3rem; }
    .hero-content { padding: 7rem 1.5rem 1.5rem; }
    .hero-eyebrow { font-size: .6rem; }
    .hero-title { font-size: clamp(2.8rem, 11vw, 5rem); }
    .hero-desc { font-size: .85rem; margin-bottom: 2rem; }
    .hero-actions { flex-direction: column; align-items: center; gap: 1rem; }
    .hero-actions .btn-primary,
    .hero-actions .btn-ghost { width: 100%; max-width: 300px; text-align: center; justify-content: center; }
    .hero-visual { height: 260px; }
    .mattress-img { max-width: 260px; }

    /* Statement */
    .statement { padding: 5rem 1.5rem; min-height: 380px; }
    .statement-line { flex-direction: column; gap: 1rem; }
    .st-num { font-size: clamp(3.5rem, 14vw, 6rem); }
    .st-body { padding-left: 0; }
    .st-stats { flex-direction: column; gap: 1.5rem; }

    /* Sections */
    .section-header { padding: 0 1.5rem; margin-bottom: 2rem; }
    .sec-tag { font-size: .58rem; }
    .sec-title { font-size: clamp(2rem, 8vw, 3.5rem); }

    /* Filter tabs — scrollable horizontal en móvil */
    .filter-dual { padding: 0 1rem 1rem; gap: 0; }
    .filter-group { gap: .6rem; padding-bottom: .6rem; margin-bottom: .6rem; }
    .filter-group-label { font-size: .58rem; min-width: 44px; }
    .filter-tabs {
        padding: 0 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: .4rem;
        scrollbar-width: none;
        margin-bottom: .5rem;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab { flex-shrink: 0; font-size: .58rem; padding: .4rem .8rem; }

    /* Products grid — 1 columna en móvil */
    .products-grid {
        padding: 0 1rem 2rem;
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    /* Tarjetas móvil */
    .card-body { padding: .85rem .85rem .7rem; }
    .card-name { font-size: .95rem; min-height: auto; }
    .card-desc { font-size: .72rem; }
    .card-price { font-size: 1.35rem; margin-bottom: .6rem; }
    .btn-add-cart { padding: .65rem .8rem; font-size: .72rem; }
    .card-fav-btn { width: 30px; height: 30px; }
    .card-thumbs-strip { opacity: 1; }
    .card-thumb { width: 38px; height: 30px; }

    /* Ambiente */
    .ambiente { padding: 4rem 1.5rem; gap: 3rem; }
    .ambiente-img { height: 240px; }
    .amb-title { font-size: clamp(2rem, 8vw, 3rem); }

    /* Stats */
    .stats-strip { padding: 2.5rem 1.5rem; flex-direction: column; gap: 2rem; }
    .stat-item { flex: 0 0 100%; text-align: center; }
    .stat-num { font-size: clamp(2.2rem, 9vw, 3.5rem); }

    /* Contacto */
    .contacto { padding: 5rem 1.5rem; }
    .contacto-title { font-size: clamp(2.2rem, 9vw, 4rem); }
    .contacto-actions { flex-direction: column; align-items: center; }
    .contacto-actions .btn-primary,
    .contacto-actions .btn-ghost { width: 100%; max-width: 300px; text-align: center; justify-content: center; }
    .contacto-info { flex-direction: column; gap: 1.5rem; }
    .info-sep { width: 40px; height: 1px; }

    /* Footer */
    .footer { padding: 3rem 1.5rem; }
    .footer-nav { gap: 1.2rem; }
    .footer-nav a { font-size: .62rem; }

    /* Cart sidebar — full width on mobile */
    .cart-sidebar { width: 100%; max-width: 100vw; }

    /* Dust particles — fewer rendered via CSS */
    .dust-particle:nth-child(n+16) { display: none; }
}

/* ── SMALL MOBILE  (≤ 480px) ────────────────────────── */
@media (max-width: 480px) {
    .statement { min-height: 320px; padding: 4rem 1.2rem; }
    .hero-title { font-size: clamp(2.4rem, 13vw, 4rem); }
    .nav { padding: .9rem 1.2rem; }
    .hero-content { padding: 6.5rem 1.2rem 1.2rem; }
    .section-header,
    .filter-tabs,
    .products-grid,
    .statement,
    .ambiente,
    .contacto,
    .footer { padding-left: 1.2rem; padding-right: 1.2rem; }

    /* Touch: disable 3D tilt */
    .product-card { transform: none !important; }
    .products-grid { grid-template-columns: 1fr; gap: 1rem; padding: 0 .8rem 1.5rem; }
    .card-body { padding: .75rem; }
    .card-name { font-size: .88rem; }
    .card-price { font-size: 1.2rem; }
}

/* ── TOUCH DEVICES: mostrar miniaturas siempre ─────── */
@media (pointer: coarse) {
    .card-thumbs-strip { opacity: 1; }
    .product-card:hover { transform: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
}

/* ── PROMO BANNER ───────────────────────────────────── */
.promo-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10001;
    background: var(--accent);
    color: #fff;
    font-family: var(--fb);
    padding: 0;
    display: none;
    overflow: hidden;
    height: 44px;
    box-shadow: 0 2px 12px rgba(200,16,46,0.35);
}
.promo-banner.is-visible { display: flex; align-items: center; }

/* Marquee track */
.promo-track-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}
.promo-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: promoMarquee 22s linear infinite;
}
.promo-track:hover { animation-play-state: paused; }
@keyframes promoMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}
.promo-slide-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0 60px;
    text-transform: uppercase;
}
.promo-slide-item strong {
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
}
.promo-countdown-inline {
    display: inline-block;
    background: rgba(0,0,0,.25);
    color: #fff;
    border-radius: 4px;
    padding: 2px 9px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-left: 4px;
}
.promo-close {
    flex-shrink: 0;
    width: 36px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.15);
    border: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.promo-close:hover { background: rgba(0,0,0,0.3); }
body.promo-active { padding-top: 44px; }
@media (max-width: 600px) {
    .promo-banner { height: 38px; }
    .promo-slide-item { font-size: 0.78rem; padding: 0 32px; }
    .promo-slide-item strong { font-size: 0.82rem; }
    .promo-countdown-inline { font-size: 0.7rem; padding: 1px 6px; }
    body.promo-active { padding-top: 38px; }
}


/* ══════════════════════════════════════════════════════════
   PRODUCT DETAIL OVERLAY
   ══════════════════════════════════════════════════════════ */

.pd-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0; pointer-events: none;
    transition: opacity .35s;
}
.pd-overlay.open { opacity: 1; pointer-events: all; }

.pd-modal {
    position: fixed;
    inset: 0;
    z-index: 901;
    overflow-y: auto;
    opacity: 0; pointer-events: none;
    transform: translateY(28px);
    transition: opacity .38s var(--ease), transform .38s var(--ease);
    display: flex; flex-direction: column;
    background: #fff;
    padding: 0;
}
.pd-modal.open { opacity: 1; pointer-events: all; transform: translateY(0); }

/* Close button */
.pd-close {
    position: sticky;
    top: 0; left: 0;
    z-index: 10;
    align-self: flex-end;
    margin: 1.2rem 1.5rem .5rem auto;
    background: rgba(26,22,18,.06);
    border: 1px solid var(--brd);
    color: var(--td);
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: none;
    transition: background .2s, transform .2s;
    display: flex; align-items: center; justify-content: center;
}
.pd-close:hover { background: rgba(26,22,18,.12); transform: rotate(90deg); }

/* ── Main inner layout ── */
.pd-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    padding: 0 4rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ── Gallery ── */
.pd-gallery {
    display: flex;
    gap: 1rem;
}

.pd-thumbs {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    width: 90px;
    flex-shrink: 0;
    padding-top: .2rem;
}
.pd-thumb {
    width: 90px; height: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: none;
    transition: border-color .2s, opacity .2s;
    opacity: .7;
}
.pd-thumb:hover { opacity: 1; }
.pd-thumb.active { border-color: var(--gold); opacity: 1; }

.pd-main-wrap {
    position: relative;
    flex: 1;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex; align-items: center; justify-content: center;
}
.pd-main-img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity .25s;
}

/* Arrow buttons */
.pd-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    border: none; color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: none;
    transition: background .2s;
    z-index: 2;
}
.pd-arrow:hover { background: rgba(0,0,0,.72); }
.pd-arrow-prev { left: .7rem; }
.pd-arrow-next { right: .7rem; }

/* ── Info panel ── */
.pd-info {
    display: flex;
    flex-direction: column;
    padding-top: .5rem;
    gap: .6rem;
}
.pd-cat {
    font-size: .62rem;
    font-family: var(--fb);
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}
.pd-name {
    font-family: var(--fh);
    font-size: 2rem;
    font-weight: 400;
    color: var(--td);
    line-height: 1.2;
}
.pd-includes {
    font-size: .8rem;
    color: var(--tm);
    font-family: var(--fb);
}
.pd-price {
    font-family: var(--fh);
    font-size: 2.4rem;
    color: var(--td);
    font-weight: 500;
    margin-top: .4rem;
}
.pd-price span { font-size: 1rem; color: var(--tm); }
.pd-btn-cart {
    display: flex; align-items: center; justify-content: center;
    gap: .55rem;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-family: var(--fb);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: none;
    margin-top: .4rem;
    transition: background .2s, transform .15s;
}
.pd-btn-cart:hover { background: var(--accent-dk); transform: translateY(-2px); }

/* Specs table */
.pd-specs-wrap { margin-top: .8rem; }
.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
    font-family: var(--fb);
}
.pd-specs-table tr { border-bottom: 1px solid var(--brd); }
.pd-specs-table td { padding: .45rem .2rem; color: var(--td); vertical-align: top; }
.pd-specs-table td:first-child { color: var(--tm); width: 45%; padding-right: 1rem; }

/* ── Related products ── */
.pd-related-wrap {
    padding: 2.5rem 4rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    border-top: 1px solid var(--brd);
}
.pd-related-title {
    font-family: var(--fh);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--td);
    margin-bottom: 1.5rem;
}
.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .pd-inner { grid-template-columns: 1fr; padding: 0 2rem 2rem; gap: 2rem; }
    .pd-related-wrap { padding: 2rem 2rem 2.5rem; }
    .pd-related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .pd-gallery { flex-direction: column-reverse; }
    .pd-thumbs { flex-direction: row; width: 100%; }
    .pd-thumb { width: 60px; height: 48px; }
    .pd-inner { padding: 0 1rem 1.5rem; gap: 1.5rem; }
    .pd-related-wrap { padding: 1.5rem 1rem 2rem; }
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-name { font-size: 1.5rem; }
    .pd-price { font-size: 1.8rem; }
    .pd-close { margin: .8rem .8rem .3rem auto; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE GLOBAL — PC / TABLET / MÓVIL
   ══════════════════════════════════════════════════════ */

/* ── PC (> 1100px) — Layout por defecto ─────────────── */
@media (min-width: 1101px) {
    .nav-brand-title { font-size: 1.3rem; }
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .card-price { font-size: 1rem; }
    .card-size-btns { gap: 8px; }
    .card-size-btn { font-size: .78rem; padding: 5px 14px; }
}

/* ── TABLET (768px – 1100px) ─────────────────────────── */
@media (min-width: 769px) and (max-width: 1100px) {
    /* Nav */
    .nav-brand-title { font-size: 1.1rem; letter-spacing: .18em; }

    /* Grilla 2 columnas en tablet */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; padding: 0 2rem 2.5rem; }

    /* Tarjetas */
    .card-img-wrap { height: 220px; }
    .card-price { font-size: .95rem; line-height: 1.4; }
    .card-size-btn { font-size: .72rem; padding: 4px 11px; }

    /* Secciones */
    .section-header { padding: 0 2rem; }
    .filter-tabs { padding: 0 2rem; flex-wrap: wrap; gap: .45rem; }
    .filter-tab { font-size: .62rem; padding: .4rem .9rem; }

    /* Modal detalle */
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MÓVIL (≤ 768px) ─────────────────────────────────── */
@media (max-width: 768px) {
    /* Ocultar título central en nav (espacio limitado) */
    .nav-brand-title { display: none; }

    /* Grilla 1 columna */
    .products-grid { grid-template-columns: 1fr; gap: 1.2rem; padding: 0 .9rem 2rem; }

    /* Tarjetas */
    .card-img-wrap { height: 200px; }
    .card-price { font-size: .85rem; line-height: 1.5; flex-wrap: wrap; gap: 2px; }
    .card-size-btns { gap: 5px; margin: 6px 0 5px; }
    .card-size-btn { font-size: .7rem; padding: 4px 10px; }

    /* Precio unidad/mayor — apilar en móvil */
    .card-price span { display: inline; }

    /* Filtros horizontales scrollables */
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: .5rem;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab { flex-shrink: 0; }

    /* Modal productos relacionados — 1 columna */
    .pd-related-grid { grid-template-columns: 1fr; }
}

/* ── PEQUEÑO MÓVIL (≤ 480px) ────────────────────────── */
@media (max-width: 480px) {
    .products-grid { padding: 0 .6rem 1.5rem; gap: 1rem; }
    .card-body { padding: .7rem .7rem .6rem; }
    .card-name { font-size: .85rem; }
    .card-price { font-size: .8rem; }
    .card-size-btn { font-size: .65rem; padding: 3px 8px; }
    .btn-add-cart { font-size: .68rem; padding: .6rem; }
}
