/* =========================================================
   PopFlame — Sistema visual de la tienda
   Base clara y cálida, negro como color de marca y rojo PopFlame como acento.
   Tipografía: Archivo expandida para títulos (carácter streetwear) + Inter para texto.
   ========================================================= */

:root {
    --red: #E31837;
    --red-dark: #B8142D;
    --ink: #0B0B0B;
    --ink-2: #1A1A1A;
    --bg: #F6F4F0;
    --surface: #ECE8E1;
    --white: #FFFFFF;
    --text: #0B0B0B;
    --text-2: #4A4A4A;
    --muted: #6F6A63;
    --line: #DDD8CF;
    --line-dark: #2A2A2A;
    --success: #16703C;
    --whatsapp: #25D366;

    --font-display: 'Archivo', 'Arial Black', Impact, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --header-h: 64px;
    --announce-h: 34px;
    --gutter: 24px;
    --maxw: 1600px;
    --radius: 2px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t: 0.35s var(--ease);
}

@media (max-width: 768px) {
    :root {
        --header-h: 56px;
        --announce-h: 30px;
        --gutter: 16px;
    }
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed;
    top: -60px; left: 12px;
    z-index: 5000;
    background: var(--ink); color: #fff;
    padding: 10px 16px;
    font-size: 13px; font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

main { display: block; min-height: 60vh; }

.page-offset { padding-top: calc(var(--header-h) + var(--announce-h)); }

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .section-sm { padding: 40px 0; }
}

/* ===== Tipografía ===== */
.display, h1, h2, h3 {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section-title {
    font-size: clamp(28px, 4.2vw, 56px);
}

.section-head .eyebrow { margin-bottom: 12px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    transition: gap var(--t), color var(--t);
}
.link-arrow:hover { gap: 14px; color: var(--red); }

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
    white-space: nowrap;
    user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--red); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-outline-light { border-color: rgba(255,255,255,0.8); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

.btn-whatsapp { background: var(--whatsapp); color: #06301A; }
.btn-whatsapp:hover { background: #1FB855; }

.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn.is-loading { pointer-events: none; position: relative; color: transparent !important; }
.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.btn-outline.is-loading::after, .btn-light.is-loading::after { border-color: rgba(0,0,0,0.2); border-top-color: var(--ink); }

@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    transition: background var(--t), color var(--t);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { color: var(--red); }

/* ===== Barra de anuncios ===== */
.announce {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--announce-h);
    z-index: 1100;
    background: var(--red);
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.announce-track {
    display: flex;
    flex-shrink: 0;
    gap: 0;
    animation: marquee 38s linear infinite;
    will-change: transform;
}
.announce:hover .announce-track { animation-play-state: paused; }

.announce-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}
.announce-item::after {
    content: '';
    width: 5px; height: 5px;
    background: #fff;
    border-radius: 50%;
    margin-left: 42px;
    opacity: 0.7;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: var(--announce-h);
    left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--ink);
    color: #fff;
    transition: background var(--t), box-shadow var(--t);
}

.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 10px 30px rgba(0,0,0,0.18); }

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    gap: 16px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-right { justify-content: flex-end; }

.main-nav { display: flex; align-items: center; gap: 28px; margin-left: 4px; }

.main-nav a {
    position: relative;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    padding: 8px 0;
    transition: color var(--t);
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 1px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}
/* El logo animado viene con fondo casi negro: "screen" lo funde con el header y desaparece el recuadro. */
video.brand-logo { mix-blend-mode: screen; filter: grayscale(1) contrast(1.9) brightness(1.05); height: 52px; }
@media (max-width: 768px) { video.brand-logo { height: 46px; } }

@media (max-width: 768px) {
    .brand-logo { height: 38px; }
}

.cart-count {
    position: absolute;
    top: 3px; right: 1px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    transform: scale(0);
    transition: transform 0.3s var(--ease);
}
.cart-count.is-visible { transform: scale(1); }
.cart-count.bump { animation: bump 0.45s var(--ease); }

@keyframes bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.menu-toggle { display: none; }

@media (max-width: 1023px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-wa { display: none; }
}

