/* =========================================================
   GRUPO MATERIALIZA — Paleta "Ámbar & Grafito"
   ========================================================= */
:root {
  /* Paleta */
  --ink: #14161a;
  --ink-2: #1b1e24;
  --ink-3: #23272f;
  --bone: #f5f2ec;
  --bone-2: #ebe6dc;
  --amber: #c58a3d;
  --amber-bright: #d89a45;
  --amber-deep: #a66e2a;
  --text-light: #e8e4dc;
  --text-light-soft: #b7b3ab;
  --text-dark: #20242b;
  --text-dark-soft: #595e66;
  --line: rgba(255, 255, 255, 0.10);
  --line-dark: rgba(20, 22, 26, 0.10);

  /* Sistema */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  --shadow-amber: 0 14px 34px rgba(166, 110, 42, 0.35);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

/* Foco visible accesible (WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--amber-bright); outline-offset: 2px; border-radius: 4px; }

/* Utilitario solo-lectores y skip-link */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; font-weight: 700;
  padding: 12px 18px; border-radius: 10px;
}
.skip-link:focus { left: 16px; top: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bone);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Tipografía base */
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: inherit;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 14px;
}
/* Sobre fondos oscuros, el ámbar claro vibra más y cumple contraste */
.hero .eyebrow, .feature .eyebrow, .gallery .eyebrow { color: var(--amber-bright); }
.amber { color: var(--amber); font-style: italic; }

/* =================== BOTONES =================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--amber-bright), var(--amber-deep));
  color: #fff;
  box-shadow: var(--shadow-amber);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(166, 110, 42, 0.45); }
.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.10); transform: translateY(-3px); }
.btn--block { width: 100%; }

/* =================== NAVBAR =================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 42px; height: 42px; object-fit: contain; }
.nav__wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--text-light);
}
.nav__wordmark strong { font-weight: 800; color: #fff; }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-light);
  padding: 9px 16px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav__links .nav__cta {
  background: var(--amber);
  color: #fff;
  font-weight: 700;
}
.nav__links .nav__cta:hover { background: var(--amber-bright); }

/* Estado con scroll */
.nav.scrolled {
  background: rgba(15, 16, 19, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================== HERO =================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 16, 19, 0.55) 0%, rgba(15, 16, 19, 0.35) 40%, rgba(15, 16, 19, 0.92) 100%),
    linear-gradient(100deg, rgba(15, 16, 19, 0.85) 0%, rgba(15, 16, 19, 0.30) 60%, transparent 100%);
}
.hero__content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 80px; max-width: 880px; width: 100%; min-width: 0; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  overflow-wrap: break-word;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--text-light-soft);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: #fff;
}
.hero__stats span { font-size: 0.82rem; color: var(--text-light-soft); letter-spacing: 0.04em; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; border-radius: 4px;
  background: #fff;
  transform: translateX(-50%);
  animation: scrollDot 1.7s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 100% { opacity: 0; top: 24px; } }

