/* ==========================================================================
   YVIA — ARTE EN MADERA
   Design System & Editorial Stylesheet
   Inspirado en la jerarquía y exclusividad visual de A Motors
   ========================================================================== */

:root {
  --ink: #08090a;
  --ink-surface: #111315;
  --ink-card: #16181b;
  --ink-border: rgba(255, 255, 255, 0.1);
  --ink-border-subtle: rgba(255, 255, 255, 0.06);

  --paper: #f5f3ee;
  --paper-surface: #ece8df;
  --paper-card: #ffffff;
  --paper-border: #dcd7cc;
  --paper-border-subtle: #e7e3da;

  --gold: #c5a059;
  --gold-light: #deb874;
  --gold-dark: #a8833e;
  --gold-subtle: rgba(197, 160, 89, 0.15);

  --wood: #9e6d47;
  --wood-dark: #6e492d;

  --text-white: #ffffff;
  --text-light-muted: #a3a19b;
  --text-dark: #121314;
  --text-dark-muted: #6b675f;

  --serif: "Didot", "Bodoni MT", "Playfair Display", "Cinzel", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --nav-height: 86px;
  --nav-height-mobile: 74px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-cinematic: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background-color: var(--ink);
  color: var(--text-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.light-page {
  background-color: var(--paper);
  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

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

.shell {
  width: min(1320px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   NAVIGATION / HEADER
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background-color: #211710;
  border-bottom: 1px solid rgba(198, 161, 91, 0.22);
  transition: box-shadow var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Header Variations — Solid color across all states and pages */
.dark-home .header,
.light-page .header {
  background-color: #211710;
  border-bottom: 1px solid rgba(198, 161, 91, 0.22);
}

.header.header-scrolled,
.dark-home .header.header-scrolled,
.light-page .header.header-scrolled {
  background-color: #211710;
  border-bottom-color: rgba(198, 161, 91, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
}

.brand-logo {
  width: 90px;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
  /* Tint logo to crisp ivory #F5F0E8 */
  filter: brightness(0) invert(98%) sepia(5%) saturate(362%) hue-rotate(334deg) brightness(101%) contrast(93%);
}

.dark-home .brand-logo,
.light-page .brand-logo {
  filter: brightness(0) invert(98%) sepia(5%) saturate(362%) hue-rotate(334deg) brightness(101%) contrast(93%);
}

.brand:hover .brand-logo {
  transform: scale(1.03);
}

/* Nav Menu Items */
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a,
.dark-home .site-nav a,
.light-page .site-nav a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 8px 0;
  color: #F5F0E8;
  transition: color var(--transition-fast);
}

.site-nav a:hover,
.dark-home .site-nav a:hover,
.light-page .site-nav a:hover,
.site-nav a.active,
.dark-home .site-nav a.active,
.light-page .site-nav a.active {
  color: #C6A15B;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #C6A15B;
  border-radius: var(--radius-pill);
}

.nav-mobile-social {
  display: none;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: var(--radius-pill);
  background-color: #C6A15B;
  color: #211710;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.dark-home .btn-header-cta,
.light-page .btn-header-cta {
  background-color: #C6A15B;
  color: #211710;
}

.btn-header-cta:hover,
.dark-home .btn-header-cta:hover,
.light-page .btn-header-cta:hover {
  background-color: #d8b26e;
  color: #1a120c;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(198, 161, 91, 0.35);
}

/* Hamburger Toggle Button */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: #F5F0E8;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

.dark-home .menu-toggle span,
.light-page .menu-toggle span {
  background-color: #F5F0E8;
}

.menu-toggle:hover span {
  background-color: #C6A15B;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
  background-color: #F5F0E8;
}

.menu-toggle.is-active span:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
  background-color: #F5F0E8;
}

/* ==========================================================================
   BUTTONS & COMMON UI
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.button-gold {
  background-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.25);
}

.button-gold:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.35);
}

.button-ghost {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--text-white);
  color: var(--text-white);
  transform: translateY(-2px);
}

.button-dark {
  background-color: var(--ink);
  color: var(--text-white);
}

.button-dark:hover {
  background-color: #222;
  transform: translateY(-2px);
}

.button-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--paper-border);
}

.button-secondary:hover {
  border-color: var(--text-dark);
  background-color: rgba(0, 0, 0, 0.03);
}

.button-full {
  width: 100%;
}

.eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 12px;
}

.eyebrow.dark {
  color: var(--wood-dark);
}

/* ==========================================================================
   HERO CAROUSEL (HOME PAGE)
   ========================================================================== */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  background-color: var(--ink);
  overflow: hidden;
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-cinematic), visibility var(--transition-cinematic);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Hero Background Image */
.hero-slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  filter: none;
}

.hero-slide.active .hero-slide-img {
  transform: none;
}

/* Layered Cinematic Overlays */
.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, 
      rgba(15, 10, 7, 0.88) 0%, 
      rgba(15, 10, 7, 0.72) clamp(280px, 32vw, 480px), 
      rgba(15, 10, 7, 0.16) clamp(440px, 46vw, 680px), 
      transparent 64%),
    linear-gradient(0deg, 
      rgba(15, 10, 7, 0.75) 0%, 
      rgba(15, 10, 7, 0.15) 24%, 
      transparent 40%);
  pointer-events: none;
}

/* Hero Content Area — Left aligned without centering to showcase furniture */
.hero-slide-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(48px, 8.5vh, 88px);
  padding-top: calc(var(--nav-height) + 20px);
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.hero-editorial-card {
  width: 100%;
  max-width: 520px;
  text-align: left;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(8, 9, 10, 0.65);
  border: 1px solid var(--gold-subtle);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-piece-name {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--text-white);
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-piece-tagline {
  font-size: 1.05rem;
  color: #d1cec7;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 520px;
}

/* Hero Specs Bar */
.hero-specs-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  color: #c4c0b6;
  margin-bottom: 30px;
}

.hero-specs-bar .spec-value {
  color: var(--text-white);
  font-weight: 600;
}

.hero-specs-bar .spec-divider {
  color: var(--gold);
  opacity: 0.5;
}

/* Hero Action Buttons */
.hero-actions-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Carousel Controls (Desktop Bottom Right) */
.hero-controls-panel {
  position: absolute;
  bottom: clamp(48px, 9vh, 90px);
  right: clamp(24px, 5vw, 80px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-counter-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background-color: rgba(8, 9, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.hero-nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(8, 9, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.hero-nav-arrow:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: scale(1.06);
}

/* Hero Progress Indicators (Dots / Bars) */
.hero-progress-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  transition: all var(--transition-smooth);
}

.hero-dot.active {
  width: 52px;
  background-color: var(--gold);
}

/* ==========================================================================
   STATEMENT SECTION (HISTORIA — FONDO OSCURO)
   ========================================================================== */

.statement {
  background-color: #17120F;
  color: #F5F0E8;
  padding: clamp(90px, 12vw, 140px) 0;
}

.statement-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: flex-end;
}

.statement .eyebrow {
  color: #C6A15B;
}

.statement h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin-top: 16px;
  color: #F5F0E8;
}

.statement h2 em {
  font-style: italic;
  color: #C6A15B;
}

.statement-copy {
  color: rgba(245, 240, 232, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==========================================================================
   PRODUCT CARDS & GRIDS (PIEZAS DESTACADAS — FONDO CLARO)
   ========================================================================== */

.featured-section {
  padding: clamp(90px, 11vw, 140px) 0;
  background-color: #F5F2EC;
  color: #17120F;
}

.featured-section .section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(23, 18, 15, 0.12);
  padding-bottom: 24px;
}

.featured-section .section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-top: 8px;
  color: #17120F;
}

.featured-section .eyebrow {
  color: #C6A15B;
}

.featured-section .section-link-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #17120F;
  padding-bottom: 4px;
  border-bottom: 1px solid #C6A15B;
  transition: all var(--transition-fast);
}

