/*
=============================================================
   Iphonum — hoja de estilos
   Estética: ónix cálido + dorado champán, títulos serif
=============================================================
*/

:root {
    --bg:        #0B0A08;
    --bg-2:      #110F0C;
    --bg-3:      #1A1814;
    --card:      #13110E;
    --card-hi:   #1D1A15;
    --text:      #F3EFE6;
    --text-2:    #ABA597;
    --text-3:    #7A7465;
    --line:      rgba(243, 239, 230, 0.09);
    --line-2:    rgba(243, 239, 230, 0.18);
    --surface:   rgba(243, 239, 230, 0.04);
    --surface-2: rgba(243, 239, 230, 0.08);

    --gold:      #C8A96A;
    --gold-hi:   #E3C98F;
    --gold-deep: #9C7F45;
    --gold-text: #D9BE85;
    --gold-soft: rgba(200, 169, 106, 0.12);
    --on-gold:   #16130D;
    --grad-gold: linear-gradient(135deg, #EAD39E 0%, #C8A96A 48%, #9C7F45 100%);

    --success: #86C087;
    --danger:  #E0776B;
    --wa:      #17864A;
    --wa-hi:   #13723E;

    --header-bg: rgba(11, 10, 8, 0.8);
    --photo-bg:  #F3EFE7;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);

    --font-serif: 'Cormorant Garamond', 'Palatino Linotype', Palatino, Georgia, serif;
    --font-sans:  'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
    --container: 1240px;
    --gutter: clamp(20px, 4vw, 40px);
    --section-pad: clamp(72px, 9vw, 128px);
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 18px;
    --header-h: 68px;
}

body.tema-claro {
    --bg:        #F7F3EA;
    --bg-2:      #EFE9DD;
    --bg-3:      #E6DFD0;
    --card:      #FFFDF8;
    --card-hi:   #FFFFFF;
    --text:      #17140F;
    --text-2:    #5C5548;
    --text-3:    #857D6D;
    --line:      rgba(23, 20, 15, 0.10);
    --line-2:    rgba(23, 20, 15, 0.20);
    --surface:   rgba(23, 20, 15, 0.04);
    --surface-2: rgba(23, 20, 15, 0.08);
    --gold-text: #86672C;
    --gold-soft: rgba(156, 127, 69, 0.12);
    --success:   #2F7D3A;
    --danger:    #B5473B;
    --header-bg: rgba(247, 243, 234, 0.85);
    --shadow-sm: 0 4px 14px rgba(60, 45, 20, 0.08);
    --shadow-md: 0 18px 40px rgba(60, 45, 20, 0.12);
    --shadow-lg: 0 30px 80px rgba(60, 45, 20, 0.18);
}

/* ============================================================
   BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}
body {
    min-height: 100vh;
    padding-top: var(--header-h);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .4s var(--ease), color .4s var(--ease);
}
body.splash-active { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}

/* Aparición al hacer scroll (antes que los componentes para que sus :hover ganen) */
.fade-in-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.fade-in-up.visible { opacity: 1; transform: none; }

/* ============================================================
   SPLASH
============================================================ */
#splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: radial-gradient(60% 50% at 50% 45%, #1E1A13 0%, #0B0A08 70%);
    transition: opacity .6s var(--ease), visibility .6s;
}
#splash.salida { opacity: 0; visibility: hidden; }
body.sin-splash #splash { display: none; }
.splash-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    box-shadow: 0 0 70px rgba(230, 230, 230, .10);
    opacity: 0;
    transform: scale(.85);
    animation: splashIn .8s .1s var(--ease) forwards;
}
.splash-name {
    padding-left: .32em;
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: #F3EFE6;
    opacity: 0;
    transform: translateY(10px);
    animation: splashIn .8s .35s var(--ease) forwards;
}
.splash-line {
    width: 0;
    height: 1px;
    background: var(--grad-gold);
    animation: splashLine .9s .6s var(--ease) forwards;
}
@keyframes splashIn { to { opacity: 1; transform: none; } }
@keyframes splashLine { to { width: 120px; } }

/* ============================================================
   HEADER
============================================================ */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-h);
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background-color .4s;
}
.header.scrolled { border-bottom-color: var(--line); }
.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-logo-img { width: 44px; height: 44px; border-radius: 50%; }
.nav-logo-text {
    font-family: var(--font-sans);
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
    position: relative;
    display: block;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
    transition: color .25s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 6px; }

