/* ==========================================================================
   Muebles Iriarte — Sistema visual
   Paleta: espresso + crema + dorado madera + rojo de marca
   ========================================================================== */

:root {
  --gold: #c4ab68;
  --gold-rgb: 196, 171, 104;
  --gold-light: #ddca9b;
  --gold-soft: #ece0c6;
  --gold-dark: #a89252;
  --gold-deep: #7d6738;

  --ink: #1c1712;
  --ink-soft: #241d16;
  --wood-900: #2a2218;
  --wood-800: #3e3428;
  --wood-700: #5c4a38;
  --muted: #6d6152;

  --cream: #faf6ee;
  --cream-2: #f1e8d7;
  --cream-3: #e7dcc6;
  --white: #ffffff;
  --brand-red: #a60e09;
  --brand-red-dark: #7a0a07;

  --line: rgba(28, 23, 18, 0.1);
  --line-soft: rgba(28, 23, 18, 0.06);
  --line-gold: rgba(var(--gold-rgb), 0.5);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 12px 28px -18px rgba(28, 23, 18, 0.35);
  --shadow: 0 24px 50px -28px rgba(28, 23, 18, 0.4);
  --shadow-lg: 0 48px 90px -40px rgba(28, 23, 18, 0.55);

  --max: 1200px;
  --gutter: clamp(1.15rem, 4.5vw, 2rem);
  --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0.22, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 6.5rem) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--wood-700);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

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

svg {
  flex-shrink: 0;
}

::selection {
  background: rgba(var(--gold-rgb), 0.45);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.section-ink :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-light);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: var(--brand-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-red-dark);
}

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.65rem 1.15rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0 0 10px 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: var(--cream);
}

/* Fotos de catálogo: el fondo coincide con el marco dorado de las JPG */
.img-catalog,
.product-media,
.category-card,
.hero-media,
.about-photos img,
.client-card-photos,
.quality-panel img,
.colors-card,
.lightbox img {
  background-color: rgb(var(--gold-rgb));
}