.featured-section .section-link-all:hover {
  color: #C6A15B;
  border-bottom-color: #C6A15B;
}

/* Featured Section Light Cards */
.featured-section .product-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(23, 18, 15, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.featured-section .product-card:hover {
  border-color: rgba(198, 161, 91, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.featured-section .product-image-wrap {
  background-color: #E7E0D5;
}

.featured-section .product-wood {
  color: #C6A15B;
}

.featured-section .product-title {
  color: #17120F;
}

.featured-section .product-title a {
  color: #17120F;
}

.featured-section .product-title a:hover {
  color: #C6A15B;
}

.featured-section .product-meta-row {
  border-top: 1px solid rgba(23, 18, 15, 0.08);
  border-bottom: 1px solid rgba(23, 18, 15, 0.08);
}

.featured-section .product-meta-label,
.featured-section .product-specs-row {
  color: #6b675f;
}

.featured-section .product-meta-val {
  color: #17120F;
}

.featured-section .product-footer {
  border-top: 1px solid rgba(23, 18, 15, 0.08);
}

.featured-section .product-detail-link {
  color: #17120F;
}

.featured-section .product-detail-link:hover {
  color: #C6A15B;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Luxury Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #1a1c1e;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  filter: none;
  transition: none;
}

.product-card:hover .product-image-wrap img {
  transform: none;
}

.product-badge-type {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  background-color: var(--gold);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: var(--radius-sm);
}

.product-badge-num {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-header {
  margin-bottom: 14px;
}

.product-wood {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-white);
}

.product-title a:hover {
  color: var(--gold);
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--ink-border-subtle);
  border-bottom: 1px solid var(--ink-border-subtle);
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.product-meta-label {
  color: var(--text-light-muted);
}

.product-meta-val {
  color: var(--text-white);
  font-weight: 600;
}

.product-specs-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--ink-border);
  margin-top: auto;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-status-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.product-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-white);
}