.icon-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--text);
    transition: background-color .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ico-luna { display: none; }
body.tema-claro .ico-luna { display: block; }
body.tema-claro .ico-sol { display: none; }

.btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 16px 0 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: border-color .25s;
}
.btn-cart:hover { border-color: var(--gold); }
.btn-cart svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cart-count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--grad-gold);
    color: var(--on-gold);
    font-size: 11px;
    font-weight: 800;
}
.cart-count.visible { display: inline-flex; }
.cart-count.pop { animation: pop .45s var(--ease); }
@keyframes pop { 50% { transform: scale(1.3); } }

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: transform .3s var(--ease);
}
.hamburger.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hamburger.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 500;
}
.mobile-menu-actions { display: grid; gap: 10px; }

/* ============================================================
   BARRA DE BENEFICIOS
============================================================ */
.promo-bar {
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    font-size: 12px;
    letter-spacing: .06em;
}
.promo-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 9px;
    padding-bottom: 9px;
    text-align: center;
}
.promo-inner i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

/* ============================================================
   BOTONES
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
    background: var(--grad-gold);
    color: var(--on-gold);
    box-shadow: 0 10px 30px rgba(200, 169, 106, .2);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(200, 169, 106, .3);
}
.btn-outline { border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-text); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover:not(:disabled) { background: var(--wa-hi); transform: translateY(-2px); }
.btn-full { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 11px; }
.ico-wa { fill: currentColor; stroke: none; }

/* ============================================================
   HERO
============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 100px);
}
.hero::before {
    content: '';
    position: absolute;
    top: -30vw;
    right: -20vw;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 106, .10), transparent 60%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}
.hero-title {
    margin-bottom: 22px;
    font-family: var(--font-serif);
    font-size: clamp(44px, 6.2vw, 84px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.01em;
}
.hero-title em { display: block; color: var(--gold-text); }
.hero-sub {
    max-width: 520px;
    margin-bottom: 34px;
    font-size: clamp(15px, 1.4vw, 17.5px);
    color: var(--text-2);
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 540px;
    border-top: 1px solid var(--line);
}
.hero-trust div { padding: 18px 14px 0 0; }
.hero-trust div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-trust dt {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.1;
}
.hero-trust dd { margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.hero-visual {
    position: relative;
    aspect-ratio: 10 / 9;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: #000;
    box-shadow: var(--shadow-lg);
}
.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(227, 201, 143, .22);
    border-radius: inherit;
    pointer-events: none;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 66% 60%;
    animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.09); } }

/* Cinta de categorías */
.marquee {
    overflow: hidden;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 45s linear infinite;
}
.marquee-track span,
.marquee-track i { margin-right: 34px; }
.marquee-track span {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 36px);
    font-style: italic;
    color: var(--text-2);
    white-space: nowrap;
}
.marquee-track i { font-style: normal; font-size: 13px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECCIONES
============================================================ */
.section { position: relative; padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(34px, 4.6vw, 58px);
    font-weight: 500;
    line-height: 1.05;
}
.section-title em { color: var(--gold-text); }
.section-sub {
    max-width: 560px;
    margin-top: 16px;
    font-size: clamp(15px, 1.3vw, 17px);
    color: var(--text-2);
}

/* ============================================================
   CATÁLOGO — búsqueda y filtros
============================================================ */
.catalog-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 18px 32px;
    align-items: center;
    margin-bottom: 36px;
}
.search-box { position: relative; grid-row: 1; grid-column: 1; }
.search-box svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--text-3);
    stroke-width: 1.7;
    stroke-linecap: round;
    pointer-events: none;
}
.search-box input {
    width: 100%;
    height: 50px;
    padding: 0 18px 0 46px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--card);
    outline: none;
    font-size: 16px;
    transition: border-color .25s, box-shadow .25s;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

.filter-container {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-btn {
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    transition: color .25s, border-color .25s, background-color .25s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-3); }
.filter-btn.active { background: var(--text); border-color: var(--text); color: var(--bg); }

.price-filter { grid-row: 1; grid-column: 2; }
.price-filter-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.price-filter-head > span:last-child {
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
}
.price-slider-track {
    position: relative;
    height: 2px;
    margin: 10px 9px;
    background: var(--line-2);
}
.price-slider-fill { position: absolute; top: 0; height: 100%; background: var(--gold); }
.price-slider-track input[type=range] {
    position: absolute;
    top: 50%;
    left: -9px;
    width: calc(100% + 18px);
    height: 22px;
    margin: 0;
    transform: translateY(-50%);
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}
.price-slider-track input[type=range]::-webkit-slider-runnable-track { background: transparent; }
.price-slider-track input[type=range]::-moz-range-track { background: transparent; }
.price-slider-track input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-sm);
    cursor: grab;
    pointer-events: auto;
}
.price-slider-track input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--gold);
    cursor: grab;
    pointer-events: auto;
}

