/* =============================================================================
   LUXA · TD Lighting Experience — App-shell visual system
   Premium dark lighting brand reorganised as an interactive web app:
   left sidebar + main panel area + top section bar.
   ========================================================================== */

:root {
  /* Palette */
  --black:      #08080A;
  --graphite:   #101013;
  --graphite-2: #15151A;
  --panel:      #1B1B21;
  --panel-2:    #202028;
  --line:       rgba(255, 255, 255, 0.08);
  --line-soft:  rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink:        #F3F1EC;
  --ink-dim:    #A7A5A0;
  --ink-faint:  #6E6C68;
  --brass:      #C9A24B;
  --brass-soft: rgba(201, 162, 75, 0.14);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Shell */
  --sidebar-w: 260px;
  --topbar-h:  72px;
  --radius:    14px;
  --radius-sm: 10px;
  --gutter:    clamp(20px, 3.4vw, 44px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--black);
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden; /* scroll lives inside .main */
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shared atoms ---------- */
.eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.95em 2em;
  border: 1px solid transparent;
  border-radius: 100px;
  transition: all 0.35s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--black); }
.btn-primary:hover { background: var(--brass); color: var(--black); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

.serif-xl { font-family: var(--serif); font-weight: 600; letter-spacing: 0.16em; }

/* =============================================================================
   APP SHELL
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  background: var(--black);
}

/* =============================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  background: var(--graphite);
  border-right: 1px solid var(--line);
  padding: 26px 18px 22px;
  z-index: 60;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 26px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--brass), #8a6d2e);
  color: var(--black);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 12px 28px -10px rgba(201,162,75,0.5);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
}
.brand-by {
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-dim);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-align: left;
  position: relative;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-item:hover { color: var(--ink); background: var(--line-soft); }
.nav-item svg { flex-shrink: 0; opacity: 0.85; transition: opacity 0.25s var(--ease), stroke 0.25s var(--ease); }
.nav-item span:not(.nav-badge) { flex: 1; }

.nav-item.active {
  color: var(--ink);
  background: var(--panel-2);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--brass);
}
.nav-item.active svg { color: var(--brass); opacity: 1; }

.nav-badge {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--brass);
  color: var(--black);
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.05em;
}

/* Language toggle ES / EN — segmented pill in sidebar */
.lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin: 18px 10px 0;
  background: var(--graphite-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  width: fit-content;
}
.lang-btn {
  padding: 5px 14px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  border-radius: 100px;
  transition: all 0.25s var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  background: var(--ink);
  color: var(--black);
}

.sidebar-foot {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 10px 4px;
  border-top: 1px solid var(--line-soft);
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.sidebar-foot-status { display: flex; align-items: center; gap: 10px; }
.sidebar-foot p { margin: 0; line-height: 1.3; color: var(--ink-dim); }
.sidebar-foot-sub {
  color: var(--ink-faint) !important;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}
.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.social-ico {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.social-ico svg { width: 14px; height: 14px; fill: currentColor; }
.social-ico:hover {
  border-color: var(--brass);
  color: var(--brass);
  transform: translateY(-2px);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #58c773;
  box-shadow: 0 0 12px rgba(88,199,115,0.5);
}

.sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 55;
  animation: fadeIn 0.3s var(--ease);
}
.sidebar-backdrop[hidden] { display: none; }

/* =============================================================================
   MAIN — topbar + panels area
   ========================================================================== */
.main {
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 20;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: -8px;
}
.hamburger span {
  width: 22px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.topbar-title { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.topbar-eyebrow {
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass); font-weight: 500;
}
.topbar-h1 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-action {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.7em 1.2em;
  border-radius: 100px;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.topbar-action:hover { border-color: var(--brass); color: var(--ink); }
.topbar-pill {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.55em 1em;
  border-radius: 100px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}

/* Panels area — scrolls vertically inside the main */
.panels {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  scroll-behavior: smooth;
}
.panels::-webkit-scrollbar { width: 10px; }
.panels::-webkit-scrollbar-track { background: transparent; }
.panels::-webkit-scrollbar-thumb { background: var(--line); border-radius: 100px; border: 3px solid var(--black); }
.panels::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

.panel {
  padding: 30px var(--gutter) 60px;
  animation: fadeIn 0.45s var(--ease);
  min-height: calc(100vh - var(--topbar-h));
}
.panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =============================================================================
   PANEL: HOME — dominant hero + secondary strip below
   ========================================================================== */
.panel-home {
  /* hero is allowed to grow tall and span full width; secondary sits below */
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  /* Dominante: ocupa el alto del área de paneles disponible (descontando topbar y un margen). */
  min-height: calc(100vh - var(--topbar-h) - 1px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.home-hero-slides {
  position: absolute; inset: 0;
  pointer-events: none;
}
.home-hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.home-hero-slide.is-active { opacity: 1; }
.home-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(8,8,10,0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
}
.home-hero-arrow:hover { opacity: 1; background: rgba(8,8,10,0.6); border-color: rgba(201,162,75,0.6); color: var(--gold, #c9a24b); }
.home-hero-arrow:focus-visible { outline: 2px solid var(--gold, #c9a24b); outline-offset: 2px; }
.home-hero-arrow-prev { left: clamp(12px, 2vw, 24px); }
.home-hero-arrow-next { right: clamp(12px, 2vw, 24px); }
@media (max-width: 640px) {
  .home-hero-arrow { width: 38px; height: 38px; }
}

.home-hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 90px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  pointer-events: none;
}
.home-hero-dot {
  pointer-events: auto;
  display: inline-block;
  width: 28px;
  height: 3px;
  border: 0;
  padding: 12px 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.home-hero-dot::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.home-hero-dot:hover::before { background: rgba(255,255,255,0.6); }
.home-hero-dot.is-active::before { background: var(--gold, #c9a24b); }
.home-hero-dot:focus-visible { outline: none; }
.home-hero-dot:focus-visible::before { box-shadow: 0 0 0 2px var(--gold, #c9a24b); }

.home-hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 90% at 20% 50%, rgba(201,162,75,0.12), transparent 55%),
    linear-gradient(90deg, rgba(8,8,10,0.92) 0%, rgba(8,8,10,0.6) 45%, rgba(8,8,10,0.2) 100%),
    linear-gradient(0deg, rgba(8,8,10,0.7) 0%, transparent 35%);
}
.home-hero-text {
  position: relative;
  z-index: 2;
  padding: 0 clamp(40px, 6vw, 90px);
  max-width: 720px;
  animation: fadeUp 0.9s var(--ease);
}
.home-hero-text .eyebrow { margin-bottom: 16px; display: inline-block; }
.home-hero-title { margin: 8px 0 4px; line-height: 0.9; }
.home-hero-title .serif-xl {
  font-size: clamp(4.5rem, 12vw, 9rem);
  text-shadow: 0 0 80px rgba(201,162,75,0.25);
  display: inline-block;
}
.home-hero-tag {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 20px 0 16px;
  font-weight: 400;
}
.home-hero-sub {
  color: var(--ink-dim);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  margin-bottom: 34px;
  max-width: 460px;
}
.home-hero-cta { padding: 1.1em 2.6em; font-size: 0.84rem; }
.home-hero-scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  pointer-events: none;
}
.home-hero-scroll span {
  display: inline-block;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0); opacity:.6 } 50%{ transform: translateY(6px); opacity:1 } }

/* =============================================================================
   HOME · Explore by Space — editorial asymmetric grid (1 hero + 2 secondary)
   Refuerza el corner: cuando termina el hero principal, el usuario cae
   directamente en producto aplicado en contexto, no en un dashboard.
   ========================================================================== */
.home-spaces {
  padding: 70px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.home-spaces-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.home-spaces-head .eyebrow { margin-bottom: 12px; display: block; }
.home-spaces-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.home-spaces-all {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 8px;
  transition: color 0.3s var(--ease);
}
.home-spaces-all:hover { color: var(--brass); }

/* Asymmetric grid: hero card 2 cols on the left, 2 secondary cards stacked right.
   On mobile colapsa a 1 columna. */
.home-spaces-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "hero side1"
    "hero side2";
  gap: 18px;
}

.space-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  cursor: pointer;
  display: block;
  text-align: left;
  width: 100%;
  font: inherit; color: inherit;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.space-card:hover { border-color: var(--brass); transform: translateY(-3px); }
.space-card:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.space-card.is-featured  { grid-area: hero;  aspect-ratio: 4 / 5; }
.space-card.is-secondary:nth-of-type(2) { grid-area: side1; aspect-ratio: 16 / 11; }
.space-card.is-secondary:nth-of-type(3) { grid-area: side2; aspect-ratio: 16 / 11; }

.space-card-media {
  position: absolute; inset: 0;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 20%, #232328, #0d0d0f 75%);
}
.space-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.space-card:hover .space-card-media img { transform: scale(1.05); }

.space-card-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg,
    rgba(8,8,10,0.96) 0%,
    rgba(8,8,10,0.55) 40%,
    rgba(8,8,10,0.10) 70%,
    transparent 100%);
  pointer-events: none;
}

.space-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 32px;
  z-index: 2;
}
.space-card-eyebrow {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-bottom: 10px;
}
.space-card-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 10px;
  transition: color 0.35s var(--ease);
}
.space-card.is-featured .space-card-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
}
.space-card:hover .space-card-title { color: var(--brass); }

.space-card-tagline {
  font-size: 0.88rem;
  color: var(--ink-dim);
  margin-bottom: 18px;
  max-width: 42ch;
  line-height: 1.45;
}
.space-card.is-secondary .space-card-tagline {
  font-size: 0.82rem;
  margin-bottom: 12px;
}
.space-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.space-card-cta::after { content: '→'; transition: transform 0.3s var(--ease); }
.space-card:hover .space-card-cta { gap: 14px; color: var(--brass); }

/* =============================================================================
   HOME · Tipos de luminaria — collage editorial por categoría
   (Colgantes, De pie, De techo). 3 cards de igual peso, close-up del producto
   más curado de cada categoría como portada.
   ========================================================================== */
.home-types {
  padding: 70px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-top: 1px solid var(--line-soft);
}
.home-types-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.home-types-head .eyebrow { margin-bottom: 12px; display: block; }
.home-types-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.home-types-all {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 8px;
  transition: color 0.3s var(--ease);
}
.home-types-all:hover { color: var(--brass); }

.home-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.home-types-grid[hidden] { display: none; }
@media (max-width: 1100px) {
  .home-types-grid { grid-template-columns: repeat(2, 1fr); }
}

.type-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.type-card:hover { border-color: var(--brass); transform: translateY(-3px); }
.type-card:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.type-card-media {
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% 20%, #232328, #0d0d0f 75%);
}
.type-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.type-card:hover .type-card-media img { transform: scale(1.05); }

.type-card-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg,
    rgba(8,8,10,0.92) 0%,
    rgba(8,8,10,0.50) 38%,
    rgba(8,8,10,0.08) 72%,
    transparent 100%);
  pointer-events: none;
}

.type-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 28px;
  z-index: 2;
}
.type-card-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 6px;
  transition: color 0.35s var(--ease);
}
.type-card:hover .type-card-title { color: var(--brass); }
.type-card-count {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
}
.type-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.type-card:hover .type-card-cta { gap: 14px; color: var(--brass); }

