/* =========================================================
   JEM MAQUILAS Y TEXTILES — Stylesheet
   Paleta: #0d0a08 | #c49a2a | #f5f0e8 | #3d1f0d
   Fonts: Bebas Neue + Inter
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  background: #0d0a08;
  color: #f5f0e8;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── CSS Variables ── */
:root {
  --bg:          #0d0a08;
  --bg-alt:      #130e0a;
  --bg-card:     #1a1208;
  --leather:     #3d1f0d;
  --gold:        #c49a2a;
  --gold-light:  #e8c455;
  --gold-dim:    rgba(196,154,42,0.12);
  --text:        #f5f0e8;
  --text-muted:  #8a7a68;
  --border:      rgba(196,154,42,0.18);

  /* Textura fabric weave — checker sutil */
  --pattern-weave: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='6' height='6' fill='%23f5f0e8' fill-opacity='0.018'/%3E%3Crect x='6' y='6' width='6' height='6' fill='%23f5f0e8' fill-opacity='0.018'/%3E%3C/svg%3E");

  /* Textura grano de piel — rombos diagonales en dorado */
  --pattern-grain: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2L22 12L12 22L2 12Z' stroke='%23c49a2a' stroke-opacity='0.06' stroke-width='0.6' fill='none'/%3E%3C/svg%3E");

  /* Textura espiga — chevron fino */
  --pattern-herringbone: url("data:image/svg+xml,%3Csvg width='20' height='10' viewBox='0 0 20 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10L10 0L20 10' stroke='%23c49a2a' stroke-opacity='0.05' stroke-width='0.8' fill='none'/%3E%3C/svg%3E");
}

/* ================================================================
   NAVEGACIÓN
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  background: rgba(13,10,8,0.96);
  backdrop-filter: blur(12px);
  padding: 0.9rem 3rem;
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  color: var(--text);
}
.nav__logo-tag {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta {
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.22em !important;
  transition: background 0.3s, color 0.3s !important;
  border-radius: 1px;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--gold); color: var(--bg) !important; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,10,8,0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.3s;
}
.nav__mobile a:hover { color: var(--gold); }

/* ================================================================
   HERO — FULLSCREEN
   ================================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Imagen de fondo */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Máscara de capa: patrón grano + oscurecimiento */
.hero__mask {
  position: absolute;
  inset: 0;
  background-image: var(--pattern-grain), var(--pattern-weave);
  background-color: rgba(13,10,8,0.55);
  mix-blend-mode: multiply;
  z-index: 1;
}

/* Gradiente bottom fade */
.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(13,10,8,0.5) 65%,
    #0d0a08 100%
  );
  z-index: 2;
}

/* Línea lateral dorada */
.hero__accent-line {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  z-index: 3;
}