/* ============================================================
   TARJETAS DE PRODUCTO
============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    cursor: pointer;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .3s, box-shadow .3s;
}
.product-card.visible { opacity: 1; transform: none; }
.product-card.visible:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 169, 106, .45);
    box-shadow: var(--shadow-md);
}

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
    pointer-events: none;
}
.badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.product-badges .badge-destacado,
.product-badges .badge-oferta,
.product-badges .badge-agotado { margin-left: auto; }
.badge-destacado { background: #16130D; color: var(--gold-hi); border: 1px solid rgba(227, 201, 143, .35); }
.badge-oferta { background: var(--grad-gold); color: var(--on-gold); }
.badge-agotado { background: #2A2621; color: #DCD6CA; }
.badge-seminuevo { background: #E9E1CE; color: #5A4A28; }
.badge-reacondicionado { background: #E1E6EA; color: #33414D; }
.badge-nuevo { background: var(--gold-soft); color: var(--gold-text); }

/* Las fotos de producto suelen tener fondo blanco: se funden con un panel claro */
.product-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--photo-bg);
    isolation: isolate;
}
.product-img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .7s var(--ease), opacity .25s;
}
.product-img.cambiando { opacity: 0; }
.product-card:hover .product-img { transform: scale(1.05); }
.product-img-placeholder {
    font-family: var(--font-serif);
    font-size: 26px;
    font-style: italic;
    color: #9C937F;
}

.card-colores {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px 0;
}
.card-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
    outline: 1px solid transparent;
    outline-offset: 2px;
    transition: outline-color .2s, transform .2s;
}
.card-color-dot:hover { transform: scale(1.15); }
.card-color-dot.active { outline-color: var(--gold); }
.card-colores-mas { margin-left: 2px; font-size: 11px; color: var(--text-3); }

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 18px 18px;
}
.product-cat {
    margin-bottom: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.product-name {
    margin-bottom: 6px;
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 600;
    line-height: 1.12;
}
.product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-3);
}
.product-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.product-prices { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.price-from { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.price-main { font-size: 18px; font-weight: 700; white-space: nowrap; }
.price-old { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.btn-add-cart {
    flex-shrink: 0;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background-color .25s, border-color .25s, color .25s;
}
.btn-add-cart:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn-add-cart:disabled { opacity: .5; cursor: not-allowed; }

/* Skeleton */
.product-skeleton {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.sk-img { aspect-ratio: 1 / 1; }
.sk-body { display: grid; gap: 10px; padding: 18px; }
.sk-line { height: 11px; border-radius: 4px; }
.sk-line.w40 { width: 40%; }
.sk-line.w60 { width: 60%; }
.sk-line.w80 { width: 80%; }
.sk-img,
.sk-line {
    background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.products-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-md);
    text-align: center;
    font-family: var(--font-serif);
    font-size: 22px;
    font-style: italic;
    color: var(--text-2);
}

/* ============================================================
   COLECCIONES
============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-auto-rows: minmax(270px, auto);
    gap: 16px;
}
.cat-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44%;
    gap: 16px;
    overflow: hidden;
    padding: 16px;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: opacity .8s var(--ease), transform .45s var(--ease), border-color .35s, box-shadow .35s;
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(200, 169, 106, .5); box-shadow: var(--shadow-md); }

/* Foto de la colección: panel claro para que el fondo blanco de las fotos se funda */
.cat-media {
    order: 2;
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--photo-bg);
    border-radius: calc(var(--r-md) - 4px);
    isolation: isolate;
}
.cat-media img {
    width: 86%;
    height: 86%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .8s var(--ease);
}
.cat-media.cubrir img { width: 100%; height: 100%; object-fit: cover; }
.cat-card:hover .cat-media img { transform: scale(1.06); }

.cat-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 12px 0 10px 12px;
}
.cat-num { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--gold-text); }
.cat-title {
    margin-top: auto;
    padding-top: 20px;
    font-family: var(--font-serif);
    font-size: clamp(28px, 2.6vw, 38px);
    font-weight: 500;
    line-height: 1.02;
}
.cat-sub { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.cat-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.cat-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: transform .35s var(--ease);
}
.cat-card:hover .cat-link svg { transform: translateX(4px); }

