/* ═══════════════════════════════════════════════
   BAIKAL — Shared Stylesheet
   Stone & Design — Buenos Aires
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@200;300;400;500;600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Barlow', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 300;
  color: #111;
  background: #f8f7f5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ─── VARIABLES ─── */
:root {
  --c-black:   #0a0a0a;
  --c-dark:    #111111;
  --c-stone:   #1e1c1a;
  --c-mid:     #3d3a37;
  --c-muted:   #7a7570;
  --c-warm:    #a89880;
  --c-beige:   #e2ddd8;
  --c-light:   #f0ede9;
  --c-white:   #f8f7f5;

  --font-display: 'Barlow', 'Helvetica Neue', Helvetica, sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --pad-section: clamp(4.5rem, 8vw, 8rem);
  --gutter:      clamp(1.5rem, 5vw, 4rem);
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section-label {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-warm);
}
.divider-line {
  width: 36px; height: 1px;
  background: var(--c-warm);
  margin: 1.25rem 0;
}
.section-title {
  font-weight: 200;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-dark);
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.visible { opacity: 1; transform: none; }
.fade-in { opacity: 0; transition: opacity 1s ease; }
.fade-in.visible { opacity: 1; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  background: var(--c-dark);
  color: #fff;
  border: 1px solid var(--c-dark);
  transition: background 0.3s, transform 0.25s;
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--c-dark);
  border: 1px solid var(--c-beige);
  transition: border-color 0.3s, background 0.3s;
}
.btn-outline:hover { border-color: var(--c-dark); background: var(--c-light); }

.btn-outline-white {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  background: #fff;
  color: var(--c-dark);
  border: 1px solid #fff;
  transition: background 0.3s, transform 0.25s;
}
.btn-white:hover { background: var(--c-light); border-color: var(--c-light); transform: translateY(-1px); }

/* ─── HEADER ─── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.6rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
#header.scrolled {
  background: rgba(248,247,245,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem var(--gutter);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}
.nav-logo-img {
  height: 41px; width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  transition: filter 0.4s;
}
#header.scrolled .nav-logo-img { filter: invert(1); }

/* NAV */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-link {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  transition: color 0.3s;
  position: relative;
}
.nav-link:hover { color: #fff; opacity: 0.65; }
#header.scrolled .nav-link { color: var(--c-dark); }
#header.scrolled .nav-link:hover { color: var(--c-muted); opacity: 1; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item > a::after {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  opacity: 0.5;
}

/* Puente invisible que cierra el gap entre el link y el dropdown
   para que el hover no se pierda al mover el cursor hacia abajo */
.nav-item::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -24px;
  right: -24px;
  height: 1.4rem;
  display: none;
}
.nav-item:hover::before { display: block; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 1.2rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  min-width: 200px;
  padding: 0.6rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  border: 1px solid var(--c-beige);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 210;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mid);
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-dropdown a:hover { background: var(--c-light); color: var(--c-dark); }
.nav-dropdown a.active { color: var(--c-dark); font-weight: 500; }

.nav-cta {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  background: #fff;
  color: var(--c-dark);
  border: 1px solid #fff;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
#header.scrolled .nav-cta { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
#header.scrolled .nav-cta:hover { background: #333; border-color: #333; }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: rgba(255,255,255,0.9);
  transition: background 0.4s;
}
#header.scrolled .nav-hamburger span { background: var(--c-dark); }

/* MOBILE MENU — z-index 250 para quedar ENCIMA del header (z-index 200) */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--c-white);
  z-index: 250;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }

.mob-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 5rem var(--gutter) 3rem;
  gap: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.mob-group {
  border-bottom: 1px solid var(--c-beige);
}

.mob-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 200;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mob-caret {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--c-warm);
  border-bottom: 1.5px solid var(--c-warm);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.mob-group-title.open .mob-caret {
  transform: rotate(-135deg) translateY(3px);
}