/* ===== Menú móvil ===== */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 1990;
    background: rgba(11,11,11,0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    top: 0; bottom: 0;
    z-index: 2000;
    width: min(440px, 100%);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease);
    will-change: transform;
}
.drawer-right { right: 0; transform: translateX(100%); }
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px 0 24px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.drawer-title {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.drawer-title small {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-left: 6px;
    letter-spacing: 0;
}

.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

.mobile-menu { background: var(--ink); color: #fff; }
.mobile-menu .drawer-head { border-color: var(--line-dark); }

.mobile-menu-links { padding: 16px 24px; }
.mobile-menu-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line-dark);
    transition: color var(--t), padding var(--t);
}
.mobile-menu-links a:hover { color: var(--red); padding-left: 6px; }
.mobile-menu-links a svg { width: 20px; height: 20px; opacity: 0.5; }

.mobile-menu-secondary { padding: 8px 24px 32px; }
.mobile-menu-secondary h4 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.45);
    margin: 24px 0 12px;
}
.mobile-menu-secondary a {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}
.mobile-menu-secondary a:hover { color: var(--red); }

/* ===== Buscador ===== */
.search-panel {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    background: var(--bg);
    max-height: 100vh;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
}
.search-panel.is-open { transform: translateY(0); }

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 80px;
    border-bottom: 1px solid var(--line);
}
.search-bar svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--muted); }
.search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-size: clamp(18px, 3vw, 30px);
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
}
.search-input::placeholder { color: #A39E95; }

.search-results { padding: 32px 0 48px; }
.search-hint { color: var(--muted); font-size: 14px; }
.search-hint a { text-decoration: underline; }

.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    transition: all var(--t);
    white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ===== Hero ===== */
.hero {
    position: relative;
    height: calc(100svh - var(--announce-h));
    min-height: 560px;
    max-height: 1100px;
    margin-top: var(--announce-h);
    background: var(--ink);
    color: #fff;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-media img, .hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s linear;
}
.hero-slide.is-active .hero-media img,
.hero-slide.is-active .hero-media video { transform: scale(1); }

/* Imágenes verticales o con fondo transparente (ej. el colgante del logo):
   se muestran completas sobre un fondo de marca en vez de recortarlas. */
.hero-media.is-contain {
    background:
        radial-gradient(ellipse at 50% 55%, rgba(227,24,55,0.28), transparent 60%),
        var(--ink);
}
.hero-media.is-contain img {
    object-fit: contain;
    padding: calc(var(--header-h) + 24px) 24px 24px;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 45%, rgba(0,0,0,0.05) 70%),
        linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 30%);
}

.hero-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding-bottom: clamp(40px, 7vh, 88px);
    z-index: 2;
}

.hero-content .eyebrow { color: rgba(255,255,255,0.8); margin-bottom: 16px; }

.hero-title {
    font-size: clamp(44px, 9vw, 148px);
    line-height: 0.86;
    max-width: 12ch;
    margin-bottom: 28px;
    text-wrap: balance;
}