/* =============================================================================
   HOME · Bridge — del catálogo al ambiente (split editorial)
   El puente narrativo: render aislado ↔ producto vivo en contexto.
   ========================================================================== */
.home-bridge {
  padding: 70px var(--gutter) 50px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-top: 1px solid var(--line-soft);
}
.home-bridge[hidden] { display: none; }
.home-bridge-head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.home-bridge-head .eyebrow { display: block; margin-bottom: 14px; }
.home-bridge-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 14px;
}
.home-bridge-sub {
  color: var(--ink-dim);
  font-size: 0.98rem;
  max-width: 540px;
  margin: 0 auto;
}

.home-bridge-split {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: stretch;
  gap: 0;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.home-bridge-side {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.home-bridge-side:hover { transform: translateY(-3px); }
.home-bridge-side:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; border-radius: var(--radius); }

.home-bridge-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: border-color 0.4s var(--ease);
}
.home-bridge-side:hover .home-bridge-media { border-color: var(--brass); }

/* Catálogo: fondo radial premium tipo card de producto */
.home-bridge-side.is-catalog .home-bridge-media {
  background: radial-gradient(120% 120% at 50% 20%, #232328, #0d0d0f 75%);
}
.home-bridge-side.is-catalog .home-bridge-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 30px;
  transition: transform 0.7s var(--ease);
}