/* Tarjeta principal (iPhone): foto grande arriba y texto abajo */
.cat-card:first-child {
    grid-row: span 2;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    background: linear-gradient(160deg, var(--card-hi) 0%, var(--card) 65%);
}
.cat-card:first-child .cat-media { order: 0; min-height: 280px; }
.cat-card:first-child .cat-media img { width: 90%; height: 90%; }
.cat-card:first-child .cat-body { padding: 8px 12px 12px; }
.cat-card:first-child .cat-title { padding-top: 12px; font-size: clamp(44px, 4.8vw, 70px); }

/* ============================================================
   EXPERIENCIA / BENEFICIOS
============================================================ */
.promesa-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 6vw, 90px);
    align-items: start;
}
.promesa-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.benefit-card {
    padding: 32px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.benefit-card svg {
    width: 34px;
    height: 34px;
    margin-bottom: 22px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.benefit-card h3 {
    margin-bottom: 8px;
    font-family: var(--font-serif);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.15;
}
.benefit-card p { font-size: 14px; color: var(--text-2); }

/* ============================================================
   RESEÑAS
============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.testi-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.testi-stars { font-size: 14px; letter-spacing: 3px; color: var(--gold); }
.testi-stars span { color: var(--line-2); }
.testi-text { font-family: var(--font-serif); font-size: 22px; font-style: italic; line-height: 1.35; }
.testi-card figcaption { display: flex; flex-direction: column; margin-top: auto; font-size: 13px; }
.testi-card figcaption span { color: var(--text-3); }

/* ============================================================
   CÓMO COMPRAR
============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}
.step { padding: 30px 26px 10px 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step-num {
    display: block;
    margin-bottom: 18px;
    font-family: var(--font-serif);
    font-size: 52px;
    line-height: 1;
    color: var(--gold-text);
}
.step h3 { margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.step p { font-size: 14px; color: var(--text-2); }

/* ============================================================
   CONTACTO
============================================================ */
.contact-card {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 72px);
    text-align: center;
    color: #F3EFE6;
    background: radial-gradient(90% 120% at 50% 0%, #2A2418 0%, #0E0D0A 70%);
    border: 1px solid rgba(227, 201, 143, .22);
    border-radius: var(--r-lg);
}
.contact-card .eyebrow { color: var(--gold-hi); }
.contact-card .section-title { color: #F3EFE6; }
.contact-card .section-title em { color: var(--gold-hi); }
.contact-card .section-sub { margin: 16px auto 32px; color: #B9B2A3; }
.contact-direccion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 600px;
    margin: 26px auto 0;
    font-size: 14px;
    color: #CFC8B8;
}
.contact-direccion svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--gold-hi);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-direccion strong { font-weight: 600; color: #F3EFE6; }
.contact-direccion a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }

.btn-whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 900;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    transition: transform .3s var(--ease);
}
.btn-whatsapp-float:hover { transform: scale(1.07); }
.btn-whatsapp-float svg { width: 28px; height: 28px; }

/* ============================================================
   FOOTER
============================================================ */
.footer { padding: 64px 0 28px; background: var(--bg); border-top: 1px solid var(--line); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand p { max-width: 320px; margin-top: 16px; font-size: 13.5px; color: var(--text-2); }
.footer-col h4 {
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
}
.footer-col a,
.footer-col span { display: block; padding: 5px 0; font-size: 14px; color: var(--text-2); }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--gold-text); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-3);
}
.footer-legal { max-width: 580px; }

