:root {
  --ink: #1d2923;
  --muted: #5b675f;
  --forest: #173f2b;
  --forest-2: #245a3d;
  --wood: #a66a35;
  --wood-dark: #75451f;
  --sand: #f4efe6;
  --cream: #fcfaf5;
  --white: #fff;
  --line: #ded8cd;
  --success: #167443;
  --danger: #a02b2b;
  --shadow: 0 16px 40px rgb(23 63 43 / 12%);
  --radius: 1rem;
  --radius-sm: .65rem;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: var(--forest-2); text-underline-offset: .18em; }
a:hover { color: var(--wood-dark); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid #e8a94f;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  color: var(--white);
  background: var(--forest);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 2rem), var(--max-width)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 800px); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--sand { background: var(--sand); }
.section--forest { color: var(--white); background: var(--forest); }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading.center { margin-inline: auto; text-align: center; }

h1, h2, h3 {
  margin-top: 0;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { margin-bottom: 1.25rem; font-size: clamp(2.45rem, 7vw, 5.5rem); letter-spacing: -.045em; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.03em; }
h3 { margin-bottom: .65rem; font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin-top: 0; }
.lead { max-width: 690px; font-size: clamp(1.08rem, 2vw, 1.25rem); }
.eyebrow {
  display: inline-block;
  margin-bottom: .8rem;
  color: var(--wood-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section--forest .eyebrow, .hero .eyebrow { color: #efbd78; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.topbar { padding: .45rem 0; color: #e7eee9; background: #102d20; font-size: .83rem; }
.topbar__inner { display: flex; gap: 1rem 2rem; justify-content: space-between; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgb(252 250 245 / 96%);
  border-bottom: 1px solid rgb(117 69 31 / 15%);
  backdrop-filter: blur(12px);
}
.nav-shell { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--forest); font-weight: 850; text-decoration: none; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand span { max-width: 9rem; line-height: 1.05; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { padding: .65rem .7rem; color: var(--ink); border-radius: .5rem; font-size: .94rem; font-weight: 680; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--forest); background: #e9eee8; }
.site-nav .btn { color: var(--white); }
.site-nav .btn:hover { color: var(--white); background: var(--forest-2); }
.menu-toggle {
  display: none;
  min-width: 46px;
  min-height: 46px;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: .6rem;
  cursor: pointer;
}

.btn-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .74rem 1.05rem;
  color: var(--white);
  background: var(--forest);
  border: 2px solid var(--forest);
  border-radius: .6rem;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { color: var(--white); background: var(--forest-2); border-color: var(--forest-2); transform: translateY(-2px); }
.btn--wood { background: var(--wood); border-color: var(--wood); }
.btn--wood:hover { background: var(--wood-dark); border-color: var(--wood-dark); }
.btn--light { color: var(--forest); background: var(--white); border-color: var(--white); }
.btn--light:hover { color: var(--forest); background: var(--sand); border-color: var(--sand); }
.btn--outline { color: var(--forest); background: transparent; border-color: var(--forest); }
.btn--outline:hover { color: var(--white); }
.btn--small { min-height: 42px; padding: .58rem .75rem; font-size: .9rem; }

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, 78vh);
  align-items: center;
  color: var(--white);
  background: #183224 url("../images/hero-bg2.jpg") center 48% / cover no-repeat;
  isolation: isolate;
}
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgb(12 31 21 / 90%) 0%, rgb(12 31 21 / 72%) 48%, rgb(12 31 21 / 28%) 100%); }
.hero__content { max-width: 760px; padding: 6rem 0; }
.hero__content p { color: #eef2ef; }
.hero--compact { min-height: 390px; }
.hero--compact h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(23 63 43 / 6%); }
.card__body { padding: 1.35rem; }
.card__body > :last-child { margin-bottom: 0; }
.icon-card { padding: 1.5rem; }
.icon-card__mark { display: grid; width: 48px; height: 48px; margin-bottom: 1rem; place-items: center; color: var(--white); background: var(--wood); border-radius: 50%; font-weight: 900; }

.split { display: grid; align-items: center; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 1fr 1fr; }
.split__image { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; margin: .6rem 0; padding-left: 1.6rem; }
.check-list li::before { position: absolute; left: 0; color: var(--success); content: "✓"; font-weight: 900; }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 1.5rem; text-align: center; background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 16%); border-radius: var(--radius); }
.stat strong { display: block; font-family: Georgia, serif; font-size: 2rem; }