/* Contexto: imagen llena el frame */
.home-bridge-side.is-context .home-bridge-media {
  background: var(--graphite);
}
.home-bridge-side.is-context .home-bridge-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.home-bridge-side:hover .home-bridge-media img { transform: scale(1.04); }

.home-bridge-side figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  padding: 0 8px;
}
.home-bridge-tag {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}
.home-bridge-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}

.home-bridge-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 1.6rem;
  position: relative;
}
.home-bridge-divider span {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--graphite-2);
}
.home-bridge-divider::before,
.home-bridge-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--line-soft);
  transform: translateX(-50%);
}
.home-bridge-divider::before { top: 0; bottom: calc(50% + 28px); }
.home-bridge-divider::after  { top: calc(50% + 28px); bottom: 0; }

.home-bridge-cta-row {
  display: flex;
  justify-content: center;
}
.home-bridge-cta-row .btn { padding: 0.95em 2.2em; }

/* =============================================================================
   HOME · CTA cierre comercial — el "vendedor" del Home
   "Tu próxima reunión comercial sin PDF" + WhatsApp.
   ========================================================================== */
.home-cta {
  padding: 70px var(--gutter) 60px;
  border-top: 1px solid var(--line-soft);
}
.home-cta-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(201,162,75,0.10), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.home-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 110%, rgba(201,162,75,0.08), transparent 70%);
  pointer-events: none;
}
.home-cta-inner > * { position: relative; z-index: 1; }
.home-cta-inner .eyebrow { display: block; margin-bottom: 16px; }
.home-cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.home-cta-sub {
  color: var(--ink-dim);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.home-cta-actions .btn { padding: 1.05em 2em; font-size: 0.82rem; }

/* WhatsApp button — texto + ícono inline */
.home-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.home-cta-wa .ico-wa {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-cta-wa.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.home-cta-wa.is-disabled:hover {
  background: var(--ink); color: var(--black);
  transform: none;
}

/* =============================================================================
   HOME · Quick links — slim secondary row (Products + Favorites)
   Antes era un grid de 4 shortcuts. Ahora liviano, para no competir con Spaces.
   ========================================================================== */
.home-quicklinks {
  padding: 0 var(--gutter) 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.home-quicklink {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  transition: all 0.35s var(--ease);
}
.home-quicklink:hover {
  border-color: var(--brass);
  background: var(--panel);
  transform: translateY(-2px);
}
.home-quicklink-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brass-soft);
  color: var(--brass);
  border: 1px solid rgba(201,162,75,0.3);
  font-size: 1rem;
  flex-shrink: 0;
}
.home-quicklink-text { display: flex; flex-direction: column; flex: 1; gap: 2px; min-width: 0; }
.home-quicklink-label { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; line-height: 1.1; }
.home-quicklink-meta {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.home-quicklink-arrow {
  color: var(--ink-faint);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.home-quicklink:hover .home-quicklink-arrow { color: var(--brass); transform: translateX(4px); }

/* =============================================================================
   PANEL TOOLBAR (Downloads + legacy)
   ========================================================================== */
.panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 22px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 0.55em 1.1em;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-dim);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.filter-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.filter-chip.active { background: var(--ink); color: var(--black); border-color: var(--ink); }

/* =============================================================================
   PRODUCTS — vertical filter sidebar + main column
   ========================================================================== */
.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.filters-side {
  position: sticky;
  top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 18px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
}
.filter-clear {
  align-self: stretch;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-dim);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter-clear:hover { color: var(--ink); border-color: var(--ink); }
.filter-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-group-title {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 0 8px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 4px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--ink-dim);
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.filter-check:hover { color: var(--ink); background: var(--line-soft); }
.filter-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--graphite-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
}
.filter-check input[type="checkbox"]:checked {
  background: var(--brass);
  border-color: var(--brass);
}
.filter-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px; top: 0px;
  width: 4px; height: 8px;
  border: solid var(--black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filter-check input[type="checkbox"]:checked + .filter-check-label { color: var(--ink); }

.products-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.products-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.spaces-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
/* The "Filtros" button is visible at every viewport. On desktop it toggles
   a `filters-collapsed` modifier on the layout (hides sidebar + main fills
   the row). On mobile it opens the drawer. JS picks the right behaviour. */
.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  font-family: inherit;
}
.filters-toggle:hover { border-color: var(--ink); }
.filters-toggle[aria-expanded="true"] { border-color: var(--brass); color: var(--brass); }

/* Desktop collapse: hide the side column and stretch main to the full row. */
.products-layout.filters-collapsed,
.spaces-layout.filters-collapsed {
  grid-template-columns: 1fr;
}
.products-layout.filters-collapsed > .filters-side,
.spaces-layout.filters-collapsed > .spaces-side {
  display: none;
}
.filters-toggle-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 100px;
  background: var(--brass);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 2px;
}
.filters-toggle-count[hidden] { display: none; }
.filters-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.filters-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}
.filters-backdrop[hidden] { display: none; }
.filter-drawer-close {
  display: none;
  align-self: flex-end;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-dim);
  font-size: 1.1rem;
  cursor: pointer;
  margin-bottom: 4px;
}
.filter-drawer-close:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 900px) {
  .products-layout, .spaces-layout { grid-template-columns: 1fr; }
  /* Mobile: the collapsed-on-desktop state has no effect — sidebar is a
     drawer instead. Reset the rule so the drawer can still slide in. */
  .products-layout.filters-collapsed > .filters-side,
  .spaces-layout.filters-collapsed > .spaces-side { display: flex; }
  .filters-side, .spaces-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86vw;
    max-width: 340px;
    max-height: none;
    z-index: 100;
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--line-soft);
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    padding: 22px 20px;
    overflow-y: auto;
    flex-direction: column;
  }
  .filters-side.is-open, .spaces-side.is-open { transform: translateX(0); }
  .filter-drawer-close { display: inline-grid; place-items: center; }
  /* Touch-friendly checkbox sizing */
  .filter-check { padding: 9px 6px; font-size: 0.9rem; }
  .filter-check input[type="checkbox"] { width: 20px; height: 20px; border-radius: 4px; }
  .filter-check input[type="checkbox"]:checked::after {
    left: 5px; top: 1px; width: 6px; height: 11px; border-width: 0 2.5px 2.5px 0;
  }
  .filter-group-title { font-size: 0.72rem; padding-bottom: 10px; }
  .products-toolbar { justify-content: space-between; }
}

.toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45em 0.9em 0.45em 0.8em;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--graphite-2);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  min-width: 220px;
}
.search:focus-within { border-color: var(--brass); background: var(--graphite); }
.search svg { width: 15px; height: 15px; color: var(--ink-faint); flex-shrink: 0; }
.search input {
  border: 0; background: transparent; outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  width: 100%;
  padding: 4px 0;
}
.search input::placeholder { color: var(--ink-faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-dim);
  font-size: 0.85rem; line-height: 1;
  flex-shrink: 0;
  transition: all 0.25s var(--ease);
}
.search-clear:hover { background: var(--line-strong); color: var(--ink); }

.count-chip {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.5em 1em;
  border-radius: 100px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}

/* =============================================================================
   PRODUCT GRID + CARDS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s var(--ease), border-color 0.4s var(--ease), box-shadow 0.45s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: radial-gradient(120% 120% at 50% 20%, #232328, #0d0d0f 75%);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform 0.7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }

/* ===== Color swatches: bottom-left of the card media, glass treatment ===== */
.color-swatches {
  position: absolute; bottom: 10px; left: 10px; z-index: 3;
  display: flex; gap: 6px;
  padding: 5px 6px;
  border-radius: 999px;
  background: rgba(8,8,10,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}
.color-swatch {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 0; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.is-active {
  border-color: var(--brass, #c9a24b);
  box-shadow: 0 0 0 1px var(--brass, #c9a24b), 0 1px 3px rgba(0,0,0,0.4);
}
.color-swatch .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Detail panel: same swatches but a bit larger and centered under the image. */
.detail-color-swatches {
  display: flex; gap: 10px;
  justify-content: center;
  padding: 12px 0 0;
}
.detail-color-swatches[hidden] { display: none; }
.detail-color-swatches .color-swatch {
  width: 26px; height: 26px;
  border-width: 2px;
}

.fav-btn {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(8,8,10,0.55);
  backdrop-filter: blur(6px);
  font-size: 0.95rem;
  color: var(--ink-dim);
  transition: all 0.3s var(--ease);
  z-index: 3;
}
.fav-btn:hover { border-color: var(--brass); transform: scale(1.08); }
.fav-btn.is-fav { color: #ff5a5f; border-color: rgba(255,90,95,0.5); }
.fav-btn .heart-empty { display: inline; }
.fav-btn .heart-full  { display: none; }
.fav-btn.is-fav .heart-empty { display: none; }
.fav-btn.is-fav .heart-full  { display: inline; }

.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.card-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.1; }
.card-specs { font-size: 0.78rem; color: var(--ink-faint); margin-top: 2px; }
.card-view {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.card:hover .card-view { color: var(--brass); gap: 12px; }
.card-view::after { content: '→'; }

.card-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(201, 162, 75, 0.55);
  background: rgba(201, 162, 75, 0.08);
  color: var(--brass);
  text-decoration: none;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.card-quote:hover,
.card-quote:focus-visible {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
  outline: none;
}
.card-quote .ico-wa {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.detail-quote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.detail-quote .ico-wa {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.transition-card-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
.transition-card-quote[hidden] { display: none; }
.transition-card-quote .ico-wa {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 480px) {
  .card-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .card-quote { justify-content: center; }
}

/* =============================================================================
   PANEL: PRODUCT DETAIL — side panel
   ========================================================================== */
.detail-overlay { position: fixed; inset: 0; z-index: 200; }
.detail-overlay[hidden] { display: none; }
.detail-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,6,0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.4s var(--ease);
}
.detail-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(560px, 100%);
  background: var(--graphite);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  animation: slideIn 0.5s var(--ease);
  display: flex; flex-direction: column;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.detail-close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10,10,11,0.6);
  color: var(--ink); font-size: 1.5rem; line-height: 1;
  transition: all 0.3s var(--ease);
}
.detail-close:hover { border-color: var(--brass); color: var(--brass); transform: rotate(90deg); }
.detail-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(120% 120% at 50% 18%, #26262c, #0c0c0e 78%);
  flex-shrink: 0;
}
.detail-media img { width: 100%; height: 100%; object-fit: contain; padding: 40px; }

/* In-context caption shown when entering detail via a hotspot */
.detail-context {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 100px;
  padding: 7px 14px;
  text-align: center;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.detail-context strong {
  color: var(--ink);
  font-weight: 500;
  margin-left: 6px;
}

/* Close-up / catalog thumbnail switcher */
.detail-thumbs {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.detail-thumbs button {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.detail-thumbs button:hover { transform: translateY(-1px); }
.detail-thumbs button.active {
  border-color: var(--brass);
  box-shadow: 0 0 0 1px var(--brass);
}
.detail-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
}
.detail-thumbs button .thumb-label {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 0;
  pointer-events: none;
}
.detail-thumbs button.active .thumb-label { color: var(--brass); }

.detail-body { padding: 30px 34px 42px; }
.detail-cat { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.detail-name { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; line-height: 1.05; margin: 8px 0 4px; }
.detail-code { font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.1em; }
.detail-desc { color: var(--ink-dim); margin: 20px 0 26px; font-size: 0.94rem; }
.spec-table { border-top: 1px solid var(--line); }
.spec-row {
  display: grid; grid-template-columns: 40% 1fr;
  gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.86rem;
}
.spec-key { color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; align-self: center; }
.spec-val { color: var(--ink); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.detail-actions .btn { flex: 1 1 auto; padding: 0.85em 1.3em; }

/* =============================================================================
   PANEL: SPACES — interactive module with tabs
   ========================================================================== */
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  align-items: center;
}
.catalog-filter[hidden] { display: none; }
.catalog-chip {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45em 1em;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
}
.catalog-chip:hover { color: var(--ink); border-color: var(--line); }
.catalog-chip.active {
  background: var(--ink);
  color: var(--black);
  border-color: var(--ink);
}

.spaces-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .spaces-layout { grid-template-columns: 1fr; }
}
.spaces-side {
  position: sticky;
  top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 18px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
}
@media (max-width: 900px) {
  .spaces-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86vw;
    max-width: 340px;
    max-height: none;
    z-index: 100;
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--line-soft);
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    padding: 22px 20px;
    overflow-y: auto;
  }
  .spaces-side.is-open { transform: translateX(0); }
}
.spaces-list-title {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 0 8px 0;
  border-bottom: 1px solid var(--line-soft);
  margin: 6px 0 0 0;
  font-weight: 500;
}
.spaces-list { display: flex; flex-direction: column; gap: 6px; }
.spaces-list-empty {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-style: italic;
  margin: 0;
}
.space-list-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s var(--ease);
}
.space-list-card:hover { color: var(--ink); background: var(--line-soft); }
.space-list-card.active {
  border-color: var(--brass);
  background: var(--brass-soft);
  color: var(--ink);
}
.space-list-thumb {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--graphite-2);
  display: grid;
  place-items: center;
}
.space-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.space-list-name {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.space-stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.space-stage-wrap.is-chooser {
  display: block;
  min-height: 0;
  gap: 0;
}
.space-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: stretch;
  min-height: 520px;
  scroll-margin-top: 92px;
}
@media (max-width: 980px) {
  .space-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}
.space-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  justify-self: start;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.space-back-link:hover { color: var(--brass); border-color: var(--brass); }
.space-back-link:hover .space-back-arrow { transform: translateX(-2px); }
.space-back-arrow { display: inline-block; transition: transform 0.2s var(--ease); }

/* Room-type chooser landing (default view of /spaces) */
.space-type-header { margin-bottom: 22px; }
.space-type-header .eyebrow { margin-bottom: 8px; }
.space-type-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 8px;
}
.space-type-sub {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin: 0;
  max-width: 560px;
}
.space-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.space-type-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 0;
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.space-type-card:hover,
.space-type-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brass);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  outline: none;
}
.space-type-card-media {
  position: absolute;
  inset: 0;
}
.space-type-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), transform 0.6s var(--ease);
}
.space-type-card:hover .space-type-card-media img {
  opacity: 1;
  transform: scale(1.04);
}
.space-type-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 10, 0.88) 0%, rgba(8, 8, 10, 0.2) 55%, rgba(8, 8, 10, 0) 100%);
  pointer-events: none;
}
.space-type-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 22px 22px;
  color: var(--ink);
}
.space-type-card-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}
.space-type-card-count {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 6px 0 0;
}
@media (max-width: 760px) {
  .space-type-grid { grid-template-columns: 1fr; }
  .space-type-card { aspect-ratio: 16 / 10; }
  .space-type-card-title { font-size: 1.4rem; }
}
.space-stage {
  position: relative;
  background: radial-gradient(120% 120% at 50% 25%, #232329, #0b0b0d 80%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.space-stage img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.space-info {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
}
.space-info .eyebrow { margin-bottom: 10px; }
.space-name { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.05; }
.space-tagline { color: var(--brass); font-size: 0.86rem; margin: 6px 0 16px; letter-spacing: 0.04em; }
.space-desc { color: var(--ink-dim); margin-bottom: 22px; }
.space-products-label { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.space-products { display: flex; flex-direction: column; gap: 8px; }
.space-product {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--graphite-2);
  text-align: left;
  transition: all 0.3s var(--ease);
}
.space-product:hover { border-color: var(--brass); background: var(--panel-2); }
.space-product-thumb {
  width: 44px; height: 44px; border-radius: 8px;
  background: radial-gradient(120% 120% at 50% 20%, #2a2a31, #0d0d0f 80%);
  display: grid; place-items: center; overflow: hidden;
}
.space-product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.space-product-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.space-product-name { font-family: var(--serif); font-size: 1rem; line-height: 1.1; }
.space-product-cat { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.space-product-arrow { color: var(--ink-faint); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.space-product:hover .space-product-arrow { color: var(--brass); transform: translateX(3px); }

.hotspot {
  position: absolute;
  width: 26px; height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.10);
  display: grid; place-items: center;
  z-index: 3;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hotspot::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
}
.hotspot::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.35);
  animation: ping 2.8s ease-out infinite;
  pointer-events: none;
}
.hotspot:hover { background: rgba(201,162,75,0.55); border-color: rgba(255,255,255,0.9); }
@keyframes ping { 0%{ transform: scale(0.7); opacity: 0.9 } 100%{ transform: scale(1.7); opacity: 0 } }
.hotspot:hover { background: var(--brass); }
.hotspot-label {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  font-size: 0.68rem; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(8,8,10,0.95); border: 1px solid var(--line);
  color: var(--ink);
  opacity: 0; pointer-events: none;
  transition: all 0.3s var(--ease);
}
.hotspot:hover .hotspot-label { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================================================
   PANEL: DOWNLOADS — resource library
   ========================================================================== */
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.dl-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all 0.4s var(--ease);
}
.dl-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.dl-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brass-soft); color: var(--brass);
  border: 1px solid rgba(201,162,75,0.3);
  font-size: 1.05rem; margin-bottom: 6px;
}
.dl-kind { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.dl-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.1; }
.dl-desc { font-size: 0.84rem; color: var(--ink-dim); flex: 1; }
.dl-meta { font-size: 0.7rem; color: var(--ink-faint); letter-spacing: 0.06em; }
.dl-card .btn { margin-top: 12px; align-self: flex-start; }