.hero-sub {
    max-width: 440px;
    font-size: 15px;
    color: rgba(255,255,255,0.82);
    margin: -12px 0 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-slide .hero-content > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > *:nth-child(2) { transition-delay: 0.08s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { transition-delay: 0.16s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { transition-delay: 0.24s; }

.hero-controls {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(40px, 7vh, 88px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-progress { display: flex; gap: 8px; }
.hero-bar {
    position: relative;
    width: 44px;
    height: 20px;
    background: none;
}
.hero-bar::before, .hero-bar span {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 2px;
    margin-top: -1px;
    background: rgba(255,255,255,0.3);
}
.hero-bar span {
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}
.hero-bar.is-active span { animation: heroProgress var(--hero-interval, 6s) linear forwards; }
.hero-bar.is-done span { transform: scaleX(1); }

@keyframes heroProgress { to { transform: scaleX(1); } }

.hero-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background var(--t), border-color var(--t);
}
.hero-arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-arrow svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
    .hero { min-height: 520px; }
    .hero-controls { left: var(--gutter); right: auto; bottom: 20px; }
    .hero-content { padding-bottom: 72px; }
    .hero-arrow { display: none; }
    .hero-bar { width: 32px; }
}

/* ===== Tarjeta de producto ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 16px;
}

@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8px; } }

.product-card { position: relative; display: block; }

.product-media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--surface);
    overflow: hidden;
}

.product-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}
.product-media .img-alt { opacity: 0; }

@media (hover: hover) {
    .product-card:hover .product-media .img-main { transform: scale(1.04); }
    .product-card:hover .product-media.has-alt .img-main { opacity: 0; }
    .product-card:hover .product-media .img-alt { opacity: 1; transform: scale(1.02); }
}

.product-tags {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.tag {
    display: inline-block;
    padding: 5px 8px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    background: #fff;
    color: var(--ink);
}
.tag-red { background: var(--red); color: #fff; }
.tag-dark { background: var(--ink); color: #fff; }
.tag-warn { background: #C77700; color: #fff; }

.product-quick {
    position: absolute;
    left: 10px; right: 10px; bottom: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 10px;
    background: rgba(246,244,240,0.94);
    backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t), transform var(--t);
}
.product-quick span { padding: 2px 6px; }

@media (hover: hover) {
    .product-card:hover .product-quick { opacity: 1; transform: none; }
}

.product-soldout .product-media img { filter: grayscale(0.6); opacity: 0.7; }

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
}
.product-sub {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
}
.product-price {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.product-swatches { display: flex; gap: 5px; margin-top: 8px; }
.swatch-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {
    .product-meta { flex-direction: column; gap: 2px; padding-top: 10px; }
    .product-name, .product-price { font-size: 12px; }
}

/* Skeleton de carga */
.skeleton-card .product-media,
.skeleton-line {
    background: linear-gradient(90deg, var(--surface) 0%, #F2EFE9 50%, var(--surface) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-line { height: 12px; margin-top: 12px; width: 70%; }
.skeleton-line.short { width: 35%; margin-top: 8px; }

@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* Carrusel horizontal (móvil) para filas de producto */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 4);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

@media (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (max-width: 768px) {
    .rail {
        grid-auto-columns: 68%;
        gap: 8px;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter);
        scroll-padding: 0 var(--gutter);
    }
}

/* ===== Categorías (portada) ===== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(var(--cat-cols, 4), minmax(0, 1fr));
    gap: 4px;
}

@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cat-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}

.cat-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), opacity var(--t);
    opacity: 0.92;
}
.cat-tile:hover img { transform: scale(1.06); opacity: 1; }

.cat-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 50%);
}

.cat-tile-body {
    position: absolute;
    left: 20px; right: 20px; bottom: 20px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.cat-tile-body > div { min-width: 0; }
.cat-tile h3 { font-size: clamp(18px, 1.9vw, 30px); }
@media (max-width: 900px) {
    .cat-tile h3 { font-size: clamp(14px, 4.1vw, 30px); }
    .cat-tile .cat-tile-arrow { display: none; }
}
.cat-tile-count {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 8px;
    display: block;
}
.cat-tile-arrow {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t), color var(--t), transform var(--t);
}
.cat-tile-arrow svg { width: 16px; height: 16px; }
.cat-tile:hover .cat-tile-arrow { background: #fff; color: var(--ink); transform: rotate(-45deg); }

.cat-tile-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--ink-2);
}
.cat-tile-empty span {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-size: 120px;
    font-weight: 900;
    color: rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
    .cat-tile-body { left: 14px; right: 14px; bottom: 14px; }
    .cat-tile-arrow { width: 32px; height: 32px; }
}

/* ===== Bloque editorial ===== */
.editorial {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 640px;
    background: var(--ink);
    color: #fff;
}
.editorial.is-reversed { grid-template-columns: 1fr 1.1fr; }
.editorial.is-reversed .editorial-media { order: 2; }

.editorial-media { position: relative; overflow: hidden; }
.editorial-media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.editorial-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 7vw, 120px);
}
.editorial-body .eyebrow { color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.editorial-body h2 { font-size: clamp(36px, 5vw, 76px); margin-bottom: 24px; }
.editorial-body h2 em { font-style: normal; color: var(--red); }
.editorial-body p {
    max-width: 440px;
    color: rgba(255,255,255,0.72);
    margin-bottom: 36px;
    font-size: 16px;
}

@media (max-width: 900px) {
    .editorial, .editorial.is-reversed { grid-template-columns: 1fr; min-height: 0; }
    .editorial-media, .editorial.is-reversed .editorial-media { order: 0; aspect-ratio: 4 / 5; }
}

/* ===== Beneficios ===== */
.perks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.perk {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 28px;
    border-right: 1px solid var(--line);
}
.perk:last-child { border-right: 0; }
.perk svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--red); margin-top: 2px; }
.perk h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.perk p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

@media (max-width: 1024px) {
    .perks { grid-template-columns: repeat(2, 1fr); }
    .perk:nth-child(2) { border-right: 0; }
    .perk:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
    .perks { grid-template-columns: 1fr; }
    .perk { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 4px; }
    .perk:last-child { border-bottom: 0; }
}

/* ===== Bloque Instagram ===== */
.social-block {
    text-align: center;
    padding: 96px 0;
    overflow: hidden;
}
.social-block .eyebrow { margin-bottom: 18px; }
.social-handle {
    display: inline-block;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(40px, 10vw, 160px);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    transition: color var(--t);
}
.social-handle:hover { color: var(--red); }
.social-block p { color: var(--text-2); margin-top: 20px; }

/* ===== Footer ===== */
.site-footer {
    background: var(--ink);
    color: #fff;
    padding: 80px 0 28px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--line-dark);
}