/* --------------------------------------------------------------------------
   Botones y enlaces
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 18px 36px -22px rgba(var(--gold-rgb), 0.9);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(250, 246, 238, 0.32);
  color: var(--cream);
}

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

.btn-outline {
  background: transparent;
  border-color: rgba(28, 23, 18, 0.22);
  color: var(--ink);
}

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

.btn-cta {
  padding: 0.68rem 1.1rem;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-size: 0.68rem;
}

.btn-cta:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.25rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--gold-deep);
  border-color: var(--ink);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-top {
  height: 0;
}

.topbar {
  background: var(--ink);
  color: rgba(236, 224, 198, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 38px;
  padding-block: 0.4rem;
}

.topbar-note {
  margin: 0;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-shrink: 0;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-soft);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.topbar-links a:hover {
  color: var(--gold-light);
}

.topbar-links svg {
  width: 13px;
  height: 13px;
}

.header-main {
  background: rgba(24, 20, 15, 0.94);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.22);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}

.site-header.scrolled .header-main {
  background: rgba(18, 15, 11, 0.98);
  box-shadow: 0 22px 48px -26px rgba(0, 0, 0, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.7rem;
}

.brand {
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  width: auto;
  height: clamp(42px, 5vw, 52px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.site-nav a:not(.btn) {
  position: relative;
  padding: 0.35rem 0;
  color: rgba(250, 246, 238, 0.84);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active {
  color: var(--gold-light);
}

.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn).active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(250, 246, 238, 0.28);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(var(--gold-rgb), 0.65);
  background: rgba(250, 246, 238, 0.06);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.site-header.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 12% -10%, rgba(var(--gold-rgb), 0.22), transparent 48%),
    radial-gradient(circle at 92% 108%, rgba(var(--gold-rgb), 0.14), transparent 42%),
    linear-gradient(155deg, #241d16 0%, #17130e 55%, #1e1812 100%);
  color: var(--cream);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(250, 246, 238, 0.03) 0,
    rgba(250, 246, 238, 0.03) 1px,
    transparent 1px,
    transparent 120px
  );
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.25rem, 5vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  max-width: 15ch;
  margin-top: 1.1rem;
  font-size: clamp(2.5rem, 5.1vw, 4.1rem);
  font-weight: 500;
  line-height: 1.04;
  color: var(--cream);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.hero-lead {
  max-width: 36rem;
  margin: 1.5rem 0 2rem;
  color: rgba(250, 246, 238, 0.7);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(250, 246, 238, 0.18);
  border-radius: 999px;
  color: rgba(250, 246, 238, 0.78);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

a.pill {
  text-decoration: none;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.75rem;
  margin: 2.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(250, 246, 238, 0.14);
}

.hero-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.15rem;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-light);
}

.hero-stats dt {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.55);
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  z-index: -1;
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: var(--radius-lg);
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.hero-badge {
  position: absolute;
  left: -1.5rem;
  bottom: -1.75rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 20rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.hero-badge strong {
  display: block;
  margin-bottom: 0.1rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-badge-icon {
  display: grid;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), 0.22);
  color: var(--gold-deep);
  place-items: center;
}

.hero-badge-icon svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-muted {
  background:
    radial-gradient(circle at 88% 0%, rgba(var(--gold-rgb), 0.16), transparent 40%),
    var(--cream-2);
  border-block: 1px solid var(--line-soft);
}

.section-ink {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(var(--gold-rgb), 0.16), transparent 45%),
    linear-gradient(150deg, #211b14, #15110c);
  color: rgba(250, 246, 238, 0.7);
}

.section-ink h2 {
  color: var(--cream);
}

.section-ink .eyebrow {
  color: var(--gold);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  margin-top: 0.65rem;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 500;
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 1.5rem 4rem;
}

.section-head-split p {
  padding-bottom: 0.35rem;
}

.section-ink .section-head p,
.section-ink .instagram-copy p {
  color: rgba(250, 246, 238, 0.65);
}

/* --------------------------------------------------------------------------
   Pilares + Nosotros
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.pillar {
  position: relative;
  padding: 1.9rem 1.6rem 1.75rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.pillar:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow);
}

.pillar-num {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(var(--gold-rgb), 0.9);
}

.pillar-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1.2rem;
  border-radius: 14px;
  background: rgba(var(--gold-rgb), 0.18);
  color: var(--gold-deep);
  place-items: center;
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
}

.pillar h3 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.92rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.about-photos img {
  width: 100%;
  aspect-ratio: 193 / 112;
  object-fit: cover;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.about-photos img:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow);
}

.about-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 193 / 112;
  padding: 0.75rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--gold-rgb), 0.24), transparent 62%),
    linear-gradient(155deg, #241d16, #17130e);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.about-tile-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.about-tile strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--gold-light);
}

.about-tile-note {
  margin-top: 0.15rem;
  font-size: 0.66rem;
  line-height: 1.35;
  color: rgba(250, 246, 238, 0.6);
}

.about-copy h3 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
}

.about-copy p {
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.about-copy p:last-of-type {
  margin-bottom: 1.1rem;
}

/* --------------------------------------------------------------------------
   Productos
   -------------------------------------------------------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(28, 23, 18, 0.08);
  border-radius: var(--radius);
  color: var(--cream);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s var(--ease);
}

.category-card:hover {
  transform: translateY(-5px);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-body {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2.75rem 1.1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(20, 16, 11, 0.82));
}

.category-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.category-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(250, 246, 238, 0.45);
  border-radius: 50%;
  color: var(--cream);
  place-items: center;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.category-arrow svg {
  width: 15px;
  height: 15px;
}

.category-card:hover .category-arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.quality-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.7rem 2rem;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--gold-rgb), 0.18), transparent 55%),
    linear-gradient(120deg, #211b14, #2b231a);
  color: rgba(250, 246, 238, 0.68);
  box-shadow: var(--shadow);
}

.quality-panel h3 {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cream);
}

.quality-panel p {
  font-size: 0.92rem;
}

.quality-icon {
  display: grid;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  border-radius: 50%;
  color: var(--gold-light);
  place-items: center;
}

.quality-icon svg {
  width: 24px;
  height: 24px;
}

.quality-panel > img {
  max-height: 76px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Galería
   -------------------------------------------------------------------------- */