/* ============================================================
   CARRITO
============================================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(5, 4, 3, .6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1101;
    width: min(430px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
}
.cart-drawer.open { transform: none; }
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 16px 26px;
    border-bottom: 1px solid var(--line);
}
.cart-title { font-family: var(--font-serif); font-size: 28px; font-weight: 500; }
.cart-items { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 26px; }
.cart-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 70px 10px;
    text-align: center;
    color: var(--text-2);
}
.cart-empty-title { font-family: var(--font-serif); font-size: 28px; color: var(--text); }
.cart-empty .btn { margin-top: 16px; }
.cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.cart-item-img {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: var(--photo-bg);
    isolation: isolate;
}
.cart-item-img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.cart-item-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.cart-item-color { font-size: 12px; color: var(--text-3); }
.cart-item-price { margin: 4px 0 10px; font-size: 14px; font-weight: 700; color: var(--gold-text); }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.qty-btn { width: 34px; height: 32px; font-size: 17px; color: var(--text-2); }
.qty-btn:hover { color: var(--text); background: var(--surface); }
.qty-num { min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; }
.cart-item-del { width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: var(--text-3); }
.cart-item-del:hover { color: var(--danger); background: var(--surface); }
.cart-footer {
    padding: 20px 26px calc(20px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
}
.cart-totals { margin-bottom: 18px; }
.cart-total-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 13.5px;
    color: var(--text-2);
}
.cart-total-row.descuento span:last-child,
.cart-total-row.envio span:last-child { color: var(--success); }
.cart-total-row.envio span:last-child { font-weight: 600; }
.cart-total-row.final {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

/* ============================================================
   MODALES
============================================================ */
.modal-overlay,
.detalle-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 4, 3, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.modal-overlay.open,
.detalle-overlay.open { opacity: 1; visibility: visible; }
.modal {
    width: 100%;
    max-width: 520px;
    max-height: min(92vh, 880px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(14px) scale(.98);
    transition: transform .4s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 12px 12px 24px;
    border-bottom: 1px solid var(--line);
}
#btnBackStep { margin-left: -12px; }
.modal-title { flex: 1; font-family: var(--font-serif); font-size: 26px; font-weight: 500; }
.modal-body { padding: 22px 24px 26px; overflow-y: auto; overscroll-behavior: contain; }

/* Checkout */
.checkout-steps-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
}
.step-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
}
.step-bar-num {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    font-size: 11px;
}
.step-bar-item.active,
.step-bar-item.done { color: var(--text); }
.step-bar-item.active .step-bar-num { background: var(--grad-gold); border-color: transparent; color: var(--on-gold); }
.step-bar-item.done .step-bar-num { border-color: var(--gold); color: var(--gold-text); }
.step-bar-line { flex: 1; max-width: 80px; height: 1px; background: var(--line-2); }

.checkout-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--text-2);
}
.checkout-mini strong { font-size: 15px; color: var(--text); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: block; margin-bottom: 16px; }
.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.form-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    outline: none;
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}
textarea.form-input { height: auto; padding: 12px 14px; resize: vertical; }
.form-input::placeholder { color: var(--text-3); }
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.form-input.error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(224, 119, 107, .14); }
.phone-prefix-wrap { position: relative; display: block; }
.phone-prefix {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-3);
    pointer-events: none;
}
.phone-input { padding-left: 52px; }

.entrega-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.entrega-opt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 14px 16px;
    text-align: left;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.entrega-opt strong { font-size: 14px; }
.entrega-opt span { font-size: 12px; color: var(--text-3); }
.entrega-opt:hover { border-color: var(--text-3); }
.entrega-opt.selected { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }

#btnContinuar { margin-top: 6px; }
#btnContinuar:not(.ready) { opacity: .7; box-shadow: none; }
.form-nota { margin-top: 14px; text-align: center; font-size: 12px; color: var(--text-3); }
.form-nota-top { margin: 0 0 18px; text-align: left; font-size: 13.5px; color: var(--text-2); }

