/* =========================================================
   GABSI MERCANTIL — Diseño moderno
   Insumos institucionales · Monterrey, N.L.
   ========================================================= */

:root {
  --navy-900: #0b1f3a;
  --navy-800: #102a4c;
  --navy-700: #16386a;
  --navy-600: #1d4a8a;
  --orange-500: #f26b1d;
  --orange-600: #d95a10;
  --orange-100: #fff1e8;

  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 58, .35);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: 0 10px 24px -10px rgba(242, 107, 29, .8); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-900); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-700); }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .78);
  font-size: 13.5px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--orange-500); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: "";
  position: absolute;
  right: -8px; bottom: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange-500);
}
.logo-mark span { position: relative; z-index: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { color: var(--navy-900); font-size: 21px; letter-spacing: .08em; font-weight: 800; }
.logo-text small { color: var(--orange-500); font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; font-weight: 700; margin-top: 4px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--surface-alt); color: var(--navy-700); }
.nav a.active { background: var(--navy-900); color: #fff; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  place-items: center;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero / Slider ---------- */
.hero {
  position: relative;
  height: min(86vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s linear;
}
.slide.is-active img { transform: scale(1); }
.slide::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 31, 58, .92) 0%, rgba(11, 31, 58, .7) 45%, rgba(11, 31, 58, .15) 100%),
    linear-gradient(0deg, rgba(11, 31, 58, .6) 0%, transparent 40%);
}
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 90px;
}
.slide-content > * {
  max-width: 620px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.slide.is-active .slide-content > * { opacity: 1; transform: none; }
.slide.is-active .slide-content > *:nth-child(2) { transition-delay: .15s; }
.slide.is-active .slide-content > *:nth-child(3) { transition-delay: .3s; }
.slide.is-active .slide-content > *:nth-child(4) { transition-delay: .45s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.slide h2 {
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  margin-bottom: 20px;
}
.slide p { font-size: 18px; color: rgba(255, 255, 255, .85); margin-bottom: 12px; }
.slide .btn { margin-top: 18px; }

.hero-tabs {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(11, 31, 58, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-tabs .container { display: grid; grid-template-columns: repeat(6, 1fr); }
.hero-tab {
  position: relative;
  padding: 22px 12px 20px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .6);
  font: 600 13px/1.3 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: color .3s;
}
.hero-tab:hover, .hero-tab.is-active { color: #fff; }
.hero-tab::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 12px;
  height: 3px;
  background: rgba(255, 255, 255, .15);
}
.hero-tab .bar {
  position: absolute;
  top: -1px; left: 0;
  height: 3px;
  width: 0;
  max-width: calc(100% - 12px);
  background: var(--orange-500);
}
.hero-tab.is-active .bar { animation: progress var(--slide-time, 6s) linear forwards; }
.hero.paused .hero-tab.is-active .bar { animation-play-state: paused; }
@keyframes progress { to { width: calc(100% - 12px); } }

.hero-arrows {
  position: absolute;
  right: 24px;
  bottom: 96px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-arrows button {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s, border-color .25s;
}
.hero-arrows button:hover { background: var(--orange-500); border-color: var(--orange-500); }
.hero-arrows svg { width: 20px; height: 20px; }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--surface-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { margin-top: 14px; font-size: 17px; }

/* ---------- Tarjetas de valores ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 4px; width: 0;
  background: linear-gradient(90deg, var(--orange-500), var(--navy-600));
  transition: width .5s var(--ease);
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { width: 100%; }
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--orange-100);
  color: var(--orange-500);
  margin-bottom: 26px;
  transition: background .35s, color .35s;
}
.feature:hover .feature-icon { background: var(--navy-900); color: #fff; }
.feature-icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 22px; margin-bottom: 14px; }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 64px;
  color: #fff;
  background: var(--navy-900);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
}
.cta-band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .22;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(11, 31, 58, .95) 30%, rgba(29, 74, 138, .65));
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .8); font-size: 17px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Galerías (clientes / productos) ---------- */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.client-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}
.client-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .6s;
  filter: saturate(.9);
}
.client-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11, 31, 58, .55), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
}
.client-card:hover img { transform: scale(1.08); filter: saturate(1.1); }
.client-card:hover::after { opacity: 1; }