.colors-card {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  padding: clamp(0.5rem, 1.5vw, 0.85rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow-sm);
}

.colors-card .colors-img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter {
  padding: 0.62rem 1.15rem;
  border: 1px solid rgba(28, 23, 18, 0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.filter:hover {
  border-color: var(--gold-dark);
  color: var(--ink);
}

.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.15rem;
}

.product-card {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow);
}

.product-card button {
  all: unset;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  cursor: zoom-in;
}

.product-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-zoom {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(20, 16, 11, 0.75);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.product-zoom svg {
  width: 12px;
  height: 12px;
}

.product-card:hover .product-zoom,
.product-card:focus-within .product-zoom {
  opacity: 1;
  transform: none;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.22rem;
  padding: 1rem 1.05rem 1.15rem;
}

.product-info .cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.product-info strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.product-detail {
  margin-top: auto;
  padding-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Clientes
   -------------------------------------------------------------------------- */

.client-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.15rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.client-card {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.85rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fffdf8;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.client-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow);
}

.client-card-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.client-card-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
}

.client-card h3 {
  flex: 1;
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}

.client-card > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--brand-red);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.client-card > a::after {
  content: "↗";
  font-size: 0.85em;
  transition: transform 0.25s var(--ease);
}

.client-card > a:hover {
  color: var(--gold-deep);
}

.client-card > a:hover::after {
  transform: translate(2px, -2px);
}

.client-list-title {
  margin-bottom: 1.3rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
}

.client-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.client-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dark);
}

/* --------------------------------------------------------------------------
   Instagram
   -------------------------------------------------------------------------- */

.instagram-block {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.instagram-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  border-radius: 16px;
  color: var(--gold-light);
  place-items: center;
}

.instagram-icon svg {
  width: 25px;
  height: 25px;
}

.instagram-copy h2 {
  margin: 0.65rem 0 1rem;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 500;
}

.instagram-copy p {
  max-width: 30rem;
  margin-bottom: 1.75rem;
}

.instagram-copy p a {
  color: var(--gold-light);
  font-weight: 600;
}

.instagram-copy p a:hover {
  color: var(--cream);
}

.instagram-embed {
  overflow: hidden;
  min-height: 440px;
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.instagram-embed iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Ubicación
   -------------------------------------------------------------------------- */

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 1.35rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--gold-rgb), 0.2), transparent 52%),
    linear-gradient(155deg, #241d16, #17130e);
  color: rgba(250, 246, 238, 0.68);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  font-weight: 500;
  color: var(--cream);
}

.contact-card ul {
  display: flex;
  flex-direction: column;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.contact-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(250, 246, 238, 0.1);
}

.contact-card li:last-child {
  border-bottom: 0;
}

.contact-icon {
  display: grid;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(var(--gold-rgb), 0.32);
  border-radius: 10px;
  color: var(--gold-light);
  place-items: center;
}

.contact-icon svg {
  width: 17px;
  height: 17px;
}

.contact-card strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-card li span > span,
.contact-card li a {
  color: rgba(250, 246, 238, 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card li a:hover {
  color: var(--gold-light);
}

.contact-cta {
  align-self: flex-start;
  margin-top: auto;
}

.map-wrap {
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--cream-2);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
  background: #141009;
  color: rgba(250, 246, 238, 0.58);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250, 246, 238, 0.12);
}

.footer-brand-name {
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gold-light);
}

.footer-tagline {
  max-width: 32ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(250, 246, 238, 0.55);
}

.footer-copy {
  margin-top: 1.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(250, 246, 238, 0.52);
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--gold);
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  display: inline-block;
  color: rgba(250, 246, 238, 0.68);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer-col > a {
  display: block;
  margin-bottom: 0.55rem;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  font-size: 0.76rem;
}