/* =============================================================================
   PANEL: TU PROYECTO — header con título editable + acciones (PDF, WhatsApp)
   ========================================================================== */
.project-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label   actions"
    "input   actions";
  gap: 6px 20px;
  align-items: end;
  padding: 18px 0 22px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.project-title-label {
  grid-area: label;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.project-title-input {
  grid-area: input;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  width: 100%;
  outline: none;
  transition: border-color .2s ease;
}
.project-title-input::placeholder { color: var(--ink-faint); font-style: italic; }
.project-title-input:hover { border-bottom-color: var(--line); }
.project-title-input:focus { border-bottom-color: var(--brass); }
.project-actions {
  grid-area: actions;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.project-actions .btn { white-space: nowrap; }
.project-action-ico {
  display: inline-block;
  margin-right: 6px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .project-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "input"
      "actions";
    gap: 6px;
  }
  .project-actions { justify-content: flex-start; }
}

/* =============================================================================
   PANEL: FAVORITES — empty state
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: clamp(60px, 14vh, 140px) 20px;
  max-width: 460px;
  margin: 0 auto;
}
.empty-art {
  width: 90px; height: 90px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 2.5rem;
  color: var(--ink-faint);
}
.empty-state h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; margin-bottom: 10px; }
.empty-state p { color: var(--ink-dim); margin-bottom: 26px; }

/* =============================================================================
   PANEL: ABOUT
   ========================================================================== */
.about-wrap { max-width: 960px; padding-top: 8px; }
.about-intro {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: clamp(36px, 5vw, 60px);
}
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 38px); }
.about-item { border-top: 1px solid var(--line); padding-top: 18px; }
.about-item h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin-bottom: 10px; }
.about-item p { color: var(--ink-dim); font-size: 0.9rem; }