.mob-group-items {
  display: none;
  flex-direction: column;
  padding: 0 0 1rem;
  gap: 0;
}
.mob-group-items.open {
  display: flex;
}
.mob-group-items a {
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 0.75rem 0 0.75rem 1.25rem;
  border-left: 2px solid var(--c-beige);
  transition: color 0.2s, border-color 0.2s;
}
.mob-group-items a:hover { color: var(--c-dark); border-color: var(--c-warm); }

.mob-direct {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 200;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-dark);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--c-beige);
  transition: color 0.3s;
}
.mob-direct:hover { color: var(--c-muted); }

.mob-cta-btn {
  margin-top: 2rem;
  text-align: center !important;
  justify-content: center !important;
  display: inline-flex !important;
  font-size: 0.68rem !important;
  padding: 1rem 2rem !important;
  min-height: 50px !important;
}

.mobile-close {
  position: fixed;
  top: 1.25rem;
  right: var(--gutter);
  font-size: 1.2rem;
  color: var(--c-dark);
  cursor: pointer;
  z-index: 260;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

/* ─── MATERIAL PAGE ─── */

/* Hero */
.mat-hero {
  height: 88vh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.mat-hero-img {
  position: absolute; inset: 0;
}
.mat-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.mat-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(8,8,8,0.82) 0%,
    rgba(8,8,8,0.25) 55%,
    rgba(8,8,8,0.08) 100%);
}
.mat-hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) clamp(3.5rem, 7vw, 6rem);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.mat-hero-breadcrumb {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: 1.5rem;
}
.mat-hero-breadcrumb a { color: rgba(255,255,255,0.40); }
.mat-hero-breadcrumb a:hover { color: rgba(255,255,255,0.70); }
.mat-hero-title {
  font-weight: 200;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.mat-hero-sub {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  max-width: 44rem;
  line-height: 1.75;
  letter-spacing: 0.04em;
}
.mat-hero-btns {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* Description section */
.mat-section {
  padding: var(--pad-section) 0;
}
.mat-section-light { background: var(--c-white); }
.mat-section-off { background: var(--c-light); }
.mat-section-dark { background: var(--c-dark); color: #fff; }

.mat-desc-grid {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}
.mat-desc-text {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-mid);
  letter-spacing: 0.02em;
}
.mat-desc-text p + p { margin-top: 1.25rem; }
.mat-desc-img {
  height: clamp(320px, 38vw, 520px);
  overflow: hidden;
}
.mat-desc-img img { height: 100%; }

/* Benefits */
.mat-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.mat-benefit {
  padding: 2rem 1.75rem;
  background: var(--c-white);
  border: 1px solid var(--c-beige);
}
.mat-benefit-icon {
  width: 36px; height: 36px;
  margin-bottom: 1.25rem;
  color: var(--c-warm);
}
.mat-benefit-title {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-dark);
  margin-bottom: 0.65rem;
}
.mat-benefit-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* Color swatches */
.swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: clamp(0.5rem, 1vw, 0.9rem);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
.swatch {
  cursor: pointer;
}
.swatch-color {
  height: 80px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-size: cover;
  background-position: center;
}
.swatch:hover .swatch-color {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.swatch-name {
  display: block;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  text-align: center;
}

/* Gallery strip */
.mat-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
.mat-gallery-item {
  overflow: hidden;
}
.mat-gallery-item img {
  height: clamp(220px, 25vw, 360px);
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.mat-gallery-item:hover img { transform: scale(1.05); }

/* CTA section */
.mat-cta {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--c-dark);
  text-align: center;
}
.mat-cta-title {
  font-weight: 200;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}
.mat-cta-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.50);
  max-width: 34rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
}
.mat-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── FOOTER ─── */
#footer {
  background: var(--c-black);
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 2.5rem;
}
.footer-logo-img {
  height: 48px; width: auto;
  display: block;
  margin-bottom: 1rem;
  object-fit: contain;
  object-position: left;
}
.footer-desc {
  font-size: 0.78rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.25);
  max-width: 22rem;
  font-weight: 300;
}
.footer-col-title {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1.35rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.22);
  font-weight: 300;
  transition: color 0.3s;
}
.footer-links a:hover { color: rgba(255,255,255,0.65); }
.footer-social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.28);
  font-size: 0.68rem;
  transition: border-color 0.3s, color 0.3s;
}
.footer-social a:hover { border-color: rgba(255,255,255,0.45); color: rgba(255,255,255,0.75); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.14);
}