.catalog-toolbar { display: grid; gap: 1rem; margin-bottom: 1.5rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); }
.field { display: grid; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 750; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .72rem .8rem; color: var(--ink); background: var(--white); border: 1px solid #aaa297; border-radius: .55rem;
}
.catalog-summary { display: flex; min-height: 2rem; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.product-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { display: flex; min-width: 0; flex-direction: column; }
.product-card__image { overflow: hidden; background: #e9e3d8; aspect-ratio: 1; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__image img { transform: scale(1.025); }
.product-card__body { display: flex; height: 100%; flex-direction: column; padding: 1.2rem; }
.product-card__meta { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .7rem; }
.tag { display: inline-flex; padding: .2rem .48rem; color: var(--forest); background: #e9eee8; border-radius: 999px; font-size: .75rem; font-weight: 760; }
.sku { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.price { margin: .75rem 0 .15rem; color: var(--forest); font-family: Georgia, serif; font-size: 1.5rem; font-weight: 800; }
.product-card__actions { display: grid; gap: .55rem; margin-top: auto; padding-top: 1rem; }
.status-box { padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.status-box--error { color: var(--danger); border-color: #d8a9a9; }

.breadcrumb { padding: 1rem 0; font-size: .9rem; }
.breadcrumb ol { display: flex; gap: .45rem; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.breadcrumb li:not(:last-child)::after { margin-left: .45rem; color: var(--muted); content: "/"; }
.product-detail { display: grid; gap: clamp(2rem, 5vw, 4.5rem); padding: 2rem 0 4rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.product-detail__media { position: sticky; top: 110px; align-self: start; }
.zoom-button { display: block; width: 100%; padding: 0; overflow: hidden; background: #e9e3d8; border: 0; border-radius: var(--radius); cursor: zoom-in; }
.zoom-button img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-list { padding-left: 1.2rem; }
.notice { margin: 1rem 0; padding: 1rem; background: #fff7e7; border-left: 4px solid #d89a3b; border-radius: .35rem; font-size: .9rem; }
.related-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.related-card { display: grid; grid-template-columns: 92px 1fr; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: .75rem; text-decoration: none; }
.related-card img { width: 92px; height: 100%; min-height: 92px; object-fit: cover; }
.related-card span { align-self: center; padding: .8rem; color: var(--ink); font-weight: 720; }

.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.gallery-item { position: relative; padding: 0; overflow: hidden; background: var(--white); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 330px; object-fit: cover; }
.gallery-item span { position: absolute; right: .75rem; bottom: .75rem; left: .75rem; padding: .65rem .8rem; color: var(--white); background: rgb(15 37 25 / 84%); border-radius: .5rem; font-weight: 700; text-align: left; }

.image-dialog { width: min(92vw, 980px); padding: 0; overflow: visible; background: transparent; border: 0; }
.image-dialog::backdrop { background: rgb(0 0 0 / 82%); }
.image-dialog img { width: 100%; max-height: 84vh; object-fit: contain; background: #111; border-radius: .75rem; }
.dialog-close { position: absolute; top: -1rem; right: -1rem; width: 44px; height: 44px; color: var(--white); background: var(--forest); border: 2px solid var(--white); border-radius: 50%; cursor: pointer; }

.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.contact-card { padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card a { overflow-wrap: anywhere; }
.map-link { min-height: 250px; display: grid; place-items: center; padding: 2rem; color: var(--white); background: linear-gradient(rgb(18 55 36 / 88%), rgb(18 55 36 / 88%)), url("../images/fachada.png") center / cover; border-radius: var(--radius); text-align: center; }

.policy h2 { margin-top: 2.5rem; font-size: 1.75rem; }
.policy h3 { margin-top: 1.5rem; font-size: 1.25rem; }
.policy li { margin-bottom: .45rem; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 2.5rem); color: var(--white); background: var(--forest); border-radius: var(--radius); }
.cta-band h2 { margin-bottom: .35rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.cta-band p { margin-bottom: 0; color: #dfe9e2; }

.site-footer { padding: 3.5rem 0 1.5rem; color: #dfe8e1; background: #102d20; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr 1fr; }
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1.15rem; }
.site-footer a { color: #e7eee9; }
.footer-links { display: grid; gap: .45rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / 14%); font-size: .85rem; }
.whatsapp-float { position: fixed; z-index: 90; right: 1rem; bottom: 1rem; display: grid; width: 58px; height: 58px; place-items: center; color: var(--white); background: #168c49; border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 8px 24px rgb(0 0 0 / 24%); font-weight: 900; text-decoration: none; }
.whatsapp-float:hover { color: var(--white); background: #0e733a; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: fixed; top: 76px; right: 0; bottom: 0; left: 0; display: none; align-content: start; padding: 1.25rem; background: var(--cream); overflow-y: auto; }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: .9rem; font-size: 1.05rem; }
  .nav-cta { margin-top: .5rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar__inner span:first-child { display: none; }
  .topbar__inner { justify-content: center; }
  .hero { min-height: 620px; background-position: 57% center; }
  .hero::before { background: rgb(12 31 21 / 78%); }
  .grid--2, .grid--3, .split, .product-detail, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-detail__media { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 280px; }
  .cta-band { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