.center-action { text-align: center; margin-top: 48px; }

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-alt);
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.08); }
.product-zoom {
  position: absolute;
  right: 14px; top: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-900);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .3s var(--ease);
}
.product-zoom svg { width: 20px; height: 20px; }
.product-card:hover .product-zoom { opacity: 1; transform: none; }
.product-body {
  padding: 20px 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-body h2 { font-size: 18px; font-weight: 700; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8f7ee;
  color: #157a42;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Modal de producto ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 31, 58, .75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-dialog {
  position: relative;
  width: min(820px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.96);
  transition: transform .4s var(--ease);
}
.modal.is-open .modal-dialog { transform: none; }
.modal-dialog img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.modal-dialog h2 { padding: 24px 28px; font-size: 26px; text-align: center; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 1;
}
.modal-close svg { width: 20px; height: 20px; }

/* ---------- Encabezado de página interna ---------- */
.page-hero {
  position: relative;
  padding: 110px 0 100px;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}
.page-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .3;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 31, 58, .96) 25%, rgba(11, 31, 58, .55));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5.5vw, 62px); }
.breadcrumb {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
}
.breadcrumb a:hover { color: var(--orange-500); }

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-media::before {
  content: "";
  position: absolute;
  left: -22px; bottom: -22px;
  width: 60%; height: 60%;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(45deg, var(--orange-500) 0 2px, transparent 2px 12px);
  opacity: .35;
  z-index: -1;
}
.about-badge {
  position: absolute;
  right: -24px; bottom: 40px;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-badge .logo-mark { width: 48px; height: 48px; }
.about-badge strong { display: block; color: var(--ink); font-size: 17px; }
.about-badge span { font-size: 13.5px; color: var(--muted); }

.values { display: grid; gap: 22px; }
.value {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
}
.value:hover { box-shadow: var(--shadow); transform: translateX(6px); border-color: transparent; }
.value .feature-icon { width: 56px; height: 56px; margin: 0; border-radius: 16px; }
.value .feature-icon svg { width: 26px; height: 26px; }
.value h3 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-700); margin-bottom: 8px; }
.value mark { background: none; color: var(--orange-500); font-weight: 700; }

/* ---------- Contacto ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  line-height: 0;
}
.map iframe { width: 100%; height: 380px; border: 0; }

.contact-intro { font-size: 17px; margin-bottom: 28px; }
.contact-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .ic {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--orange-100);
  color: var(--orange-500);
}
.contact-list .ic svg { width: 19px; height: 19px; }
.contact-list strong { color: var(--ink); }
.contact-list a:hover { color: var(--orange-500); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(29, 74, 138, .12);
}
.form-actions { grid-column: 1 / -1; }

.side-card { padding: 32px; }
.side-card + .side-card { margin-top: 24px; }
.side-card h2 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.side-card h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 48px; height: 2px;
  background: var(--orange-500);
}
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.side-list li { display: flex; gap: 12px; align-items: flex-start; }
.side-list svg { flex: none; width: 20px; height: 20px; color: var(--orange-500); margin-top: 3px; }
.side-card.dark { background: var(--navy-900); border-color: var(--navy-900); color: rgba(255, 255, 255, .85); }
.side-card.dark h2 { color: #fff; border-color: rgba(255, 255, 255, .15); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .7);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.site-footer .logo-text strong { color: #fff; }
.site-footer h3 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.footer-about p { margin-top: 20px; max-width: 340px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--orange-500); padding-left: 6px; }
.footer-contact p + p { margin-top: 14px; }
.footer-contact a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background .25s, transform .25s var(--ease);
}
.social a:hover { background: #1877f2; transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0;
  font-size: 14px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom h4 { color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.footer-bottom a { color: var(--orange-500); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-gallery { grid-template-columns: repeat(3, 1fr); }
  .about { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .nav.is-open { max-height: 420px; }
  .nav ul { flex-direction: column; padding: 12px 24px 20px; gap: 4px; }
  .nav a { border-radius: 10px; padding: 13px 16px; }

  .features { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 32px; }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .about-badge { right: 16px; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero-tabs .container { grid-template-columns: repeat(3, 1fr); }
  .hero-tab { padding: 14px 8px; font-size: 11.5px; }
  .hero-arrows { bottom: 128px; }
  .slide-content { padding-bottom: 130px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar-info span:last-child { display: none; }
  .topbar .social-mini { display: none; }
  .section { padding: 72px 0; }
  .grid-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-body { flex-direction: column; align-items: flex-start; padding: 14px; }
  .product-body h2 { font-size: 16px; }
  .slide p { font-size: 16px; }
  .hero-arrows { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .value { grid-template-columns: 1fr; }
  .about-badge { position: static; margin-top: 16px; }
  .about-media::before { display: none; }
  .page-hero { padding: 80px 0 70px; }
}

@media (max-width: 420px) {
  .grid-gallery.products { grid-template-columns: 1fr; }
  .topbar-info { gap: 14px; }
}

/* ---------- Ajustes anti-desbordamiento ---------- */
.contact-layout > *, .footer-grid > *, .about > *, .cta-band > * { min-width: 0; }
.contact-list a, .footer-contact a, .topbar a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .topbar-info a[href^="mailto"] { display: none; }
}
