/* Mejoras de navegación y lectura sobre la identidad existente de Skin Leather. */
[hidden] { display: none !important; }
:root { --transition: 180ms ease; }
:focus-visible { outline: 2px solid #8c6a4f; outline-offset: 5px; }
button, input, select { font: inherit; }
button { touch-action: manipulation; }
button.swatch-item { appearance: none; border: 0; background: transparent; color: inherit; text-align: left; width: 100%; min-height: 44px; cursor: pointer; padding: 3px 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10001; transform: translateY(-160%); background: var(--ink); color: white; padding: 12px 18px; }
.skip-link:focus { transform: none; }
.nav-inner { max-width: 100%; padding: 0 24px; opacity: 1; animation: none; }
.nav-mobile-actions { gap: 12px; flex-shrink: 0; }
.menu-search-toggle { display: inline-flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; }
.menu-toggle { position: relative; inset: auto; width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex-shrink: 0; }
.hero-scroll-stage { opacity: 1; animation: none; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; transition: opacity .22s ease; }
#hero-scroll-canvas { opacity: 0; visibility: hidden; transition: opacity .22s ease; }
#hero-scroll-canvas.hero-image-ready { opacity: 1; visibility: visible; }
.hero-has-frame .hero-poster { opacity: 0; }
.nav-links { top: 12px; right: 24px; max-height: calc(100dvh - 16px); overflow-y: auto; clip-path: circle(0% at calc(100% - 22px) 24px); transition: clip-path .2s ease, opacity .18s ease, visibility .2s; }
.nav-links.open { clip-path: circle(180% at calc(100% - 22px) 24px); }
.nav-links li { transition-delay: 0s !important; }
#navbar .menu-toggle.open span { background: var(--white); }
.hero-title-stage { height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; }
.hero-title { position: static; width: auto; height: auto; clip: auto; overflow: visible; font-family: var(--font-serif); font-size: clamp(5rem, 9vw, 10rem); line-height: .88; letter-spacing: -.045em; font-weight: 300; }
.hero-title::first-line { color: var(--ink); }
/* Sin !important: la entrada en cascada vive en fluidez.css. */
.hero-eyebrow, .hero-title, .hero-sub, .hero-cta { opacity: 1; animation: none; }
.hero-sub { font-size: clamp(1rem, 1.2vw, 1.2rem); line-height: 1.8; }
.hero-cta { background: var(--ink); color: white; border: 1px solid var(--ink); min-height: 48px; padding: 16px 24px; letter-spacing: .13em; transition: background .18s, transform .18s; }
.hero-cta:hover { background: #463525; color: white; transform: translateY(-2px); }
#catalog-controls { padding: 36px clamp(20px, 5vw, 80px); background: var(--cream-dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); scroll-margin-top: 88px; }
.catalog-controls-inner { max-width: 1360px; margin: auto; display: flex; align-items: end; gap: 40px; justify-content: space-between; }
.catalog-browse { min-width: 0; }
.catalog-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.catalog-categories a { display: flex; align-items: center; padding: 10px 16px; border: 1px solid #dfd8cf; border-radius: 999px; font-size: .85rem; min-height: 44px; transition: background .18s, color .18s; }
.catalog-categories a.active { background: var(--ink); color: white; border-color: var(--ink); }
.catalog-categories a:hover { border-color: var(--ink); }
.catalog-search { width: 270px; flex-shrink: 0; }
.catalog-search label { display: block; font-size: .8rem; font-weight: 500; margin-bottom: 8px; }
.catalog-search-field { position: relative; }
.catalog-search input { width: 100%; padding: 13px 42px 13px 14px; border: 1px solid #d6cdbf; border-radius: 6px; background: white; color: var(--ink); font-size: 16px; min-height: 48px; }
#clear-search { position: absolute; right: 3px; top: 2px; border: 0; background: transparent; font-size: 24px; width: 44px; height: 44px; cursor: pointer; }
#catalog-result-count { margin-top: 8px; min-height: 18px; font-size: .75rem; color: var(--ink-light); }
.products-grid[data-category="search"] { grid-template-columns: minmax(0, 1fr); }
.product-card, .product-card-poltrona, .product-card-sillon { transition: opacity .28s ease, transform .28s ease; }
.product-card *, .product-card-poltrona *, .product-card-sillon * { filter: none !important; transition-delay: 0s !important; }
.product-card.visible, .product-card-poltrona.visible, .product-card-sillon.visible { filter: none !important; opacity: 1; }
.product-card.visible .fade-target, .product-card-poltrona.visible .fade-target, .product-card-sillon.visible .fade-target { opacity: 1; transform: none; }
.dynamic-img { transition: opacity .18s ease !important; }
.is-updating .swatch-active-display { opacity: .55; }
.product-card-sillon .sillon-dot { border: 0; cursor: pointer; padding: 0; }
.catalog-empty { padding: 50px 20px; text-align: center; }
.catalog-empty h3 { font: 2.4rem var(--font-serif); }
.catalog-empty p { margin: 16px 0 24px; }
.catalog-empty button { padding: 12px 20px; background: var(--ink); color: white; border: 0; border-radius: 4px; cursor: pointer; }
.site-toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 16px 22px; width: max-content; max-width: calc(100vw - 32px); z-index: 20000; border-radius: 8px; font-size: .9rem; box-shadow: 0 8px 32px #0002; }
.site-toast.is-error { background: #7b332a; }
.dialog-open { overflow: hidden; }
.dialog-open #btn-toggle-scale { display: none !important; }
.auth-modal-card, .admin-modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.auth-modal-card input { font-size: 16px; min-height: 48px; }
.admin-snapshot-item { gap: 12px; }
.admin-snapshot-item-name { overflow-wrap: anywhere; }
.noscript-note { padding: 24px; background: var(--cream-dark); }
.noscript-note a { text-decoration: underline; }
@media (max-width: 1100px) {
  .catalog-controls-inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .catalog-search { width: 100%; max-width: 500px; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 10px 16px; }
  .nav-links { top: 4px; right: 16px; clip-path: circle(0% at calc(100% - 22px) 22px); }
  .nav-links.open { clip-path: circle(180% at calc(100% - 22px) 22px); }
  .nav-right { margin-left: auto; }
  .nav-mobile-actions { gap: 3px; margin-left: 6px; }
  .hero-content { padding: 90px 20px 0 !important; display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start !important; gap: 0 !important; }
  .hero-content .hero-eyebrow { margin: 0 0 20px !important; }
  .hero-content .hero-title-stage { margin: 0 !important; padding: 0; }
  .hero-content .hero-sub { margin: 18px 0 20px !important; }
  .hero-content .hero-cta { margin: 0 !important; }
  .hero-title { font-size: clamp(4.2rem, 19vw, 6.5rem); line-height: .92; }
  .hero-sub { margin-top: 20px; line-height: 1.55; }
  .hero-scroll-stage { position: absolute !important; left: 0; right: 0; top: auto !important; bottom: 55px !important; height: 36svh !important; min-height: 0 !important; }
  .hero-scroll-hint { bottom: 18px !important; }
  #catalog-controls { padding: 24px 16px; }
  .catalog-categories { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; margin-right: -16px; padding-right: 16px; scrollbar-width: thin; }
  .catalog-categories a { flex-shrink: 0; padding: 10px 14px; }
  #catalogo { padding-top: 32px; scroll-margin-top: 70px; }
  button.swatch-item { width: 44px !important; height: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .swatches-container { gap: 18px !important; }
  .swatch-col { min-width: 0; }
  .swatch-col h3 { letter-spacing: .08em; }
  .swatch-active-display { min-height: 28px; line-height: 1.5; text-wrap: balance; }
  .sillon-swatches-wrap { gap: 4px !important; }
  .sillon-dots { gap: 0; padding: 0; }
  .product-card-sillon .sillon-dot,
  .product-card-sillon .sillon-dot.active {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: transparent; box-shadow: none;
    pointer-events: auto;
  }
  .sillon-dot::before {
    content: ''; width: 6px; height: 6px; border-radius: 999px;
    background: #d7d0c7; transition: width .18s ease, background .18s ease;
  }
  .sillon-dot.active::before { width: 18px; background: var(--gold); }
  .variant-btn { min-height: 44px; }
  .auth-modal-card, .admin-modal-card { max-height: calc(100dvh - 24px); }
  .admin-snapshot-item { align-items: start; flex-direction: column; }
  .admin-snapshot-actions { width: 100%; }
}
@media (max-width: 370px) {
  .logo { font-size: 1rem; }
  .nav-login-btn { padding: 8px 6px; font-size: .6rem; }
  .hero-eyebrow { font-size: .6rem; letter-spacing: .18em; }
  .hero-sub { font-size: .95rem; }
  .hero-scroll-stage { height: 31svh !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .product-card, .product-card-poltrona, .product-card-sillon, .sillones-callout { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Dirección de movimiento: material protagonista, entrada breve y controles estables. */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
.nav-inner { gap: 24px; }
.nav-right { margin-left: auto; }
.nav-collections { display: flex; gap: 32px; align-items: center; margin-right: 30px; }
.editorial-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
/* Adaptado de Vengeance UI line-hover-link (MIT, ver THIRD-PARTY-NOTICES.txt). */
.editorial-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform 240ms var(--motion-ease); }
.editorial-link:is(:hover, :focus-visible)::after { transform: scaleX(1); transform-origin: left center; }
.menu-toggle span { transition: transform 240ms var(--motion-ease), background 180ms ease; }
.nav-links { border-radius: 10px; background: #251c14; box-shadow: 0 18px 60px #20170824; padding-top: 52px; }
.nav-links a { min-height: 44px; display: flex; align-items: center; }
.nav-links li { width: 100%; transform: translateY(5px); transition: opacity 180ms ease, transform 240ms var(--motion-ease); }
.nav-links a:hover { padding-left: 8px; }
.hero-title-stage { opacity: 1; animation: none; transform: none; }
.hero-sticky { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr); }
.hero-scroll-stage { min-width: 0; min-height: 0; overflow: hidden; }
#hero-scroll-canvas { position: absolute; inset: 0; }
.hero-content { align-items: flex-start; text-align: left; padding: 20px 0 20px clamp(32px, 6vw, 110px); max-width: none; }
.hero-title { font-size: clamp(5rem, 9.5vw, 10.5rem); line-height: .84; }
.hero-word { display: block; font-weight: 300; }
.hero-word + .hero-word { margin-top: .06em; color: #876647; }
.hero-eyebrow { color: #876647; font-size: .65rem; letter-spacing: .25em; }
.hero-content .hero-sub { margin: 32px 0 28px; max-width: 400px; font-size: 1rem; color: #665c51; }
.hero-cta { display: inline-flex; gap: 30px; align-items: center; border-radius: 2px; font-size: .69rem; font-weight: 400; }
.hero-cta span { font-size: 1.2rem; transition: transform 220ms var(--motion-ease); }
.hero-cta:hover span { transform: translate(2px, -2px); }
.hero-origin { margin-top: 22px; font-size: .62rem; letter-spacing: .1em; color: #83776a; }
.hero-craft-caption { position: absolute; bottom: 16%; left: 18%; right: 14%; display: flex; align-items: center; gap: 24px; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: #83776a; }
.hero-progress { height: 1px; flex: 1; background: #e1d7c9; }
.hero-progress i { display: block; width: 100%; height: 100%; background: #94734e; transform: scaleX(0); transform-origin: left; transition: transform 100ms linear; }
.hero-scroll-hint { opacity: 1; animation: none; }
.hero-scroll-hint-arrow { animation: none; }
#cueros, #nosotros, #contacto { scroll-margin-top: 70px; }
#beneficios { padding-top: 44px; padding-bottom: 44px; }
.beneficio-item { border-color: #e4d9cb; }
.catalog-categories a { transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
#catalog-controls { background: #f8f5ef; }
.catalog-search input { border-radius: 2px; }
.catalog-search input:focus { border-color: #8c6a4f; }
.reveal, .product-card, .product-card-poltrona, .product-card-sillon, .sillones-callout {
  opacity: 1; transform: none; filter: none !important; will-change: auto;
  transition: opacity 420ms var(--motion-ease), transform 420ms var(--motion-ease) !important;
}
.product-card, .product-card-poltrona, .product-card-sillon { isolation: isolate; }
.reveal.motion-pending, .product-card.motion-pending, .product-card-poltrona.motion-pending, .product-card-sillon.motion-pending, .sillones-callout.motion-pending { opacity: 0; transform: translateY(16px); }
:is(.product-card, .product-card-poltrona, .product-card-sillon):not(.visible) :is(.swatch-item, .silla-card-top, .poltrona-header, .sillon-header-row, .poltrona-img-col, .product-zoom, .silla-bottom-row, .poltrona-bottom-row) { opacity: 1; transform: none; }
.sillones-callout :is(.sillones-callout-eyebrow, .sillones-callout-title, .sillones-callout-body, .sillones-callout-cta) { opacity: 1; transform: none; transition: none; }
.sillones-callout { border-radius: 4px; }
.swatch-item .swatch-circle { transition: transform 220ms var(--motion-ease), box-shadow 220ms ease; }
.swatch-pointer { transition: transform 260ms var(--motion-ease), opacity 180ms ease; }
.is-updating .swatch-active-display { opacity: 1; }
.is-updating .gallery-trigger { opacity: .45; pointer-events: none; }
.dynamic-img, .full-height-composite { cursor: zoom-in; pointer-events: auto; }
.poltrona-img-col, .product-zoom, .sillon-hero { position: relative; }
.gallery-trigger { position: absolute; bottom: 16px; right: 16px; z-index: 5; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #e5ddd2; border-radius: 100px; color: #504031; background: #fffefbee; cursor: pointer; font-size: .65rem; letter-spacing: .08em; transition: background 180ms ease, border-color 180ms ease; }
.gallery-trigger svg { width: 16px; height: 16px; }
.gallery-trigger:hover { background: #f4ede3; border-color: #b59b7f; }
.gallery-open { overflow: hidden; }
.product-gallery { width: min(1280px, 94vw); height: min(900px, 92dvh); max-width: none; max-height: none; padding: 0; margin: auto; border: 1px solid #e7dfd4; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 30px 100px #0003; }
.product-gallery::backdrop { background: #1a1208a6; }
.gallery-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.gallery-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 32px 16px; border-bottom: 1px solid #eee8df; }
.gallery-header h2 { font: 300 clamp(2rem, 4vw, 3.6rem)/1.1 var(--font-serif); margin: 5px 0; }
.gallery-header .section-label { font-size: .58rem; }
.gallery-finish { font-size: .75rem; color: #75695c; min-height: 18px; }
.gallery-close, .gallery-prev, .gallery-next { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: 1px solid #e1d6c7; background: #fff; color: var(--ink); cursor: pointer; font-size: 26px; transition: background 180ms ease; }
.gallery-close:hover, .gallery-prev:hover, .gallery-next:hover { background: #f4ede3; }
.gallery-stage { position: relative; overflow: hidden; min-height: 0; touch-action: pan-y pinch-zoom; }
.gallery-photo { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: center; }
.gallery-photo:not([src]) { visibility: hidden; }
.gallery-stage[aria-busy="true"]::after { content: 'Cargando vista…'; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 8px 14px; background: #fffefbf2; color: #71604f; font: .75rem var(--font-sans); border-radius: 20px; }
.gallery-footer { background: #fff; border-top: 1px solid #eee8df; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 14px 24px; }
.gallery-caption { color: #71604f; font: .75rem/1.5 var(--font-sans); text-align: center; max-width: 60%; min-width: 160px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-word { animation: brand-reveal 650ms var(--motion-ease) both; }
  .hero-word + .hero-word { animation-delay: 70ms; }
  .product-gallery[open] .gallery-shell { animation: surface-enter 240ms var(--motion-ease); }
}
@keyframes brand-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes surface-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .nav-collections { display: none; } }
@media (max-width: 768px) {
  .nav-inner { gap: 0; }
  .nav-collections { display: none; }
  .hero-content { text-align: center; align-items: center; }
  .hero-content .hero-eyebrow { margin-bottom: 16px !important; }
  .hero-title { font-size: clamp(3.3rem, 15vw, 5rem); line-height: .92; }
  .hero-word { display: inline; }
  .hero-word + .hero-word { margin: 0; }
  .hero-content .hero-sub { font-size: .86rem; line-height: 1.65; margin: 20px 0 !important; }
  .hero-cta { font-size: .6rem; padding: 12px 18px; gap: 20px; }
  .hero-origin { font-size: .54rem; margin-top: 16px; }
  .hero-scroll-stage { position: relative !important; bottom: auto !important; height: auto !important; min-height: 130px !important; flex: 1 1 0; margin-bottom: 64px; }
  .hero-craft-caption { bottom: 0; left: 12%; right: 12%; font-size: .52rem; }
  .hero-scroll-hint-text { font-size: .5rem; }
  .gallery-trigger { bottom: 12px; right: 12px; padding: 0 12px; }
  .gallery-trigger span { display: none; }
  .gallery-trigger svg { width: 18px; height: 18px; }
  .product-gallery { width: calc(100vw - 16px); height: calc(100dvh - 24px); }
  .gallery-header { padding: 18px; }
  .gallery-footer { gap: 10px; padding: 12px; }
  .gallery-caption { min-width: 0; flex: 1; }
}
@media (max-width: 768px) and (max-height: 700px) {
  .hero-content { padding-top: 72px !important; }
  .hero-title { font-size: clamp(3rem, 14vw, 4rem); }
  .hero-content .hero-eyebrow { margin-bottom: 10px !important; }
  .hero-content .hero-sub { margin: 14px 0 !important; }
  .hero-origin { display: none; }
  .hero-scroll-stage { height: auto !important; bottom: auto !important; margin-bottom: 52px; }
  .hero-scroll-hint { bottom: 8px !important; }
}
@media (min-width: 769px) and (max-height: 600px) {
  .hero-title { font-size: 4.8rem; }
  .hero-content { padding-top: 70px; }
  .hero-content .hero-sub { margin: 18px 0; }
  .hero-craft-caption { bottom: 10%; }
  .hero-origin, .hero-scroll-hint { display: none; }
}
@media (min-width: 500px) and (max-width: 768px) and (max-height: 500px) {
  .hero-sticky { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 62px 16px 16px 28px !important; align-items: flex-start; text-align: left; }
  .hero-title { font-size: 3rem; }
  .hero-word { display: block; }
  .hero-content .hero-eyebrow { font-size: .48rem; }
  .hero-content .hero-sub { font-size: .74rem; margin: 14px 0 !important; }
  .hero-cta { padding: 8px 12px; font-size: .5rem; gap: 12px; min-height: 44px; }
  .hero-scroll-stage { height: 100% !important; margin: 0; }
  .hero-scroll-hint, .hero-craft-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-pending { opacity: 1 !important; transform: none !important; }
  .hero-craft-caption, .hero-scroll-hint { display: none; }
  .product-card, .product-card-poltrona, .product-card-sillon, .reveal, .sillones-callout { transition: none !important; }
}

/* El fundido de fotos tiene un solo dueño; evita el desplazamiento heredado por CSS. */
.is-updating img[id^="img-"] { transition: none !important; }
.product-card, .product-card-poltrona, .product-card-sillon { position: relative; }
.swatch-active-display { transition: opacity .55s ease !important; }

/* La barra lateral conserva su espacio cuando Lenis bloquea el fondo del menú. */
html { scrollbar-gutter: stable; }
.curtain-progress-fill { transition: width .45s linear !important; }
.curtain-loading-note { margin: 1rem 0 0; color: #c9a96e; font-size: .7rem; letter-spacing: .12em; }
.catalog-price-preview { margin-top: .7rem; color: var(--ink); background: transparent; border: 1px solid var(--gold); border-radius: 999px; padding: .5rem .8rem; cursor: pointer; }
.poltrona-img-col.product-image-frame { overflow: hidden; }
/* El encuadre se resuelve antes de mostrar la foto, nunca durante el fundido. */
img[data-frame-fit="balanced"], img[data-frame-fit="headboard"] { transition: none !important; }
img[data-frame-fit="balanced"]:not([data-fit-ready]), img[data-frame-fit="headboard"]:not([data-fit-ready]) { opacity: 0; }
@media (min-width: 769px) {
  .product-card-headboard { --poltrona-img-h-tablet: 440px; }
  .poltrona-img-col.product-image-frame-desktop { overflow: hidden; }
}