.confirm-datos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.confirm-datos dt {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.confirm-datos dd { margin-top: 2px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.resumen-items { display: grid; gap: 8px; margin-bottom: 12px; }
.resumen-item { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.resumen-item em { font-style: normal; color: var(--text-3); white-space: nowrap; }
.resumen-item span:last-child { font-weight: 600; white-space: nowrap; }
.resumen-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; color: var(--text-2); }
.resumen-row.descuento span:last-child,
.resumen-row.envio span:last-child { color: var(--success); }
.resumen-row.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.wa-aviso {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 20px 0 18px;
    padding: 16px;
    background: rgba(37, 211, 102, .07);
    border: 1px solid rgba(37, 211, 102, .25);
    border-radius: var(--r-sm);
}
.wa-aviso svg { width: 26px; height: 26px; margin-top: 2px; flex-shrink: 0; fill: #25D366; }
.wa-aviso strong { font-size: 14px; }
.wa-aviso p { margin-top: 2px; font-size: 13px; color: var(--text-2); }

/* Pedido registrado / instalar en iOS */
.success-card {
    align-items: center;
    max-width: 440px;
    padding: 34px 28px 22px;
    overflow-y: auto;
    text-align: center;
}
.success-logo { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; }
.success-title {
    margin-bottom: 10px;
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.1;
}
.success-sub { margin-bottom: 22px; font-size: 14px; color: var(--text-2); }
.success-sub strong { color: var(--text); }
.success-nota { margin: 14px 0 6px; font-size: 12px; color: var(--text-3); }
.ios-steps { display: grid; gap: 10px; width: 100%; margin: 8px 0 22px; text-align: left; counter-reset: ios; }
.ios-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 14px;
    color: var(--text-2);
    counter-increment: ios;
}
.ios-steps li::before {
    content: counter(ios);
    flex: 0 0 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-text);
    font-size: 12px;
    font-weight: 700;
}
.ios-steps strong { color: var(--text); }

/* Políticas (dialog nativo) */
.modal-politica {
    width: min(680px, calc(100% - 32px));
    max-width: none;
    max-height: 88vh;
    margin: auto;
    padding: 0;
    color: var(--text);
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}
.modal-politica::backdrop { background: rgba(5, 4, 3, .72); backdrop-filter: blur(6px); }
.modal-politica-inner { position: relative; max-height: 88vh; padding: clamp(28px, 5vw, 48px); overflow-y: auto; }
.modal-politica-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
}
.modal-politica-close:hover { background: var(--surface-2); }
.modal-politica h2 {
    margin-bottom: 18px;
    padding-right: 36px;
    font-family: var(--font-serif);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 500;
    line-height: 1.1;
}
.modal-politica h3 {
    margin: 26px 0 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.modal-politica h4 { margin-bottom: 8px; font-size: 14px; }
.modal-politica p,
.modal-politica li { font-size: 14px; line-height: 1.7; color: var(--text-2); }
.modal-politica p + p { margin-top: 10px; }
.modal-politica ul { padding-left: 18px; list-style: disc; }
.modal-politica li::marker { color: var(--gold); }
.politica-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
.modal-politica .btn { margin-top: 28px; }

/* ============================================================
   DETALLE DE PRODUCTO
============================================================ */
.detalle-overlay { z-index: 1300; }
.detalle-modal {
    position: relative;
    width: 100%;
    max-width: 1040px;
    height: min(88vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(14px) scale(.98);
    transition: transform .4s var(--ease);
}
.detalle-overlay.open .detalle-modal { transform: none; }
.detalle-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    color: #F3EFE6;
    background: rgba(11, 10, 8, .55);
    backdrop-filter: blur(8px);
}
.detalle-close:hover { background: rgba(11, 10, 8, .85); }
.detalle-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "gallery info" "gallery footer";
}