.hero__content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 0 3rem 5rem;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.hero__eyebrow-line {
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero__eyebrow-text {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5.5rem, 14vw, 13rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  color: var(--text);
  text-transform: uppercase;
}
.hero__title em {
  font-style: normal;
  color: var(--gold);
  display: block;
}

.hero__sub {
  margin-top: 1.8rem;
  max-width: 480px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.5rem;
  align-items: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero__scroll-hint span {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-lr;
}
.hero__scroll-hint-bar {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollBar 1.8s ease-in-out infinite;
}
@keyframes scrollBar {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ================================================================
   BOTONES
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  border-radius: 1px;
}
.btn--gold {
  background: var(--gold);
  color: var(--bg);
  padding: 0.85rem 2rem;
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  padding: 0.85rem 2rem;
  border: 1px solid rgba(245,240,232,0.25);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--ghost {
  background: transparent;
  color: var(--gold);
  padding: 0;
  font-size: 0.7rem;
  gap: 0.8rem;
}
.btn--ghost::after {
  content: '→';
  transition: transform 0.3s;
}
.btn--ghost:hover::after { transform: translateX(6px); }

/* ================================================================
   ESTADÍSTICAS
   ================================================================ */
.stats {
  padding: 0 3rem;
  position: relative;
  z-index: 5;
  margin-top: -2px;
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background-image: var(--pattern-weave);
  background-color: var(--bg-card);
}
.stats__item {
  padding: 2.5rem 2rem;
  position: relative;
}
.stats__item + .stats__item {
  border-left: 1px solid var(--border);
}
.stats__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stats__unit {
  font-size: 1.2rem;
  color: var(--text-muted);
}
.stats__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ================================================================
   LÍNEAS DE NEGOCIO (Home — split asimétrico)
   ================================================================ */
.lines {
  padding: 7rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background-image: var(--pattern-herringbone);
  background-color: var(--bg-alt);
}
.lines__header {
  margin-bottom: 4rem;
}
.lines__header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  line-height: 1;
}
.lines__header h2 span { color: var(--gold); }

.line-card {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}
.line-card:nth-child(even) {
  grid-template-columns: 2fr 3fr;
}
.line-card:nth-child(even) .line-card__img { order: 2; }
.line-card:nth-child(even) .line-card__body { order: 1; }

.line-card__body {
  padding: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.line-card__body::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
}

.line-card__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  color: rgba(196,154,42,0.08);
  line-height: 1;
  position: absolute;
  top: 1rem; right: 2rem;
  letter-spacing: -0.02em;
  user-select: none;
}
.line-card__tag {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.line-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.line-card__desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 420px;
}
.line-card__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.line-card__item {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}

.line-card__img {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.line-card__img-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}
/* Clip-path diagonal en imagen */
.line-card:nth-child(odd) .line-card__img {
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
.line-card:nth-child(even) .line-card__img {
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}
/* Máscara de capa sobre imagen */
.line-card__img-mask {
  position: absolute;
  inset: 0;
  background: var(--leather);
  mix-blend-mode: multiply;
  opacity: 0.45;
  z-index: 1;
  transition: opacity 0.5s;
}
.line-card:hover .line-card__img-mask { opacity: 0.25; }
.line-card:hover .line-card__img-inner { transform: scale(1.04); }

/* Patrón grain encima de la imagen */
.line-card__img-pattern {
  position: absolute;
  inset: 0;
  background-image: var(--pattern-grain);
  z-index: 2;
  opacity: 0.6;
}

/* ================================================================
   MATERIALES
   ================================================================ */
.materials {
  padding: 7rem 3rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.materials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--pattern-weave);
  opacity: 0.7;
}
.materials__header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}
.materials__header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  line-height: 1;
}
.materials__header h2 span { color: var(--gold); }

.materials__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.material-card {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.material-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.material-card:hover .material-card__bg { transform: scale(1.06); }

/* Máscara de capa con patrón grain */
.material-card__mask {
  position: absolute;
  inset: 0;
  background-image: var(--pattern-grain);
  background-color: rgba(61,31,13,0.5);
  mix-blend-mode: multiply;
  transition: opacity 0.5s;
  z-index: 1;
}
.material-card:hover .material-card__mask { opacity: 0.3; }

.material-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,10,8,0.9) 0%, transparent 55%);
  z-index: 2;
}
.material-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.2rem;
  z-index: 3;
}
.material-card__name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.material-card__desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.material-card:hover .material-card__desc { max-height: 60px; }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  padding: 6rem 3rem;
  background-image: var(--pattern-herringbone), var(--pattern-grain);
  background-color: var(--leather);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: 'JEM';
  position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28vw;
  color: rgba(13,10,8,0.12);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.cta-banner p {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.7);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-banner .btn--gold { background: var(--bg); color: var(--gold); }