.footer-news h2 {
    font-size: clamp(30px, 4vw, 56px);
    margin-bottom: 14px;
}
.footer-news p { color: rgba(255,255,255,0.65); margin-bottom: 28px; max-width: 460px; }

.footer-ig svg { width: 20px; height: 20px; }
.footer-ig span { text-transform: none; letter-spacing: 0.02em; font-size: 14px; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col h4 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    transition: color var(--t);
}
.footer-col a:hover { color: var(--red); }

.footer-brand {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 48px 0 32px;
}
.footer-wordmark {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(40px, 10.6vw, 176px);
    line-height: 0.8;
    white-space: nowrap;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #fff;
    user-select: none;
}
.footer-wordmark span { color: var(--red); }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
}
.footer-social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.co-legal a { text-decoration: underline; text-underline-offset: 3px; }
.co-captcha { margin: 20px 0 8px; min-height: 65px; }
.co-legal { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.co-legal a:hover { color: var(--ink); }

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr; gap: 48px; }
    .footer-brand { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .site-footer { padding-top: 56px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ===== Carrito ===== */
.cart-drawer .drawer-body { padding: 0 24px; }

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    height: 100%;
    padding: 48px 12px;
}
.cart-empty svg { width: 48px; height: 48px; color: var(--muted); }
.cart-empty h4 {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
}
.cart-empty p { color: var(--text-2); font-size: 14px; max-width: 260px; }

.cart-line {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.cart-line-img {
    width: 88px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--surface);
}
.cart-line-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.cart-line-name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.cart-line-name:hover { color: var(--red); }
.cart-line-price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.cart-line-variant { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cart-line-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}
.cart-line-remove {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: all var(--t);
}
.cart-line-remove:hover { color: var(--red); border-color: var(--red); }

.stepper {
    display: inline-flex;
    align-items: center;
    height: 36px;
    border: 1px solid var(--line);
}
.stepper button {
    width: 34px; height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background var(--t);
}
.stepper button:hover:not([disabled]) { background: var(--surface); }
.stepper button[disabled] { opacity: 0.3; cursor: not-allowed; }
.stepper span, .stepper output {
    min-width: 30px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}
.stepper.is-lg { height: 50px; }
.stepper.is-lg button { width: 46px; }

.cart-foot {
    flex-shrink: 0;
    padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}
.cart-row.is-total {
    font-size: 16px;
    font-weight: 700;
    margin: 12px 0 4px;
}
.cart-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.cart-foot .btn + .btn { margin-top: 8px; }

/* ===== Toast ===== */
.toast-stack {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    pointer-events: none;
    width: max-content;
    max-width: calc(100vw - 32px);
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    animation: toastIn 0.45s var(--ease);
    pointer-events: auto;
}
.toast.is-error { background: var(--red); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast.is-leaving { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ===== Cabecera de página interna ===== */
.page-head { padding: 48px 0 28px; }
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { opacity: 0.5; }

.page-title { font-size: clamp(40px, 7vw, 104px); }
.page-desc { color: var(--text-2); margin-top: 14px; max-width: 520px; }

@media (max-width: 768px) {
    .page-head { padding: 32px 0 20px; }
}

/* ===== Catálogo ===== */
.toolbar {
    position: sticky;
    top: calc(var(--header-h) + var(--announce-h));
    z-index: 50;
    background: rgba(246,244,240,0.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}
.toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
}
.toolbar-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 0;
}
.toolbar-chips::-webkit-scrollbar { display: none; }
.toolbar-filters { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.select {
    appearance: none;
    height: 36px;
    padding: 0 34px 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color var(--t);
}
.select:hover, .select:focus { border-color: var(--ink); outline: none; }

.result-count { font-size: 12px; color: var(--muted); white-space: nowrap; }

@media (max-width: 900px) {
    .toolbar-inner { flex-direction: column; align-items: stretch; gap: 0; }
    .toolbar-filters { padding: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
    .toolbar-filters::-webkit-scrollbar { display: none; }
    .result-count { margin-left: auto; }
}

.empty-state {
    text-align: center;
    padding: 80px 16px 120px;
}
.empty-state h3 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 12px; }
.empty-state p { color: var(--text-2); margin-bottom: 28px; }

/* ===== Ficha de producto ===== */
.pdp {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 0 56px;
    padding-top: 24px;
}

.pdp-gallery { position: relative; min-width: 0; }

.pdp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.pdp-grid button {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: var(--surface);
    overflow: hidden;
    cursor: zoom-in;
}
.pdp-grid button:first-child:nth-last-child(odd),
.pdp-grid.is-single button { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.pdp-grid img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.pdp-grid button:hover img { transform: scale(1.03); }

.pdp-slider { display: none; position: relative; }
.pdp-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.pdp-track::-webkit-scrollbar { display: none; }
.pdp-track button {
    flex: 0 0 100%;
    aspect-ratio: 3 / 4;
    scroll-snap-align: center;
    background: var(--surface);
}
.pdp-track img { width: 100%; height: 100%; object-fit: cover; }
.pdp-counter {
    position: absolute;
    right: 12px; bottom: 12px;
    padding: 6px 10px;
    background: rgba(11,11,11,0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.pdp-dots {
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}
.pdp-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
    transition: all var(--t);
}
.pdp-dots span.is-active { background: #fff; width: 18px; border-radius: 3px; }

.pdp-info {
    position: sticky;
    top: calc(var(--header-h) + var(--announce-h) + 24px);
    align-self: start;
    padding-bottom: 32px;
}

.pdp-title { font-size: clamp(28px, 3vw, 44px); line-height: 0.95; margin: 4px 0 14px; }
.pdp-price { font-size: 20px; font-weight: 600; }
.pdp-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}
.pdp-stock::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.pdp-stock.is-low { color: #C77700; }
.pdp-stock.is-out { color: var(--red); }
.pdp-stock.is-order { color: #C77700; }

.pdp-block { margin-top: 28px; }
.pdp-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.pdp-label .value { font-weight: 500; color: var(--text-2); letter-spacing: 0.02em; text-transform: none; margin-left: 10px; }
.pdp-label button {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--text-2);
}
.pdp-label button:hover { color: var(--red); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
    width: 34px; height: 34px;
    border-radius: 50%;
    padding: 3px;
    border: 1px solid transparent;
    transition: border-color var(--t);
}
.swatch i {
    display: block;
    width: 100%; height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.swatch:hover { border-color: var(--line); }
.swatch.is-active { border-color: var(--ink); }

.sizes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 6px;
}
.size {
    height: 48px;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--t);
    background: transparent;
}
.size:hover { border-color: var(--ink); }
.size.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size[disabled] {
    color: var(--muted);
    background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,0.04) 6px 7px);
    cursor: not-allowed;
}
/* Talla sin stock propio (las demás tallas del producto sí tienen) */
.size.is-out { text-decoration: line-through; }
.size-measure { margin-top: 10px; font-size: 12px; color: var(--text-2); min-height: 18px; }

.field-error {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
}
.shake { animation: shake 0.45s; }
@keyframes shake {
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.pdp-buy {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    margin-top: 28px;
}
.pdp-buy .btn { min-height: 50px; min-width: 0; white-space: normal; padding: 0 16px; }
.pdp-wa { margin-top: 8px; }

/* "Avísame cuando vuelva" */
.restock { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.restock-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.restock-row { display: flex; flex-wrap: wrap; gap: 8px; }
.restock-row select, .restock-row input {
    height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; font-size: 16px; color: var(--ink); min-width: 0;
}
.restock-row select { flex: 0 0 auto; }
.restock-row input { flex: 1 1 180px; }
.restock-row .btn { flex: 0 0 auto; min-height: 48px; }
.restock-row select:focus, .restock-row input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,11,11,0.06); }
.restock-msg { margin: 10px 0 0; font-size: 13px; color: var(--ink); }
.restock-msg:empty { display: none; }
.restock-msg.is-error { color: var(--red); }
.restock-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.restock-note a { text-decoration: underline; text-underline-offset: 3px; }

.pdp-trust {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-2);
}
.pdp-trust div { display: flex; align-items: center; gap: 12px; }
.pdp-trust svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink); }