.det-gallery {
    grid-area: gallery;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 24px;
    background: var(--photo-bg);
}
.det-gallery .det-badge { position: absolute; top: 20px; left: 20px; z-index: 2; }
.gal-main-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}
.gal-main-img {
    max-width: 88%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: opacity .2s;
}
.gal-main-img.gal-fade { opacity: 0; }
.gal-main-wrap .product-img-placeholder { font-size: 34px; }
.gal-thumbs { display: flex; gap: 8px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumb {
    flex: 0 0 64px;
    height: 64px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: var(--r-sm);
    opacity: .6;
    isolation: isolate;
    transition: opacity .2s, border-color .2s;
}
.gal-thumb img { width: 100%; height: 100%; padding: 6px; object-fit: contain; mix-blend-mode: multiply; }
.gal-thumb.active,
.gal-thumb:hover { opacity: 1; border-color: var(--gold-deep); }

.det-info {
    grid-area: info;
    min-height: 0;
    padding: 32px 32px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.det-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.det-cat { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.det-title {
    margin-bottom: 14px;
    padding-right: 40px;
    font-family: var(--font-serif);
    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 500;
    line-height: 1.05;
}
.det-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.det-price { font-size: 26px; font-weight: 700; }
.det-price-old { font-size: 15px; color: var(--text-3); text-decoration: line-through; }
.det-section { margin-bottom: 22px; }
.det-section-title {
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-3);
}
.det-section-title span { font-size: 13px; letter-spacing: .02em; text-transform: none; color: var(--text); }
.det-colores { display: flex; flex-wrap: wrap; gap: 10px; }
.det-color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    outline: 1px solid transparent;
    outline-offset: 3px;
    transition: outline-color .2s, transform .2s;
}
.det-color-dot:hover { transform: scale(1.08); }
.det-color-dot.active { outline-color: var(--gold); }
.variantes-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.variante-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 110px;
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.variante-btn small { font-size: 12px; font-weight: 500; color: var(--text-3); }
.variante-btn:hover { border-color: var(--text-3); }
.variante-btn.active { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.det-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 600;
}
.det-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.det-stock-ok { color: var(--success); }
.det-stock-out { color: var(--danger); }
.det-desc { font-size: 14px; line-height: 1.7; color: var(--text-2); white-space: pre-line; }
.det-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.det-benefits li { position: relative; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.det-benefits li::before {
    content: '';
    position: absolute;
    top: .7em;
    left: 0;
    width: 8px;
    height: 1px;
    background: var(--gold);
}
.det-footer {
    grid-area: footer;
    display: flex;
    gap: 12px;
    padding: 16px 32px;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}
.det-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.det-qty-btn { width: 42px; height: 46px; font-size: 18px; color: var(--text-2); }
.det-qty-btn:hover { color: var(--text); }
.det-qty-value { min-width: 28px; text-align: center; font-weight: 700; }
.det-btn-add { flex: 1; }

.relacionados,
.det-resenas { margin-top: 26px; }
.relacionados-track {
    display: flex;
    gap: 10px;
    padding-bottom: 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
}
.rel-card {
    flex: 0 0 132px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    scroll-snap-align: start;
    transition: border-color .2s;
}
.rel-card:hover { border-color: var(--gold); }
.rel-img {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--photo-bg);
    isolation: isolate;
}
.rel-img img { max-width: 80%; max-height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.rel-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 8px 10px 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}
.rel-price { padding: 4px 10px 10px; font-size: 12px; font-weight: 700; color: var(--gold-text); }

.resenas-resumen { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.resenas-resumen strong { font-family: var(--font-serif); font-size: 40px; font-weight: 600; line-height: 1; }
.resenas-resumen span { font-size: 12px; color: var(--text-3); }
.estrellas { font-size: 13px; letter-spacing: 2px; color: var(--line-2); }
.estrellas .on { color: var(--gold); }
.resena-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.resena-cab { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 13px; }
.resena-item p { font-size: 13.5px; color: var(--text-2); }
.resenas-vacio { font-size: 13.5px; color: var(--text-3); }
.resena-form { margin-top: 14px; }
.resena-form summary {
    padding: 8px 0;
    list-style: none;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.resena-form summary::-webkit-details-marker { display: none; }
.resena-form[open] summary { margin-bottom: 10px; }
.resena-form .form-input { margin-bottom: 10px; }
.resena-stars-select { display: flex; gap: 4px; margin-bottom: 10px; }
.rstar { font-size: 26px; line-height: 1; color: var(--line-2); transition: color .15s, transform .15s; }
.rstar.on { color: var(--gold); }
.rstar:hover { transform: scale(1.1); }
.resena-msg { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px; }
.resena-msg.ok { background: rgba(134, 192, 135, .12); color: var(--success); }
.resena-msg.error { background: rgba(224, 119, 107, .12); color: var(--danger); }

/* ============================================================
   SEGUIMIENTO
============================================================ */
.seg-form .btn { margin-top: 2px; }
#segResultado { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.seg-cargando { text-align: center; font-size: 14px; color: var(--text-2); }
.seg-error {
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    color: var(--danger);
    background: rgba(224, 119, 107, .1);
    border-radius: var(--r-sm);
}
.seg-estado { margin-bottom: 20px; text-align: center; }
.seg-estado-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-3);
}
.seg-estado strong { font-family: var(--font-serif); font-size: 32px; font-weight: 500; color: var(--gold-text); }
.seg-estado.cancelado strong { color: var(--danger); }
.seg-timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.seg-timeline li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-3);
}
.seg-timeline li::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -50%;
    right: 50%;
    height: 1px;
    background: var(--line-2);
}
.seg-timeline li:first-child::before { display: none; }
.seg-dot {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
}
.seg-timeline li.done { color: var(--text); }
.seg-timeline li.done::before { background: var(--gold); }
.seg-timeline li.done .seg-dot { background: var(--gold); border-color: var(--gold); }
.seg-info-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.seg-info-card > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.seg-info-card > div span { color: var(--text-3); }
.seg-items {
    display: grid;
    gap: 4px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-2);
}