.footer-bottom > a {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.footer-bottom > a:hover {
  color: var(--gold-light);
}

.footer-credit {
  color: rgba(250, 246, 238, 0.52);
}

.footer-credit a {
  color: rgba(250, 246, 238, 0.62);
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Volver arriba
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 1rem));
  z-index: 90;
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(var(--gold-rgb), 0.45);
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  box-shadow: var(--shadow);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    background-color 0.3s var(--ease), color 0.3s var(--ease);
  place-items: center;
}

.to-top svg {
  width: 18px;
  height: 18px;
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--gold);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  max-width: min(920px, 92vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(12, 9, 6, 0.86);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.lightbox[open] {
  animation: lightbox-in 0.3s var(--ease) both;
}

.lightbox figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow-lg);
}

.lightbox img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.lightbox figcaption {
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--line-soft);
  background: #fffdf8;
  color: var(--wood-800);
  font-size: 0.88rem;
}

.lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
  place-items: center;
}

.lightbox-close svg {
  width: 17px;
  height: 17px;
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--ink);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Animaciones de entrada
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js .hero-copy > * {
  animation: rise-in 0.8s var(--ease) both;
}

.js .hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.js .hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.js .hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.js .hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}

.js .hero-copy > :nth-child(6) {
  animation-delay: 0.4s;
}

.js .hero-visual {
  animation: rise-in 0.9s 0.15s var(--ease) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .site-nav {
    gap: 1.25rem;
  }

  .site-nav a:not(.btn) {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    display: none;
    max-height: calc(100dvh - var(--nav-top, var(--header-h, 7rem)));
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) max(2rem, calc(env(safe-area-inset-bottom) + 1.5rem));
    background: var(--ink);
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.22);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.75);
  }

  .site-header.open .site-nav {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 0.95rem 0.2rem;
    border-bottom: 1px solid rgba(250, 246, 238, 0.1);
    font-size: 0.78rem;
  }

  .site-nav a:not(.btn)::after {
    display: none;
  }

  .site-nav .btn-cta {
    align-self: flex-start;
    margin-top: 1.1rem;
    padding: 0.8rem 1.35rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero-visual {
    max-width: 620px;
  }

  .hero-badge {
    left: 1rem;
    bottom: -1.5rem;
  }

  .section-head-split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.85rem;
  }

  .section-head-split p {
    max-width: 46rem;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    padding-right: 4rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .quality-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .quality-panel > img {
    grid-column: 1 / -1;
    max-height: 90px;
    justify-self: start;
  }

  .instagram-block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .instagram-embed {
    max-width: 560px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 380px;
  }

  .client-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-block {
    grid-column: 1 / -1;
    padding-bottom: 0.5rem;
  }
}

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

@media (max-width: 720px) {
  .topbar {
    display: none;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding-top: env(safe-area-inset-top, 0);
  }

  main {
    padding-top: var(--header-h, 7.5rem);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .hero-stats {
    gap: 1.75rem;
    margin-top: 2rem;
  }

  .hero-visual {
    max-width: none;
  }

  .hero-visual::before {
    display: none;
  }

  .hero-badge {
    position: static;
    max-width: none;
    margin-top: 1rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .quality-panel {
    padding: 1.4rem;
  }

  .client-list {
    grid-template-columns: 1fr;
  }

  .instagram-embed {
    min-height: 380px;
  }

  .instagram-embed iframe {
    min-height: 480px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand-block {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox {
    max-width: 94vw;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

@media (max-width: 560px) {
  .category-grid {
    gap: 0.8rem;
  }

  .category-name {
    font-size: 1.05rem;
  }

  .category-arrow {
    width: 30px;
    height: 30px;
  }

  .product-grid {
    gap: 0.8rem;
  }

  .product-info {
    padding: 0.85rem 0.85rem 1rem;
  }

  .product-info strong {
    font-size: 0.96rem;
  }

  .quality-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quality-panel > img {
    grid-column: auto;
  }

  .contact-cta {
    align-self: stretch;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