.cta-banner .btn--gold:hover { background: var(--gold); color: var(--bg); }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: #080604;
  padding: 4rem 3rem 2rem;
  border-top: 1px solid var(--border);
  background-image: var(--pattern-weave);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer__brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.footer__brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer__brand-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 280px;
}
.footer__col-title {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--text); }
.footer__contact-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.footer__contact-item strong {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer__bottom span { color: var(--gold); }

/* ================================================================
   PAGE HERO (páginas internas)
   ================================================================ */
.page-hero {
  padding: 10rem 3rem 5rem;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero__mask {
  position: absolute;
  inset: 0;
  background-image: var(--pattern-grain), var(--pattern-weave);
  background-color: rgba(13,10,8,0.7);
  mix-blend-mode: multiply;
  z-index: 1;
}
.page-hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,10,8,0.3) 0%, rgba(13,10,8,0.6) 60%, #0d0a08 100%);
  z-index: 2;
}
.page-hero__content {
  position: relative;
  z-index: 3;
}
.page-hero__breadcrumb {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.page-hero__breadcrumb a { color: var(--text-muted); transition: color 0.3s; }
.page-hero__breadcrumb a:hover { color: var(--gold); }
.page-hero__breadcrumb span { margin: 0 0.5rem; color: var(--text-muted); }
.page-hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
}
.page-hero__title em { font-style: normal; color: var(--gold); }
.page-hero__sub {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ================================================================
   SECCIÓN GENÉRICA — LAYOUT HELPERS
   ================================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.section-label__line {
  width: 32px; height: 1px;
  background: var(--gold);
}
.section-label__text {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.section-title span { color: var(--gold); }
.section-body {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 560px;
}

/* ================================================================
   PRODUCTOS — GALERÍA HORIZONTAL
   ================================================================ */
.catalog {
  padding: 6rem 0 6rem 3rem;
  background: var(--bg-alt);
  background-image: var(--pattern-weave);
  overflow: hidden;
}
.catalog__header {
  padding-right: 3rem;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.catalog__filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-right: 3rem;
}
.filter-btn {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.3s;
  border-radius: 1px;
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.catalog__track {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.5rem;
  padding-right: 3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.catalog__track::-webkit-scrollbar { height: 3px; }
.catalog__track::-webkit-scrollbar-track { background: transparent; }
.catalog__track::-webkit-scrollbar-thumb { background: var(--border); }

.product-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: none; /* shown by filter JS */
}
.product-card.visible { display: block; }
.product-card.show-all { display: block; }

.product-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.product-card:hover .product-card__img { transform: scale(1.05); }

/* Clip-path diagonal en product cards pares */
.product-card:nth-child(even) {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}

/* Máscara capa al hover */
.product-card__mask {
  position: absolute;
  inset: 0;
  background: rgba(196,154,42,0.08);
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: screen;
  z-index: 1;
}
.product-card:hover .product-card__mask { opacity: 1; }

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,10,8,0.96) 0%, rgba(13,10,8,0.2) 45%, transparent 70%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.product-card__cat {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.product-card__name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.product-card__detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-height: 0;
  overflow: hidden;
}
.product-card:hover .product-card__detail {
  opacity: 1;
  transform: translateY(0);
  max-height: 3rem;
}

/* ================================================================
   MAQUILA — FICHAS TÉCNICAS
   ================================================================ */
.services-grid {
  padding: 7rem 3rem;
  background: var(--bg);
  background-image: var(--pattern-weave);
}
.services-grid__header { margin-bottom: 4rem; }

.service-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.spec-card:hover { border-color: var(--gold); }
.spec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.spec-card:hover::before { transform: scaleX(1); }

.spec-card__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: var(--gold-dim);
  line-height: 1;
  position: absolute;
  top: 1rem; right: 1.5rem;
  letter-spacing: -0.02em;
  opacity: 0.6;
}
.spec-card__icon {
  width: 36px; height: 36px;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
.spec-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}
.spec-card__desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.spec-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.spec-tag {
  font-size: 0.6rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(196,154,42,0.2);
  color: rgba(196,154,42,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ================================================================
   PROCESO — LÍNEA DE TIEMPO HORIZONTAL
   ================================================================ */
.process-section {
  padding: 7rem 3rem;
  background: var(--bg-alt);
  background-image: var(--pattern-grain);
  overflow: hidden;
}
.process-section__header { margin-bottom: 4rem; }

.process-timeline {
  display: flex;
  gap: 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: none;
}
.process-timeline::-webkit-scrollbar { display: none; }

/* Línea conectora */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 2.8rem;
  left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.process-step {
  flex: 1 1 0;
  min-width: 150px;
  padding-top: 1rem;
  padding-right: 2rem;
  position: relative;
}
.process-step__dot {
  width: 12px; height: 12px;
  border: 2px solid var(--gold);
  background: var(--bg-alt);
  border-radius: 50%;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  transition: background 0.3s;
}
.process-step:hover .process-step__dot { background: var(--gold); }
.process-step__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.process-step__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.process-step__desc {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 300;
}

/* ================================================================
   NOSOTROS — SPLIT CON CLIP-PATH
   ================================================================ */
.about-split {
  padding: 7rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}
.about-split__img-wrap {
  position: relative;
}
.about-split__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  /* Clip-path irregular */
  clip-path: polygon(0 0, 100% 0, 100% 80%, 88% 100%, 0 100%);
}
.about-split__img-mask {
  position: absolute;
  inset: 0;
  background-image: var(--pattern-grain);
  background-color: rgba(61,31,13,0.3);
  mix-blend-mode: multiply;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 88% 100%, 0 100%);
  z-index: 1;
}
/* Accent decorativo */
.about-split__img-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 120px; height: 120px;
  border: 1px solid var(--border);
  background-image: var(--pattern-herringbone);
  background-color: var(--bg-card);
  z-index: -1;
}