.product-detail-link:hover {
  color: var(--gold);
  transform: translateX(2px);
}

/* Light Mode Card Variations (for Catalog Page) */
.light-page .product-card {
  background-color: var(--paper-card);
  border-color: var(--paper-border);
  color: var(--text-dark);
}

.light-page .product-card:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.light-page .product-title {
  color: var(--text-dark);
}

.light-page .product-meta-row {
  border-color: var(--paper-border-subtle);
}

.light-page .product-meta-label,
.light-page .product-specs-row {
  color: var(--text-dark-muted);
}

.light-page .product-meta-val {
  color: var(--text-dark);
}

.light-page .product-footer {
  border-color: var(--paper-border);
}

.light-page .product-detail-link {
  color: var(--text-dark);
}

/* ==========================================================================
   CATALOG PAGE (INDEPENDENT)
   ========================================================================== */

.catalog-page {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 120px;
}

.catalog-hero {
  margin-bottom: 50px;
  border-bottom: 1px solid var(--paper-border);
  padding-bottom: 36px;
}

.catalog-hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 12px 0 16px;
  color: var(--text-dark);
}

.catalog-hero-sub {
  font-size: 1.1rem;
  color: var(--text-dark-muted);
  max-width: 600px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 30px);
  background-color: var(--paper-surface);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.filter-heading {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dark-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--paper-border);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark-muted);
  text-align: left;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-dark);
}

.filter-btn.active {
  background-color: var(--ink);
  color: var(--text-white);
  font-weight: 600;
}

.catalog-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--paper-border);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dark-muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ==========================================================================
   DETAIL PAGE (PIEZA.HTML)
   ========================================================================== */

.detail-page {
  padding-top: calc(var(--nav-height) + 30px);
  padding-bottom: 120px;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dark-muted);
  margin-bottom: 32px;
}

.detail-back-link:hover {
  color: var(--text-dark);
  transform: translateX(-3px);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: start;
}

.detail-main-image {
  position: relative;
  width: 100%;
  height: clamp(440px, 56vh, 600px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10);
  background-color: #E7E0D5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.12));
}