.accordion { border-bottom: 1px solid var(--line); }
.accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    list-style: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
    content: '';
    width: 10px; height: 10px;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
    transition: transform var(--t);
}
.accordion[open] summary::after { transform: rotate(45deg); }
.accordion-body {
    padding: 0 0 20px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
}
.accordion-body p + p { margin-top: 10px; }
.accordion-body strong { color: var(--text); }

.sticky-buy {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(246,244,240,0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.45s var(--ease);
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy-info { flex: 1; min-width: 0; }
.sticky-buy-info strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-info span { font-size: 12px; color: var(--text-2); }
.sticky-buy .btn { min-height: 46px; padding: 0 20px; }

@media (max-width: 1023px) {
    .pdp { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
    .pdp-grid { display: none; }
    .pdp-slider { display: block; margin: 0 calc(var(--gutter) * -1); }
    .pdp-info { position: static; padding-top: 24px; }
    .sticky-buy { display: flex; }
    .pdp-breadcrumbs-top { display: none; }
}

/* Lightbox (zoom de fotos) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 12px 0 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.lightbox-track {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-track figure {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px 12px;
}
.lightbox-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 48px; height: 48px;
    margin-top: -24px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 768px) { .lightbox-nav { display: none; } }

/* Modal (guía de tallas) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,11,11,0.55); }
.modal-card {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--bg);
    padding: 28px;
    transform: translateY(16px);
    transition: transform var(--t);
}
.modal.is-open .modal-card { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-head h3 { font-size: 22px; }

/* Guía de tallas */
.size-guide-wrap { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.size-guide-diagram { color: var(--text-2); flex-shrink: 0; }
/* multiply funde el fondo blanco de la ilustración con el fondo crema de la página */
.size-guide-img { display: block; width: 180px; max-width: 100%; height: auto; mix-blend-mode: multiply; }
.size-guide-table-wrap { flex: 1; min-width: 240px; max-width: 560px; overflow-x: auto; }
.size-guide-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-guide-table th, .size-guide-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.size-guide-table th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.size-guide-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.size-guide-category-heading { font-size: 22px; margin: 40px 0 16px; }

/* ===== Checkout ===== */
.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 56px;
    align-items: start;
    padding-bottom: 96px;
}

.co-step { padding: 28px 0; border-top: 1px solid var(--line); }
.co-step:first-child { border-top: 0; padding-top: 0; }
.co-step-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}
.co-step-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field textarea {
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    font-size: 16px; /* 16px evita el zoom automático de iOS al enfocar */
    transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { height: 96px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(11,11,11,0.06);
}
.field.has-error input { border-color: var(--red); }
.field-msg { font-size: 12px; color: var(--red); min-height: 0; }

.notice {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 18px;
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--red); margin-top: 1px; }
.notice strong { color: var(--text); }

.pay-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--ink);
    background: #fff;
}
.pay-option .radio {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 5px solid var(--ink);
    flex-shrink: 0;
}
.pay-option strong { display: block; font-size: 14px; }
.pay-option small { font-size: 12px; color: var(--text-2); }

