:root {
  --cream: #f8efe4;
  --paper: #fffaf2;
  --sand: #ead7c2;
  --terracotta: #a85c37;
  --terracotta-dark: #7d3f26;
  --ink: #33271f;
  --muted: #756456;
  --line: #dfc9b4;
  --blue: #8aa2a7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(248, 239, 228, .92);
  border-bottom: 1px solid rgba(223, 201, 180, .75);
  backdrop-filter: blur(16px);
}
.nav, .header-actions { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.header-actions { justify-content: flex-end; }
.dm { border: 1px solid var(--terracotta); border-radius: 999px; padding: 10px 16px; color: var(--terracotta-dark); }
.brand, .footer-brand { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wordmark { font-family: "Cormorant Garamond", serif; letter-spacing: .26em; font-size: clamp(32px, 4vw, 54px); color: var(--terracotta-dark); font-weight: 600; line-height: .8; }
.sun-line { display: flex; align-items: center; gap: 14px; color: var(--terracotta); }
.sun-line span { width: 82px; height: 1px; background: var(--terracotta); opacity: .85; }
.sun-line i { font-style: normal; font-size: 18px; line-height: 1; }
.tagline { letter-spacing: .36em; font-size: 11px; color: var(--terracotta-dark); }

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(42px, 7vw, 96px) clamp(20px, 6vw, 92px);
  background:
    radial-gradient(circle at 15% 25%, rgba(168, 92, 55, .12), transparent 26%),
    radial-gradient(circle at 85% 70%, rgba(138, 162, 167, .22), transparent 30%),
    linear-gradient(135deg, #fbf4ea, #ead5bd);
  overflow: hidden;
}
.hero-copy { max-width: 700px; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; color: var(--terracotta); font-size: 12px; font-weight: 500; }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; margin: 0; }
h1 { font-size: clamp(48px, 7vw, 94px); line-height: .94; letter-spacing: -.03em; }
h2 { font-size: clamp(38px, 5vw, 68px); line-height: 1; }
h3 { font-size: 26px; line-height: 1.05; }
.lead { margin: 26px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.65; max-width: 620px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.button { border-radius: 999px; padding: 15px 26px; font-weight: 500; font-size: 14px; }
.primary { background: var(--terracotta); color: #fffaf2; }
.secondary { border: 1px solid var(--terracotta); color: var(--terracotta-dark); }
.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 44% 44% 28px 28px;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(65, 42, 28, .16);
  background: var(--paper);
}
.hero-visual img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }

.intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 70px clamp(20px, 6vw, 92px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro p:last-child { font-size: 18px; line-height: 1.9; color: var(--muted); margin: 0; }

.catalog, .steps { padding: 86px clamp(18px, 5vw, 72px); }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.section-heading p:not(.eyebrow) { color: var(--muted); line-height: 1.7; font-size: 17px; }
.compact { max-width: 640px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 auto 34px; }
.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--terracotta-dark);
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}
.filter.active { background: var(--terracotta); color: white; border-color: var(--terracotta); }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.product-card {
  background: var(--paper);
  border: 1px solid rgba(223, 201, 180, .85);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(78, 54, 39, .07);
}
.product-card[hidden] { display: none; }
.product-image { display: block; aspect-ratio: 4 / 5; background: #e8d5c0; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-info { padding: 18px; }
.product-info .eyebrow { margin: 0 0 8px; font-size: 10px; letter-spacing: .22em; }
.product-info h3 { font-size: 24px; min-height: 52px; }
.reference { margin: 8px 0 14px; color: var(--muted); font-size: 13px; font-weight: 500; }
dl { margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.35; }
dl div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
dt { color: var(--ink); font-weight: 500; }
dd { margin: 0; }
.availability { display: inline-block; margin-top: 18px; color: var(--terracotta-dark); font-weight: 600; font-size: 14px; }

.steps { background: var(--paper); }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-grid article { background: var(--cream); border: 1px solid var(--line); border-radius: 28px; padding: 30px; text-align: center; }
.step-grid span { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: white; color: var(--terracotta-dark); font-weight: 600; margin-bottom: 18px; }
.step-grid h3 { font-size: 28px; }
.step-grid p { color: var(--muted); line-height: 1.7; }

.footer { background: var(--terracotta-dark); color: #fff3e8; padding: 52px 20px; text-align: center; }
.footer .wordmark, .footer .tagline, .footer .sun-line { color: #fff3e8; }
.footer .sun-line span { background: #fff3e8; }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.footer-links a { opacity: .9; }

@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr; text-align: center; }
  .nav, .header-actions { justify-content: center; flex-wrap: wrap; }
  .hero, .intro { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .wordmark { font-size: 34px; }
  .sun-line span { width: 54px; }
  .hero { padding-top: 42px; }
  .hero-visual, .hero-visual img { min-height: 360px; }
  .product-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .product-info h3 { min-height: auto; }
}
/* GALERÍA DE PRODUCTO - TIERRAVIVA */

.product-card .product-gallery {
  width: 100%;
}

.product-card .product-gallery .product-image {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.product-card .product-gallery .product-image .main-product-img {
  width: 100% !important;
  height: 420px !important;
  object-fit: cover !important;
  display: block !important;
}

.product-card .product-gallery .product-thumbs {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  padding: 10px !important;
  background: #f6efe4 !important;
}

.product-card .product-gallery .product-thumbs .thumb {
  width: 100% !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  border: 1px solid #e1d2c0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  display: block !important;
}

.product-card .product-gallery .product-thumbs .thumb img {
  width: 100% !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  object-fit: cover !important;
  display: block !important;
  aspect-ratio: auto !important;
}

.product-thumbs .thumb {
  border: 1px solid transparent;
  padding: 2px;
  cursor: pointer;
  background: transparent;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.product-thumbs .thumb:hover,
.product-thumbs .thumb.active {
  opacity: 1;
  border-color: currentColor;
}

.product-card[hidden] {
  display: none !important;
}