/* ======================================================
   GONDOR BOWS — styles.css  (compartido en todo el sitio)
   Paleta oscura/tierra | Cinzel + Lato
   ====================================================== */

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0b07;
  --surface:     #141108;
  --surface2:    #1c1710;
  --surface3:    #231e12;
  --gold:        #c9a84c;
  --gold-lt:     #e8c97a;
  --gold-dk:     #9e7e30;
  --cream:       #f0e8d5;
  --text:        #cec4ac;
  --muted:       #6e6550;
  --border:      #2a2218;
  --border-lt:   #3a3020;
  --font-d:      'Cinzel', Georgia, serif;
  --font-b:      'Lato', sans-serif;
  --ease:        0.3s ease;
  --max:         1200px;
  --header-h:    70px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 84px; }
.center    { text-align: center; }

/* ----- UTILITY ----- */
.gold { color: var(--gold); }
.cream { color: var(--cream); }

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary  { background: var(--gold); color: #0d0b07; border-color: var(--gold); }
.btn-primary:hover  { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn-outline  { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover  { background: var(--gold); color: #0d0b07; }
.btn-outline-w { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline-w:hover { background: var(--cream); color: #0d0b07; }
.btn-sm {
  font-family: var(--font-d);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  transition: var(--ease);
  display: inline-block;
}
.btn-sm:hover { background: var(--gold); color: #0d0b07; }

/* ======================================================
   TYPOGRAPHY
   ====================================================== */
.section-title {
  font-family: var(--font-d);
  font-size: clamp(1.55rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}
.section-sub  { color: var(--muted); font-size: 0.97rem; margin-bottom: 2.8rem; }
.eyebrow {
  font-family: var(--font-d);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}
.divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 1.2rem auto;
}

/* ======================================================
   HEADER  (shared)
   ====================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(13,11,7,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease, background 0.3s ease;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 84px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo { height: 40px; width: 120px; object-fit: contain; filter: brightness(0) invert(1); }

.main-nav { display: flex; gap: 2rem; margin-left: auto; }
.main-nav a {
  font-family: var(--font-d);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text);
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after { width: 100%; }

.header-social { display: flex; gap: 0.9rem; align-items: center; }
.header-social a { color: var(--muted); transition: color var(--ease); display: flex; align-items: center; }
.header-social a:hover { color: var(--gold); }
.header-social svg { width: 17px; height: 17px; }
.yt-tri { fill: var(--muted); transition: fill var(--ease); }
.header-social a:hover .yt-tri { fill: var(--gold); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); transition: var(--ease); border-radius: 1px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================================================
   FOOTER  (shared)
   ====================================================== */
.site-footer { background: var(--surface2); border-top: 1px solid var(--border); padding-top: 4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-logo { height: 46px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-tagline {
  font-family: var(--font-d);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1.8;
}
.footer-col h4 {
  font-family: var(--font-d);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a  { font-size: 0.86rem; color: var(--muted); transition: color var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.3rem 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ======================================================
   PAGE HERO  (inner pages)
   ====================================================== */
.page-hero {
  min-height: 52vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.page-hero-bg.loaded { transform: scale(1); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,11,7,0.95) 0%, rgba(13,11,7,0.55) 60%, rgba(13,11,7,0.3) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 3rem 1.5rem 4rem;
  max-width: var(--max); margin: 0 auto; width: 100%;
}
.page-hero-content .eyebrow { font-size: 0.68rem; }
.page-hero-content h1 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.page-hero-content p {
  max-width: 560px;
  color: var(--text);
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

/* ======================================================
   STATS BAND
   ====================================================== */
.stats-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
  max-width: 130px;
  margin: 0 auto;
}

/* ======================================================
   PRODUCT GRID  (arcos / insumos)
   ====================================================== */
.product-section { padding: 5rem 0; }
.product-section .section-title { margin-bottom: 0.4rem; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.product-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--gold); }

.product-img {
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--surface3);
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
  filter: sepia(15%) brightness(0.88);
}
.product-card:hover .product-img img { transform: scale(1.05); }

.product-info {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  flex: 1;
}
.product-info h3 {
  font-family: var(--font-d);
  font-size: 1.1rem; font-weight: 700;
  color: var(--cream); letter-spacing: 0.06em;
}
.product-type {
  font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.6rem;
}
.product-info .btn-sm { align-self: flex-start; margin-top: auto; padding-top: 0.8rem; }

/* ======================================================
   CTA PERSONALIZADO
   ====================================================== */
.custom-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}
.custom-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.custom-cta-text h2 {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.custom-cta-text p { color: var(--text); margin-bottom: 1.8rem; font-size: 1rem; }
.custom-cta-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.custom-cta-gallery img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover; border-radius: 3px;
  filter: sepia(15%) brightness(0.85);
  transition: filter var(--ease);
}
.custom-cta-gallery img:hover { filter: sepia(5%) brightness(1); }

/* ======================================================
   SCROLL REVEAL
   ====================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
  .products-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
  .custom-cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .container        { padding: 0 16px; }
  .header-inner     { padding: 0 16px; }
  .footer-bottom    { padding: 1.3rem 16px; }
  .menu-toggle   { display: flex; }
  .header-social { display: none; }
  .main-nav {
    display: none; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(13,11,7,0.99);
    border-top: 1px solid var(--border);
    padding: 1.5rem 16px; gap: 1.2rem; z-index: 99;
  }
  .main-nav.open    { display: flex; }
  .main-nav a       { font-size: 0.85rem; }
  .products-grid    { grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .products-grid    { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .stats-grid       { grid-template-columns: 1fr 1fr; }
}