.summary {
    position: sticky;
    top: calc(var(--header-h) + var(--announce-h) + 24px);
    background: #fff;
    border: 1px solid var(--line);
    padding: 28px;
}
.summary h3 { font-size: 18px; margin-bottom: 20px; }
.summary-lines { max-height: 360px; overflow-y: auto; margin-bottom: 20px; }
.summary-line {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
}
.summary-thumb { position: relative; width: 64px; }
.summary-thumb img { width: 64px; aspect-ratio: 3/4; object-fit: cover; background: var(--surface); }
.summary-thumb b {
    position: absolute;
    top: -7px; right: -7px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}
.summary-line h5 { font-size: 13px; font-weight: 600; line-height: 1.35; }
.summary-line p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.summary-line .price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.summary-rows { border-top: 1px solid var(--line); padding-top: 16px; }
.summary-rows .cart-row.is-total { font-size: 18px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.summary .btn { margin-top: 20px; }
.summary-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}
.summary-foot svg { width: 14px; height: 14px; }

.summary-toggle { display: none; }

@media (max-width: 1023px) {
    .checkout { grid-template-columns: 1fr; gap: 24px; }
    .summary { position: static; order: -1; padding: 0; border: 0; background: transparent; }
    .summary h3 { display: none; }
    .summary-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        background: #fff;
        border: 1px solid var(--line);
        font-size: 13px;
        font-weight: 600;
    }
    .summary-toggle strong { font-size: 15px; }
    .summary-body {
        display: none;
        padding: 8px 18px 18px;
        background: #fff;
        border: 1px solid var(--line);
        border-top: 0;
    }
    .summary.is-open .summary-body { display: block; }
    .summary .btn, .summary .summary-foot { display: none; }
    .co-submit-mobile { display: block !important; }
}
.co-submit-mobile { display: none; margin-top: 8px; }
.co-legal-mobile { display: none; }
@media (max-width: 1023px) {
    .co-legal-desktop { display: none; }
    .co-legal-mobile { display: block; }
}