.detail-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--serif);
  font-size: 3rem;
  color: rgba(33, 23, 16, 0.22);
  text-shadow: none;
  pointer-events: none;
}

.detail-info {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dark-muted);
  margin-bottom: 16px;
}

.detail-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.detail-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.detail-tagline {
  font-size: 1.05rem;
  color: var(--wood-dark);
  font-weight: 500;
  margin-bottom: 20px;
}

.detail-description {
  color: var(--text-dark-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.detail-specs-list {
  border-top: 1px solid var(--paper-border);
  margin-bottom: 36px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--paper-border-subtle);
  font-size: 0.8rem;
}

.spec-item dt {
  color: var(--text-dark-muted);
}

.spec-item dd {
  font-weight: 600;
  color: var(--text-dark);
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
/* ==========================================================================
   CRAFT SECTION (EL OFICIO — FONDO OSCURO)
   ========================================================================== */

.craft-section {
  padding: clamp(90px, 11vw, 130px) 0;
  background-color: #17120F;
  color: #F5F0E8;
}

.craft-section .eyebrow {
  color: #C6A15B;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border-top: 1px solid rgba(198, 161, 91, 0.22);
}

.craft-card {
  padding: 48px 40px 32px 0;
  border-right: 1px solid rgba(245, 240, 232, 0.10);
}

.craft-card:nth-child(2) {
  padding-left: 40px;
}

.craft-card:nth-child(3) {
  padding-left: 40px;
  border-right: none;
}

.craft-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: #C6A15B;
}

.craft-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  margin: 24px 0 14px;
  color: #F5F0E8;
}

.craft-card p {
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.75;
}

/* ==========================================================================
   ATELIER SECTION (EL PROCESO — FONDO CLARO)
   ========================================================================== */

.atelier-section {
  background-color: #F5F2EC;
  color: #17120F;
  padding: clamp(90px, 11vw, 140px) 0;
}

.atelier-grid {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(320px, 560px);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.atelier-reel-column {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.atelier-reel-container {
  width: 100%;
  max-width: 420px;
  background-color: #F5F2EC;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.atelier-reel-iframe {
  width: 100%;
  max-width: 420px;
  height: 740px;
  border: 0;
  background-color: #F5F2EC;
  display: block;
}

.atelier-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.atelier-content .eyebrow {
  color: #C6A15B;
}

.atelier-content h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 16px 0 24px;
  color: #17120F;
}

.atelier-content p {
  color: #6b675f;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Contact Section */
.contact-section {
  padding: clamp(100px, 14vw, 160px) 0;
  text-align: center;
  background: radial-gradient(circle at 50% 100%, #291d15 0%, var(--ink) 65%);
}

.contact-section h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 20px 0 24px;
}

.contact-section p {
  color: var(--text-light-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

.contact-info-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  background-color: rgba(33, 23, 16, 0.7);
  border: 1px solid rgba(198, 161, 91, 0.25);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  margin: 0 auto 28px;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contact-info-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #F5F0E8;
}

.contact-info-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.contact-info-item a {
  color: #F5F0E8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-info-item a:hover {
  color: var(--gold);
}

.contact-info-separator {
  color: var(--gold);
  opacity: 0.4;
}

.contact-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 12px;
}

.contact-social-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background-color: #211710;
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: var(--radius-pill);
  color: #F5F0E8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.social-btn svg {
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.social-btn:hover {
  background-color: #2e2017;
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.social-btn:hover svg {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background-color: #050607;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img,
.footer-brand .brand-logo {
  width: 90px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(98%) sepia(5%) saturate(362%) hue-rotate(334deg) brightness(101%) contrast(93%);
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-light-muted);
  font-size: 0.8rem;
}

.footer-column strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  color: var(--text-light-muted);
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light-muted);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-social-link svg {
  color: var(--gold);
  flex-shrink: 0;
}

.footer-social-link:hover {
  color: var(--gold);
}

.footer-legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #666;
}

/* Floating WhatsApp Badge */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--gold-light);
}