/* ============================================================
   INSTALAR APP + TOAST
============================================================ */
.install-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 950;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px 12px 14px;
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(160%);
    transition: transform .5s var(--ease);
}
.install-banner.show { transform: none; }
.install-banner img { border-radius: 50%; }
.install-text { flex: 1; display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.3; }
.install-text span { font-size: 12px; color: var(--text-3); }

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100vw - 32px);
    padding: 12px 12px 12px 18px;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    font-size: 13.5px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity .3s, transform .4s var(--ease);
}
.toast:not(.toast-cart) { padding-right: 18px; }
.toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast.error-toast { background: #9E3B30; color: #fff; }
.toast-content { display: flex; flex-direction: column; min-width: 0; }
.toast-msg-sub {
    max-width: 240px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: .7;
}
.toast-action {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border-radius: var(--r-sm);
    background: var(--grad-gold);
    color: var(--on-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border: 2px solid var(--bg); border-radius: 999px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1080px) {
    .nav-links { display: none; }
    .hamburger { display: inline-flex; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { aspect-ratio: 16 / 10; }
    .promesa-grid { grid-template-columns: 1fr; }
    .promesa-intro { position: static; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step:nth-child(3) { padding-left: 0; border-left: 0; }
    .step:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .detalle-overlay { padding: 0; }
    .detalle-modal { height: 100%; max-width: none; border: 0; border-radius: 0; }
    .detalle-body { display: block; overflow-y: auto; overscroll-behavior: contain; }
    .det-gallery { padding: 60px 16px 16px; }
    .gal-main-wrap { flex: none; height: min(50vh, 420px); }
    .det-info { overflow: visible; padding: 24px 20px 12px; }
    .det-title { padding-right: 0; }
    .det-footer {
        position: sticky;
        bottom: 0;
        z-index: 5;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
    }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .cat-card:first-child { grid-row: auto; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 50%; grid-template-rows: none; min-height: 300px; }
    .cat-card:first-child .cat-media { order: 2; min-height: 0; }
}

@media (max-width: 720px) {
    :root { --header-h: 60px; }
    .nav-logo-img { width: 40px; height: 40px; }
    .nav-logo-text { font-size: 19px; }
    .btn-cart { padding: 0 12px; }
    .btn-cart .cart-text { display: none; }
    .promo-inner span:not(:first-child),
    .promo-inner i { display: none; }

    .hero-btns .btn { flex: 1 1 100%; }
    .hero-trust dt { font-size: 18px; }
    .hero-trust dd { font-size: 11.5px; }
    .hero-trust div + div { padding-left: 12px; }

    .catalog-tools { grid-template-columns: 1fr; }
    .search-box,
    .price-filter,
    .filter-container { grid-row: auto; grid-column: auto; }
    .filter-container {
        flex-wrap: nowrap;
        margin: 0 calc(-1 * var(--gutter));
        padding: 2px var(--gutter);
        overflow-x: auto;
        scrollbar-width: none;
    }
    .filter-container::-webkit-scrollbar { display: none; }
    .filter-btn { flex-shrink: 0; }

    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-badges { top: 8px; left: 8px; right: 8px; }
    .badge { height: 20px; padding: 0 7px; font-size: 9.5px; }
    .card-colores { gap: 5px; padding: 10px 12px 0; }
    .card-color-dot { width: 12px; height: 12px; }
    .product-info { padding: 10px 12px 12px; }
    .product-name { font-size: 18px; }
    .product-desc { display: none; }
    .product-price-row { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
    .price-main { font-size: 15.5px; }
    .btn-add-cart { width: 100%; }

    .categories-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
    .cat-card,
    .cat-card:first-child { grid-template-columns: minmax(0, 1fr) 42%; min-height: 200px; padding: 12px; }
    .cat-title { font-size: 30px; }
    .cat-card:first-child .cat-title { font-size: 40px; }
    .cat-sub { font-size: 12.5px; }
    .benefits-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step,
    .step + .step,
    .step:nth-child(3) { padding: 24px 0; border-left: 0; }
    .step + .step { border-top: 1px solid var(--line); }
    .step-num { margin-bottom: 10px; font-size: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal {
        max-width: none;
        max-height: 94vh;
        border-bottom: 0;
        border-radius: var(--r-lg) var(--r-lg) 0 0;
    }
    .modal-body { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
    .success-card { max-width: none; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
    .form-row-2 { grid-template-columns: 1fr; gap: 0; }
    .politica-cols,
    .det-benefits { grid-template-columns: 1fr; }

    .toast-msg-sub { max-width: 150px; }
    .btn-whatsapp-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-track { animation: none; }
}