@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
}

.confirm {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 0 96px;
    text-align: center;
}
.confirm-icon {
    width: 72px; height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.confirm-icon svg { width: 32px; height: 32px; }
.confirm h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 16px; }
.confirm-number {
    display: inline-block;
    padding: 8px 14px;
    border: 1px dashed var(--ink);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.confirm p { color: var(--text-2); }
.confirm-steps {
    display: grid;
    gap: 12px;
    text-align: left;
    margin: 32px 0;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
}
.confirm-steps li { display: flex; gap: 14px; font-size: 14px; color: var(--text-2); }
.confirm-steps b {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.transfer-box {
    text-align: left;
    margin: 0 0 24px;
    padding: 20px 24px;
    background: var(--ink);
    color: #fff;
}
.transfer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.transfer-head strong { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.transfer-head .link-arrow { color: #fff; }
.transfer-box pre { font-family: var(--font-body); font-size: 15px; line-height: 1.7; white-space: pre-wrap; margin: 0 0 12px; }
.transfer-box p { font-size: 13px; color: rgba(255,255,255,0.7); }
.transfer-box p strong { color: #fff; }
.confirm-actions { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 0 auto; }

/* ===== Páginas de ayuda ===== */
.help-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
    padding-bottom: 96px;
}
.help-nav { position: sticky; top: calc(var(--header-h) + var(--announce-h) + 32px); align-self: start; }
.help-nav a {
    display: block;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    transition: color var(--t), padding var(--t);
}
.help-nav a:hover { color: var(--ink); padding-left: 6px; }
.help-nav a.is-active { color: var(--ink); }
.help-nav a.is-active::before { content: '— '; color: var(--red); }

.prose { max-width: 720px; font-size: 16px; line-height: 1.75; color: var(--text-2); }
.prose p { margin-bottom: 18px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 18px 20px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .prose h3 { color: var(--text); margin: 36px 0 14px; font-size: 22px; }

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; max-width: 720px; }
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color var(--t), transform var(--t);
}
.contact-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-card svg { width: 28px; height: 28px; flex-shrink: 0; }
.contact-card strong { display: block; font-size: 14px; }
.contact-card span { font-size: 13px; color: var(--text-2); }

@media (max-width: 900px) {
    .help-layout { grid-template-columns: 1fr; gap: 24px; }
    .help-nav {
        position: static;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter);
    }
    .help-nav::-webkit-scrollbar { display: none; }
    .help-nav a {
        flex-shrink: 0;
        padding: 0 16px;
        height: 36px;
        line-height: 36px;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: 11px;
    }
    .help-nav a:hover { padding-left: 16px; }
    .help-nav a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
    .help-nav a.is-active::before { content: none; }
    .contact-cards { grid-template-columns: 1fr; }
}

/* ===== 404 ===== */
.not-found {
    min-height: calc(100vh - var(--header-h) - var(--announce-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px var(--gutter);
}
.not-found .big {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(120px, 28vw, 360px);
    line-height: 0.8;
    color: var(--ink);
}
.not-found .big span { color: var(--red); }
.not-found h1 { font-size: clamp(22px, 3vw, 32px); margin: 24px 0 12px; }
.not-found p { color: var(--text-2); margin-bottom: 28px; }

/* ===== Acceso rápido al panel (solo con sesión de admin) ===== */
.admin-shortcut {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 950;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: background var(--t);
}
.admin-shortcut:hover { background: var(--red); }
.admin-shortcut svg { width: 16px; height: 16px; }
body.has-sticky-buy .admin-shortcut { bottom: 84px; }

/* ===== Animaciones de entrada ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

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