.about-split__body { padding-right: 1rem; }
.about-split__rfc {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ================================================================
   CAPACIDADES — DATA GRID
   ================================================================ */
.capacity {
  padding: 6rem 3rem;
  background: var(--bg-alt);
  background-image: var(--pattern-herringbone);
}
.capacity__header { margin-bottom: 3rem; }
.capacity__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.capacity-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.3s;
}
.capacity-item:hover { border-color: var(--gold); }
.capacity-item__val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.capacity-item__label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ================================================================
   CONTACTO
   ================================================================ */
.contact-section {
  padding: 7rem 3rem;
  background: var(--bg);
  background-image: var(--pattern-weave);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
}
.contact-info { padding-top: 0.5rem; }
.contact-data {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-data__item strong {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.contact-data__item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-data__item a { transition: color 0.3s; }
.contact-data__item a:hover { color: var(--gold); }

/* Formulario */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3rem;
  background-image: var(--pattern-grain);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(245,240,232,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Custom select ── */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.3s;
  border-radius: 1px;
}
.custom-select__trigger:focus,
.custom-select.open .custom-select__trigger {
  outline: none;
  border-color: var(--gold);
}
.custom-select__value.placeholder { color: var(--text-muted); }
.custom-select__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}
.custom-select.open .custom-select__arrow { transform: rotate(180deg); }

.custom-select__dropdown {
  position: absolute;
  top: calc(100% + 3px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  z-index: 200;
  list-style: none;
  padding: 0.4rem 0;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.custom-select.open .custom-select__dropdown { display: block; }

.custom-select__dropdown li {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}
.custom-select__dropdown li:hover,
.custom-select__dropdown li.selected {
  background: var(--gold-dim);
  color: var(--gold);
}
.form-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}
.form-note a { color: var(--gold); }
.form-success {
  display: none;
  padding: 1.2rem;
  border: 1px solid rgba(196,154,42,0.4);
  background: rgba(196,154,42,0.06);
  color: var(--gold);
  font-size: 0.82rem;
  margin-top: 1rem;
  letter-spacing: 0.05em;
}
.form-error {
  display: none;
  padding: 1.2rem;
  border: 1px solid rgba(220,80,80,0.4);
  background: rgba(220,80,80,0.06);
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 1rem;
}

/* Whatsapp float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* ================================================================
   MAYOREO
   ================================================================ */
.mayoreo-section {
  padding: 5rem 3rem;
  background: var(--bg);
  background-image: var(--pattern-weave);
}
.mayoreo-grid {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ================================================================
   UBICACIÓN
   ================================================================ */
.ubicacion {
  background: var(--bg-alt);
  background-image: var(--pattern-herringbone);
}
.ubicacion__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.ubicacion__body {
  padding: 6rem 4rem 6rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ubicacion__address {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.8;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}
.ubicacion__address strong {
  display: block;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.ubicacion__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  background: var(--bg-card);
  background-image: var(--pattern-grain);
  padding: 4rem 3rem;
}
.ubicacion__card {
  max-width: 340px;
  width: 100%;
}
.ubicacion__card-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.ubicacion__card-icon svg {
  width: 22px;
  height: 22px;
}
.ubicacion__card-label {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.ubicacion__card-address {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  font-weight: 300;
}
.ubicacion__card-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}
.ubicacion__card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.8rem;
}
.ubicacion__card-meta span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ubicacion__card-meta strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--text);
}
.ubicacion__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(196,154,42,0.3);
  padding-bottom: 0.25rem;
  transition: color 0.3s, border-color 0.3s;
}
.ubicacion__card-link:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ================================================================
   ANIMACIONES INICIALES (JS las activa)
   ================================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .materials__grid { grid-template-columns: repeat(2, 1fr); }
  .service-specs { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info { order: 2; }
  .contact-form { order: 1; }
  .ubicacion__grid { grid-template-columns: 1fr; }
  .ubicacion__visual { border-left: none; border-top: 1px solid var(--border); padding: 3rem 2rem; }
  .mayoreo-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav { padding: 1.1rem 1.5rem; }
  .nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__content { padding: 0 1.5rem 4rem; }
  .hero__accent-line { display: none; }
  .hero__scroll-hint { display: none; }

  .stats { padding: 0 1.5rem; }
  .stats__inner { grid-template-columns: 1fr; }
  .stats__item + .stats__item { border-left: none; border-top: 1px solid var(--border); }

  .lines { padding: 5rem 1.5rem; }
  .line-card { grid-template-columns: 1fr; min-height: auto; }
  .line-card:nth-child(even) { grid-template-columns: 1fr; }
  .line-card__img { min-height: 260px; }
  .line-card:nth-child(odd) .line-card__img,
  .line-card:nth-child(even) .line-card__img { clip-path: none; }
  .line-card:nth-child(even) .line-card__img { order: 1; }
  .line-card:nth-child(even) .line-card__body { order: 2; }

  .materials { padding: 5rem 1.5rem; }
  .materials__grid { grid-template-columns: repeat(2, 1fr); }
  .materials__header { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .cta-banner { padding: 4rem 1.5rem; }

  footer { padding: 3rem 1.5rem 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .page-hero { padding: 8rem 1.5rem 3rem; }

  .catalog { padding: 5rem 0 5rem 1.5rem; }
  .catalog__header { padding-right: 1.5rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .catalog__filters { padding-right: 1.5rem; }
  .catalog__track { padding-right: 1.5rem; }
  .product-card { flex: 0 0 260px; }
  .mayoreo-section { padding: 4rem 1.5rem; }
  .mayoreo-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .services-grid { padding: 5rem 1.5rem; }
  .service-specs { gap: 1rem; }

  .process-section { padding: 5rem 1.5rem; }

  .about-split { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 1.5rem; }
  .about-split__img-accent { display: none; }

  .capacity { padding: 5rem 1.5rem; }
  .capacity__grid { grid-template-columns: 1fr; }
  .capacity-item__val { font-size: 2rem; }

  .contact-section { padding: 5rem 1.5rem; }
  .contact-form { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .ubicacion__body { padding: 4rem 1.5rem; }
  .ubicacion__visual { padding: 3rem 1.5rem; }
}