/* ==========================================================================
   RESPONSIVE / MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .statement-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .craft-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .craft-card,
  .craft-card:nth-child(2),
  .craft-card:nth-child(3) {
    padding: 0 0 24px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .atelier-grid {
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 40px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .catalog-sidebar {
    position: static;
  }

  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .filter-btn {
    width: auto;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-info {
    position: static;
  }
}

@media (max-width: 768px) {
  .shell {
    width: calc(100% - 32px);
  }

  .header {
    height: var(--nav-height-mobile);
  }

  .brand-logo {
    width: 72px;
    height: auto;
  }

  .btn-header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Fullscreen Mobile Navigation Drawer */
  .site-nav {
    position: fixed;
    inset: 0;
    background-color: #211710;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
    padding: 32px 24px;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #F5F0E8;
  }

  .site-nav a.active {
    color: #C6A15B;
  }

  .nav-mobile-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(198, 161, 91, 0.25);
    width: 100%;
    max-width: 280px;
  }

  .nav-mobile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(198, 161, 91, 0.35);
    color: var(--gold);
    transition: all var(--transition-fast);
  }

  .nav-mobile-social-link:hover,
  .nav-mobile-social-link:active {
    background-color: var(--gold);
    color: #211710;
    transform: translateY(-2px);
  }

  /* Mobile Hero Adjustments */
  .hero-carousel {
    min-height: 600px;
  }

  .hero-slide-img {
    object-position: center center;
  }

  .hero-overlay-dark {
    background:
      linear-gradient(0deg, rgba(14, 10, 7, 0.92) 0%, rgba(14, 10, 7, 0.5) 48%, rgba(14, 10, 7, 0.1) 75%);
  }

  .hero-slide-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 84px !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-editorial-card {
    max-width: 100% !important;
  }

  .hero-piece-name {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero-actions-group .button {
    width: 100%;
  }

  .hero-controls-panel {
    bottom: 24px;
    left: 16px;
    right: 88px;
    justify-content: space-between;
  }

  .hero-progress-dots {
    display: none;
  }

  /* Atelier Mobile: Reel first, Text second */
  .atelier-section {
    padding: 56px 0 64px;
    min-height: auto;
  }

  .atelier-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 440px;
  }

  .atelier-reel-column {
    order: 1;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .atelier-reel-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .atelier-reel-iframe {
    width: 100%;
    max-width: 360px;
    height: 680px;
  }

  .atelier-content {
    order: 2;
    padding: 0 16px;
    text-align: center;
    align-items: center;
  }

  .atelier-content h2 {
    font-size: clamp(2rem, 6.5vw, 2.8rem);
  }

  .detail-main-image {
    height: auto;
    min-height: 280px;
    aspect-ratio: 16 / 11;
    padding: 16px;
  }

  .contact-info-block {
    flex-direction: column;
    gap: 8px;
    border-radius: var(--radius-md);
    padding: 14px 20px;
  }

  .contact-info-separator {
    display: none;
  }

  .contact-social-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }

  .product-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand img,
  .footer-brand .brand-logo {
    width: 72px;
    height: auto;
    margin-bottom: 16px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Light Page Specific Overrides */
body.light-page {
  background-color: var(--paper);
  color: var(--text-dark);
}

body.light-page .catalog-hero-title,
body.light-page .detail-title {
  color: var(--text-dark);
}

body.light-page .catalog-hero-sub,
body.light-page .detail-description,
body.light-page .detail-specs-list dt,
body.light-page .catalog-results-bar,
body.light-page .detail-breadcrumb,
body.light-page .detail-back-link {
  color: var(--text-dark-muted);
}

body.light-page .detail-back-link:hover {
  color: var(--text-dark);
}

body.light-page .spec-item dd {
  color: var(--text-dark);
}

body.light-page .button-secondary {
  border-color: var(--paper-border);
  color: var(--text-dark);
}

body.light-page .button-secondary:hover {
  border-color: var(--text-dark);
  background-color: rgba(0, 0, 0, 0.05);
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-slide-img {
    transform: none !important;
  }
}