/* =================== VALORES =================== */
.values {
  background: var(--ink);
  color: var(--text-light);
  position: relative;
  z-index: 2;
  margin-top: -130px;     /* las cards montan sobre el final del hero */
  padding-bottom: 16px;
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.value {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.value:hover { transform: translateY(-8px); border-color: rgba(197, 138, 61, 0.5); }
.value__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(197, 138, 61, 0.14);
  color: var(--amber-bright);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.value__icon svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.08rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.value p { font-size: 0.92rem; color: var(--text-light-soft); }

/* =================== NOSOTROS =================== */
.about {
  background: var(--ink);
  color: var(--text-light);
  padding: 70px 0 110px;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%; height: 540px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__badge {
  position: absolute; left: -22px; bottom: 36px;
  background: var(--amber);
  color: #fff;
  padding: 18px 26px;
  border-radius: 14px;
  box-shadow: var(--shadow-amber);
  line-height: 1.1;
}
.about__badge strong { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.about__badge span { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; }
.about__text h2 { color: #fff; margin-bottom: 22px; }
.about__text p { color: var(--text-light-soft); margin-bottom: 16px; max-width: 540px; }
.about__note {
  border-left: 3px solid var(--amber);
  padding-left: 16px;
  color: var(--text-light) !important;
  font-weight: 500;
}
.about__text .btn { margin-top: 14px; }

/* =================== SOLUCIONES =================== */
.solutions { background: var(--bone); padding: 100px 0; }
.solutions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.solutions__text h2 { color: var(--text-dark); margin-bottom: 22px; }
.solutions__text p { color: var(--text-dark-soft); margin-bottom: 16px; }
.solutions__list { margin-top: 22px; display: grid; gap: 12px; }
.solutions__list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--text-dark);
}
.solutions__list li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--amber);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
}
.solutions__media img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =================== CATÁLOGO =================== */
.catalog { background: var(--bone-2); padding: 100px 0; }
.catalog__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 36px;
}
.catalog__head h2 { color: var(--text-dark); }
.catalog__year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--amber-deep);
  white-space: nowrap;
}
.catalog__filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 40px;
}
.filter-chip {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(20, 22, 26, 0.14);
  background: transparent;
  color: var(--text-dark-soft);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter-chip:hover { border-color: var(--amber); color: var(--text-dark); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--bone);
  border: 1px solid rgba(20, 22, 26, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(20, 22, 26, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__cat {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(20, 22, 26, 0.82);
  color: var(--bone);
  padding: 5px 11px;
  border-radius: 999px;
}
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}
.card__specs { font-size: 0.85rem; color: var(--text-dark-soft); margin-bottom: 14px; }
.card__specs li { position: relative; padding-left: 14px; margin-bottom: 3px; }
.card__specs li::before { content: "·"; position: absolute; left: 2px; color: var(--amber); font-weight: 800; }
.card__more {
  margin-top: auto;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--amber-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__more::after { content: "→"; transition: transform 0.3s var(--ease); }
.card:hover .card__more::after { transform: translateX(4px); }

/* =================== GALERÍA / AMBIENTES =================== */
.gallery { background: var(--ink); color: var(--text-light); padding: 100px 0; }
.gallery__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.gallery__head h2 { color: #fff; margin-bottom: 14px; }
.gallery__lead { color: var(--text-light-soft); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 16px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 16, 19, 0.7));
  opacity: 0; transition: opacity 0.4s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 18px; bottom: 16px; z-index: 1;
  color: #fff; font-weight: 700; font-size: 0.95rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }
.gallery__item.tall { grid-row: span 2; }
.gallery__item.wide { grid-column: span 2; }
.gallery__item.feature { grid-column: span 2; grid-row: span 2; }

/* =================== DESTACADO CHAPONES =================== */
.feature { position: relative; color: var(--text-light); }
.feature__media { position: absolute; inset: 0; z-index: 0; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 16, 19, 0.92) 0%, rgba(15, 16, 19, 0.7) 45%, rgba(15, 16, 19, 0.2) 100%);
}
.feature__content {
  position: relative; z-index: 1;
  padding: 120px 24px;
  max-width: 620px;
}
.feature__content h2 { color: #fff; margin-bottom: 18px; }
.feature__content p { color: var(--text-light-soft); margin-bottom: 14px; }
.feature__spec { color: var(--text-light) !important; }
.feature__spec strong { color: var(--amber-bright); }
.feature__content .btn { margin-top: 18px; }

/* =================== CONTACTO =================== */
.contact { background: var(--bone); padding: 100px 0; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact__text h2 { color: var(--text-dark); margin-bottom: 18px; }
.contact__text > p { color: var(--text-dark-soft); margin-bottom: 28px; max-width: 460px; }
.contact__channels { display: grid; gap: 14px; }
.contact__channels a, .contact__channels span {
  display: flex; align-items: center; gap: 14px;
  font-weight: 600; color: var(--text-dark);
  padding: 14px 18px;
  background: var(--bone-2);
  border: 1px solid rgba(20, 22, 26, 0.06);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, transform 0.3s;
}
.contact__channels a:hover { border-color: var(--amber); transform: translateX(4px); }
.contact__channels .ch-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ink); color: var(--amber-bright);
  border-radius: 10px; font-size: 1.1rem;
}
.contact__channels .ch-label { font-size: 0.75rem; color: var(--text-dark-soft); font-weight: 500; display: block; letter-spacing: 0.04em; }
.contact__channels .ch-value { font-size: 0.98rem; }

.contact__form {
  background: var(--ink);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-light-soft); margin-bottom: 7px; letter-spacing: 0.03em;
}
.field__opt { color: #6c7077; font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-sans); font-size: 0.95rem;
  padding: 13px 15px;
  background: var(--ink-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  transition: border-color 0.25s, background 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: #6c7077; }
.field input:focus, .field textarea:focus { border-color: var(--amber); background: var(--ink-3); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: 1px; }
.field textarea { resize: vertical; }
.contact__hint { font-size: 0.8rem; color: var(--text-light-soft); text-align: center; margin-top: 12px; }
.contact__hint--sent { color: var(--amber-bright); font-weight: 600; }
.contact__hint a { color: var(--amber-bright); text-decoration: underline; }
.btn--whatsapp { background: #25d366; color: #07331a; margin-top: 12px; }
.btn--whatsapp:hover { background: #1fbf5b; transform: translateY(-3px); }

/* =================== FOOTER =================== */
.footer { background: #0f1013; color: var(--text-light); padding: 56px 0 28px; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 30px; flex-wrap: wrap;
  padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__logo { width: 52px; height: 52px; object-fit: contain; }
.footer__name { font-weight: 600; letter-spacing: 0.1em; }
.footer__name strong { font-weight: 800; }
.footer__tag { font-size: 0.85rem; color: var(--text-light-soft); max-width: 320px; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { font-size: 0.9rem; color: var(--text-light-soft); transition: color 0.25s; }
.footer__nav a:hover { color: var(--amber-bright); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 24px; font-size: 0.82rem; color: var(--text-light-soft);
}
.footer__soon em { color: var(--amber); font-style: normal; font-weight: 600; }

/* =================== FAB =================== */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber-deep));
  color: #fff; font-weight: 700; font-size: 0.92rem;
  padding: 14px 22px; border-radius: 999px;
  box-shadow: var(--shadow-amber);
  transform: translateY(120px);
  transition: transform 0.45s var(--ease), box-shadow 0.3s;
}
.fab.show { transform: translateY(0); }
.fab:hover { box-shadow: 0 18px 40px rgba(166, 110, 42, 0.5); }
.fab__icon { font-size: 1.1rem; }

/* =================== LIGHTBOX =================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 11, 13, 0.94);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox__figure { max-width: 90vw; max-height: 86vh; text-align: center; }
.lightbox__figure img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.lightbox__figure figcaption { color: var(--text-light); margin-top: 14px; font-weight: 600; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, 0.10);
  color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
  transition: background 0.25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }

/* =================== MODAL PRODUCTO =================== */
.modal { position: fixed; inset: 0; z-index: 180; display: none; }
.modal.open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 11, 13, 0.7); backdrop-filter: blur(4px); }
.modal__panel {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(880px, 92vw); max-height: 88vh; overflow-y: auto;
  background: var(--bone);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; cursor: pointer; font-size: 1.4rem;
}
.modal__body { display: grid; grid-template-columns: 1fr 1fr; }
.modal__gallery { background: #fff; padding: 24px; display: grid; gap: 12px; align-content: start; }
.modal__gallery .mg-main { aspect-ratio: 1; }
.modal__gallery .mg-main img { width: 100%; height: 100%; object-fit: contain; }
.modal__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.modal__thumbs img {
  width: 64px; height: 64px; object-fit: contain;
  border: 1.5px solid rgba(20,22,26,0.12); border-radius: 8px; cursor: pointer; padding: 4px; background: #fff;
}
.modal__thumbs img.active { border-color: var(--amber); }
.modal__info { padding: 40px 32px 32px; }
.modal__info .eyebrow { margin-bottom: 10px; }
.modal__info h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--text-dark); margin-bottom: 18px; }
.modal__info .spec-list { display: grid; gap: 10px; margin-bottom: 26px; }
.modal__info .spec-list li {
  position: relative; padding-left: 22px; color: var(--text-dark-soft); font-size: 0.95rem;
}
.modal__info .spec-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; background: var(--amber); border-radius: 50%;
}