/* ─── WA FLOAT ─── */
#wa-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(248,247,245,0.94);
  border: 1px solid var(--c-beige);
  border-radius: 50%;
  color: var(--c-warm);
  opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(0.88);
  transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1),
              transform 0.4s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s, color 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}
#wa-float svg { width: 26px; height: 26px; }
#wa-float.wa-visible { opacity: 1; pointer-events: auto; transform: none; }
#wa-float:hover { border-color: var(--c-mid); color: var(--c-mid); background: #fff; transform: translateY(-2px); }

/* ─── RESPONSIVE ─── */

/* ── TABLET horizontal / desktop chico (1024px) ── */
@media (max-width: 1024px) {
  :root { --pad-section: clamp(3.5rem, 7vw, 6rem); --gutter: clamp(1.5rem, 4vw, 3rem); }

  .mat-desc-grid { grid-template-columns: 1fr; gap: 3rem; }
  .mat-desc-img { display: none; }
  .mat-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* ── TABLET vertical / iPhone grande (768px) ── */
@media (max-width: 768px) {
  :root { --pad-section: clamp(3rem, 8vw, 5rem); --gutter: 1.25rem; }

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; padding: 10px; gap: 6px; }
  .nav-hamburger span { width: 26px; height: 1.5px; }

  /* Hero */
  .mat-hero { height: 85svh; min-height: 500px; }
  .mat-hero-title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .mat-hero-sub { font-size: clamp(0.88rem, 3vw, 1rem); }
  .mat-hero-btns { flex-direction: column; gap: 0.75rem; max-width: 300px; }
  .mat-hero-btns a { width: 100%; justify-content: center; text-align: center; min-height: 50px; padding: 1rem; }

  /* Beneficios: 2 columnas */
  .mat-benefits-grid { grid-template-columns: 1fr 1fr; }

  /* Galería: 1 columna */
  .mat-gallery { grid-template-columns: 1fr; }
  .mat-gallery-item img { height: clamp(220px, 56vw, 380px); }

  /* Swatches: más pequeños */
  .swatches-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 0.5rem; }
  .swatch-color { height: 68px; }

  /* CTA buttons */
  .mat-cta-btns { flex-direction: column; align-items: center; gap: 0.75rem; }
  .mat-cta-btns a { min-height: 50px; padding: 1rem 2rem; }

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

  /* Mobile menu */
  .mob-group-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .mob-direct { font-size: clamp(1.2rem, 5vw, 1.6rem); }

  /* Botones táctiles */
  .btn-primary, .btn-outline, .btn-white { min-height: 48px; }
}

/* ── MOBILE: teléfonos (480px) ── */
@media (max-width: 480px) {
  :root { --pad-section: clamp(2.5rem, 10vw, 4rem); --gutter: 1rem; }

  .nav-logo-img { height: 32px; }
  #header { padding: 1.1rem var(--gutter); }

  /* Hero */
  .mat-hero-title { font-size: clamp(2rem, 13vw, 3rem); letter-spacing: 0.04em; }

  /* Beneficios: 1 columna en móviles pequeños */
  .mat-benefits-grid { grid-template-columns: 1fr; }

  /* Swatches: 3 columnas */
  .swatches-grid { grid-template-columns: repeat(3, 1fr); }
  .swatch-color { height: 60px; }
  .swatch-name { font-size: 0.52rem; }

  /* Footer: 1 columna */
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-logo-img { height: 39px; }

  /* WA float */
  #wa-float { width: 52px; height: 52px; bottom: 1.25rem; right: 1.25rem; }
  #wa-float svg { width: 22px; height: 22px; }
}

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE MOBILE MENU ─── */
@media (max-width: 768px) {
  .mob-nav { padding-top: 4.5rem; }
}
@media (max-width: 480px) {
  .mob-group-title { font-size: clamp(1.2rem, 6vw, 1.6rem); }
  .mob-direct { font-size: clamp(1.2rem, 6vw, 1.6rem); }
}