/* =============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  /* Home spaces colapsa a 1 columna apilando hero + secundarias */
  .home-spaces-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "side1"
      "side2";
  }
  .space-card.is-featured { aspect-ratio: 16 / 11; }
  .space-card.is-secondary:nth-of-type(2),
  .space-card.is-secondary:nth-of-type(3) { aspect-ratio: 16 / 10; }
  .space-stage-wrap { grid-template-columns: 1fr; min-height: 0; }
  .space-stage { aspect-ratio: 4 / 3; }

  /* Bridge: divider horizontal sobre desktop, vertical y centrado en tablet/mobile */
  .home-bridge-split {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 560px;
  }
  .home-bridge-divider { height: 60px; }
  .home-bridge-divider::before,
  .home-bridge-divider::after { display: none; }
  /* Stacked layout → flecha vertical (girada 90°) para que apunte de un
     bloque al otro en lugar de quedar horizontal "perdida". */
  .home-bridge-divider span { transform: rotate(90deg); }
  .home-bridge-side .home-bridge-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 860px) {
  :root { --topbar-h: 64px; --gutter: 18px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease);
  }
  .sidebar.open { transform: none; box-shadow: 30px 0 80px -20px rgba(0,0,0,0.7); }
  .hamburger { display: flex; }
  .topbar-h1 { font-size: 1.2rem; }
  .topbar-action-label { display: none; }
  .home-hero-text { padding: 0 24px; }
  .home-hero { min-height: calc(100vh - var(--topbar-h)); }
  .home-spaces { padding: 50px var(--gutter) 22px; }
  .home-types  { padding: 50px var(--gutter) 22px; }
  .home-types-grid { grid-template-columns: 1fr; }
  .home-bridge { padding: 50px var(--gutter) 30px; }
  .home-cta { padding: 50px var(--gutter) 50px; }
  .home-cta-inner { padding: 40px 24px; }
  .home-cta-actions .btn { width: 100%; }
  .home-quicklinks { grid-template-columns: 1fr; }
  .space-card-body { padding: 22px 24px; }
  .search { min-width: 0; width: 100%; }
  .toolbar-right { width: 100%; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px 14px 16px; }
  .card-name { font-size: 1.1rem; }
  .detail-body { padding: 24px 22px 36px; }
  .home-hero-text { padding: 28px 24px; }
  .panel { padding: 22px var(--gutter) 50px; }
  .panel-toolbar { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =============================================================================
   HOTSPOT TRANSITION — video + product info card, anchored to the .space-stage.
   JS moves the overlay into the active stage on open, and back out on close.
   ========================================================================== */
.transition-overlay {
  position: absolute; inset: 0; z-index: 10;
  background: #0a0a0b center / cover no-repeat;
  overflow: hidden;
  border-radius: var(--radius);
  animation: fadeIn 0.25s var(--ease);
}
.transition-overlay[hidden] { display: none; }
.transition-video,
.transition-still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: transparent;
}
.transition-video { transition: opacity 0.25s var(--ease); }
.transition-still {
  z-index: 1;
  animation: fadeIn 0.35s var(--ease);
}
.transition-still[hidden] { display: none; }
.transition-skip {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(10,10,11,0.55);
  color: var(--ink); font-size: 1.3rem; line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s var(--ease);
}
.transition-skip:hover { border-color: var(--brass); color: var(--brass); transform: rotate(90deg); }