/* =================== REVEAL ANIM =================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .catalog__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .solutions__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media img { height: 420px; }
  .solutions__media { order: -1; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto;
    width: min(82vw, 320px);
    flex-direction: column; align-items: stretch; justify-content: center;
    gap: 6px; padding: 80px 26px;
    background: rgba(15, 16, 19, 0.97);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.05rem; padding: 14px 18px; }
  .nav__links .nav__cta { text-align: center; margin-top: 10px; }
  .nav__toggle { display: flex; z-index: 101; }
  .nav.scrolled, .nav { background: rgba(15, 16, 19, 0.9); backdrop-filter: blur(12px); }

  .values { margin-top: 0; padding-top: 60px; padding-bottom: 10px; }
  .values__grid { grid-template-columns: 1fr; }
  .about { padding-top: 70px; }
  .about__badge { left: 14px; }

  .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card__media img { padding: 10px; }
  .card__name { font-size: 1rem; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery__item.wide { grid-column: span 2; }
  .gallery__item.tall { grid-row: span 1; }

  .modal__body { grid-template-columns: 1fr; }
  .modal__panel { width: 94vw; }

  .hero__content { padding-top: 130px; }
  .hero__title { font-size: clamp(2.1rem, 8.5vw, 3.4rem); }
  .hero__stats { gap: 16px 24px; }
  .hero__stats strong { font-size: 1.6rem; }
  .feature__content { padding: 90px 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }

  .lightbox__figure img { max-width: calc(100vw - 108px); }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 14px; right: 14px; }
}

@media (max-width: 420px) {
  .catalog__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2rem; }
  .hero__actions .btn { flex: 1; }
  .fab__label { display: none; }
  .fab { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
}