/* ═══════════════════════════════════════════════
   IMAGEN GRID — Canteras-style
═══════════════════════════════════════════════ */

.mat-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 4px;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* Card con imagen real */
.mat-img-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--c-beige);
  display: block;
  border-radius: 5px;
  transition: box-shadow 0.35s ease;
}
.mat-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
.mat-img-card:hover,
.mat-img-card.touch-active {
  box-shadow: 0 4px 18px rgba(0,0,0,0.16);
  z-index: 1;
}
.mat-img-card:hover img,
.mat-img-card.touch-active img { transform: scale(1.06); }

/* Card color (sin imagen) */
.mat-color-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: default;
}

/* Overlay compartido */
.mat-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.38s ease;
  pointer-events: none;
}
.mat-img-overlay-name {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover / touch active — imagen */
.mat-img-card:hover .mat-img-overlay,
.mat-img-card.touch-active .mat-img-overlay {
  background: rgba(0,0,0,0.52);
}
.mat-img-card:hover .mat-img-overlay-name,
.mat-img-card.touch-active .mat-img-overlay-name {
  opacity: 1;
  transform: none;
}

/* Hover / touch active — color */
.mat-color-card:hover .mat-img-overlay,
.mat-color-card.touch-active .mat-img-overlay {
  background: rgba(0,0,0,0.42);
}
.mat-color-card:hover .mat-img-overlay-name,
.mat-color-card.touch-active .mat-img-overlay-name {
  opacity: 1;
  transform: none;
}

/* ─── LIGHTBOX ─── */
.mat-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.93);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  padding: 2rem;
}
.mat-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.mat-lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
}
.mat-lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.mat-lightbox-name {
  color: rgba(255,255,255,0.50);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 1.25rem;
  text-align: center;
}
.mat-lightbox-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  color: rgba(255,255,255,0.45);
  font-size: 1.2rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  letter-spacing: 0;
}
.mat-lightbox-close:hover { color: #fff; }

.mat-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.40);
  font-size: 2.5rem;
  font-weight: 200;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  min-width: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
  letter-spacing: 0;
}
.mat-lightbox-nav:hover { color: rgba(255,255,255,0.85); }
.mat-lightbox-prev { left: -5rem; }
.mat-lightbox-next { right: -5rem; }

/* ─── PANTONERA BUTTON ─── */
.mat-pantonera-wrap {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
.mat-pantonera-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--c-mid);
  border: 1px solid var(--c-beige);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.mat-pantonera-btn:hover {
  border-color: var(--c-warm);
  background: var(--c-light);
  color: var(--c-dark);
}
.mat-pantonera-btn svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* ─── RESPONSIVE IMAGEN GRID ─── */
@media (max-width: 1024px) {
  .mat-img-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 3px; }
}
@media (max-width: 768px) {
  .mat-img-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .mat-lightbox-prev { left: -2.5rem; }
  .mat-lightbox-next { right: -2.5rem; }
  .mat-lightbox-close { top: -3rem; }
}
@media (max-width: 480px) {
  .mat-img-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .mat-lightbox { padding: 1rem; }
  .mat-lightbox-inner { max-width: 98vw; }
  .mat-lightbox-nav {
    position: fixed;
    bottom: 2rem;
    top: auto;
    transform: none;
    font-size: 2rem;
  }
  .mat-lightbox-prev { left: 1.5rem; right: auto; }
  .mat-lightbox-next { right: 1.5rem; left: auto; }
  .mat-lightbox-img { max-height: 70vh; }
}