.transition-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  top: auto;
  width: min(260px, calc(100% - 44px));
  background: rgba(14, 14, 16, 0.42);
  border: 1px solid rgba(201, 162, 75, 0.28);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  color: var(--ink);
  animation: transitionCardIn 0.55s var(--ease);
  z-index: 2;
  transition: width 0.35s var(--ease), background 0.3s var(--ease);
  overflow: hidden;
}
.transition-card.is-expanded {
  width: min(320px, calc(100% - 44px));
  background: rgba(14, 14, 16, 0.62);
}
.transition-card[hidden] { display: none; }
.transition-card-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.transition-card-header { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.transition-card-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
}
.transition-card-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transition-card-chevron {
  width: 26px; height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: var(--brass);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.transition-card.is-expanded .transition-card-chevron { transform: rotate(45deg); }
.transition-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
  padding: 0 16px;
}
.transition-card.is-expanded .transition-card-body {
  max-height: 500px;
  padding: 0 16px 16px;
}
.transition-card-code {
  font-size: 0.68rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  margin: 4px 0 12px;
}
.transition-card-desc {
  color: var(--ink-dim);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 18px;
}
.transition-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.transition-card-actions .btn { width: 100%; justify-content: center; }

@keyframes transitionCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .transition-card {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    /* Keep the card from ever covering more than half the stage frame */
    max-height: calc(100% - 24px);
  }
  .transition-card.is-expanded {
    width: auto;
    max-width: none;
  }
  .transition-card-toggle { padding: 10px 14px; }
  .transition-card-name {
    font-size: 0.95rem;
    line-height: 1.15;
  }
  .transition-card-eyebrow { font-size: 0.55rem; }
  .transition-card-chevron { width: 22px; height: 22px; }
  .transition-card-body { padding: 0 14px; }
  .transition-card.is-expanded .transition-card-body {
    max-height: 130px;
    overflow-y: auto;
    padding: 0 14px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .transition-card-code { margin: 2px 0 8px; }
  .transition-card-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .transition-card-actions { gap: 8px; }
  .transition-card-actions .btn { padding: 8px 14px; font-size: 0.78rem; }
}
