/* ===================================================
   ELÁSTICOS INDUSTRIALES AYALA — STYLES v2
   Performance-first. GPU-accelerated animations only.
   =================================================== */

/* ===== TOKENS ===== */
:root {
  --ink: #0a1428;
  --ink-2: #1a2540;
  --ink-3: #364159;
  --muted: #6b7591;
  --line: #e6ebf3;
  --bg: #fafbfd;
  --bg-2: #f1f4fa;
  --white: #ffffff;

  --brand: #1e5cb8;
  --brand-d: #163f80;
  --brand-l: #3a7bd5;
  --brand-glow: rgba(30, 92, 184, 0.18);

  --accent: #ffb627;
  --accent-2: #ff8b1f;

  --wa: #25d366;
  --wa-d: #128c40;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;

  --t-fast: 180ms cubic-bezier(.2,.7,.3,1);
  --t: 320ms cubic-bezier(.2,.7,.3,1);
  --t-slow: 600ms cubic-bezier(.2,.7,.3,1);

  --shadow-sm: 0 4px 16px rgba(10, 20, 40, .06);
  --shadow-md: 0 10px 30px rgba(10, 20, 40, .08);
  --shadow-lg: 0 24px 60px rgba(10, 20, 40, .12);
  --shadow-brand: 0 18px 40px rgba(30, 92, 184, .25);
  --shadow-wa: 0 16px 40px rgba(37, 211, 102, .35);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: 0; background: 0; cursor: pointer; color: inherit; }
::selection { background: var(--brand); color: #fff; }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); letter-spacing: 0; }
p { color: var(--ink-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand);
  padding: 8px 16px;
  background: rgba(30, 92, 184, .08);
  border-radius: 100px;
  margin-bottom: 20px;
}
.eyebrow.light { background: rgba(255,255,255,.12); color: #fff; }
.eyebrow-dot {
  width: 6px; height: 6px; background: currentColor; border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  font-weight: 600; font-size: .95rem;
  border-radius: 100px;
  position: relative;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-arrow { display: inline-block; transition: transform var(--t); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: var(--shadow-wa);
}
.btn-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(37, 211, 102, .45);
}
.btn-wa-sm {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 100px;
  background: var(--wa); color: #fff;
  font-weight: 600; font-size: .9rem;
  box-shadow: 0 10px 24px rgba(37,211,102,.3);
  transition: transform var(--t), box-shadow var(--t);
}
.btn-wa-sm svg { width: 18px; height: 18px; }
.btn-wa-sm:hover { transform: translateY(-2px); }

.btn-lg { padding: 20px 36px; font-size: 1.05rem; }
.btn-lg svg { width: 22px; height: 22px; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff; color: var(--brand);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline-light {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  color: var(--brand);
  transition: opacity 500ms ease, visibility 500ms;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { width: 140px; height: 70px; }
.loader-mark path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-elastic 1.4s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes draw-elastic {
  0% { stroke-dashoffset: 300; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -300; }
}

/* ===== CURSOR GLOW (desktop only) ===== */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,92,184,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 200ms ease-out;
  will-change: transform;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow { opacity: 1; }
}

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(250, 251, 253, .85);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: padding var(--t), background var(--t), border-color var(--t);
}
.header.scrolled {
  padding: 8px 0;
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.95);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--brand); }
.logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height var(--t);
}
/* Al hacer scroll el header se compacta un poco */
.header.scrolled .logo-img { height: 62px; }

.logo-light { color: #fff; }
.logo-img-light {
  height: 90px;
  /* El logo es azul sobre transparente. En el footer (fondo oscuro)
     lo invertimos a blanco puro con filtros CSS. */
  filter: brightness(0) invert(1);
}

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 10px 16px; font-size: .92rem; font-weight: 500; color: var(--ink-3);
  border-radius: 100px;
  transition: color var(--t), background var(--t);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px; height: 2px; background: var(--brand);
  border-radius: 2px;
  transition: transform var(--t);
  transform-origin: center;
}
.nav-link:hover, .nav-link.active { color: var(--brand); }
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 8px;
  padding: 10px 18px;
  background: var(--wa); color: #fff;
  font-size: .88rem; font-weight: 600;
  border-radius: 100px;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: 0 6px 20px rgba(37,211,102,.3);
}
.nav-cta svg { width: 16px; height: 16px; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,211,102,.45); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t), opacity var(--t); transform-origin: center; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #fafbfd 0%, #eef2f9 100%);
  overflow: hidden;
}

/* ===== ELASTIC WEAVE BACKGROUND =====
   Monochrome textile texture (the look of an elastic up close).
   Color-agnostic — represents the STRUCTURE of any elastic, not a specific color. */

/* Layer 1: dense knit threads as a repeating SVG pattern.
   Subtle scaleX pulse simulates the elastic under tension. */
.weave-layer {
  position: absolute; inset: -4% -2%;
  overflow: hidden;
  transform-origin: center;
  animation: weave-breathe 7s ease-in-out infinite;
  will-change: transform;
}
.weave-threads {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><g fill='none' stroke='%231e5cb8' stroke-width='1.1' stroke-linecap='round'><path d='M0,6 Q10,1 20,6 T40,6 T60,6 T80,6'/><path d='M0,14 Q10,9 20,14 T40,14 T60,14 T80,14'/><path d='M0,22 Q10,17 20,22 T40,22 T60,22 T80,22'/><path d='M0,30 Q10,25 20,30 T40,30 T60,30 T80,30'/><path d='M0,38 Q10,33 20,38 T40,38 T60,38 T80,38'/><path d='M0,46 Q10,41 20,46 T40,46 T60,46 T80,46'/><path d='M0,54 Q10,49 20,54 T40,54 T60,54 T80,54'/><path d='M0,62 Q10,57 20,62 T40,62 T60,62 T80,62'/><path d='M0,70 Q10,65 20,70 T40,70 T60,70 T80,70'/><path d='M0,78 Q10,73 20,78 T40,78 T60,78 T80,78'/></g><g stroke='%231e5cb8' stroke-width='.6' opacity='.45'><line x1='6'  y1='0' x2='6'  y2='80' stroke-dasharray='2 5'/><line x1='26' y1='0' x2='26' y2='80' stroke-dasharray='2 5'/><line x1='46' y1='0' x2='46' y2='80' stroke-dasharray='2 5'/><line x1='66' y1='0' x2='66' y2='80' stroke-dasharray='2 5'/></g></svg>");
  background-size: 80px 80px;
  opacity: .22;
}
@keyframes weave-breathe {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(1.012); }
}

/* Layer 2: a few prominent elastic threads crossing the hero.
   These represent the actual product structure — varying weights,
   stretched across the screen, with a stitch row (pespunte). */
.hero-elastic {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: var(--brand);
  opacity: .35;
}
.hero-elastic .thread {
  transform-origin: center;
  will-change: transform;
}
.t-a { animation: thread-stretch 6s ease-in-out infinite 0s; }
.t-b { animation: thread-stretch 7s ease-in-out infinite .3s; }
.t-c { animation: thread-stretch 5.5s ease-in-out infinite .6s; }
.t-d { animation: thread-stretch 8s ease-in-out infinite .2s; }
.t-e { animation: thread-stretch 6s ease-in-out infinite .8s; }
.t-f { animation: thread-stretch 7.5s ease-in-out infinite .5s; }
@keyframes thread-stretch {
  0%, 100% { transform: scaleX(1) translateY(0); }
  50%      { transform: scaleX(1.025) translateY(-2px); }
}
.stitch {
  stroke-dashoffset: 0;
  animation: stitch-flow 14s linear infinite;
}
@keyframes stitch-flow {
  to { stroke-dashoffset: -360; }
}

/* Fade the left side so the headline stays crisp; keep texture vivid behind hero-visual */
.hero-fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 16% 50%, rgba(250,251,253,.92) 0%, rgba(250,251,253,.45) 45%, transparent 75%),
    linear-gradient(180deg, rgba(250,251,253,.6) 0%, transparent 22%, transparent 78%, rgba(238,242,249,.75) 100%);
  pointer-events: none;
}
@media (max-width: 1024px) {
  .hero-fade {
    background:
      linear-gradient(180deg, rgba(250,251,253,.88) 0%, rgba(250,251,253,.6) 40%, rgba(250,251,253,.75) 100%);
  }
  .weave-threads { opacity: .15; }
  .hero-elastic { opacity: .25; }
}

.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}
.glow-a { top: -100px; right: -100px; background: rgba(58,123,213,.35); animation: float-glow 12s ease-in-out infinite; }
.glow-b { bottom: -150px; left: -100px; background: rgba(255,182,39,.2); animation: float-glow 16s ease-in-out infinite reverse; }
@keyframes float-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}

.hero-container {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: center;
  min-height: calc(100vh - 220px);
}

.hero-title {
  display: flex; flex-direction: column;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.word-stretch {
  display: inline-block;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-l) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite, stretch-x 4s ease-in-out infinite;
  display: inline-block;
  transform-origin: center;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes stretch-x {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.05); }
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-3);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-left: 2px;
}
.stat-label { font-size: .82rem; color: var(--muted); margin-top: 8px; font-weight: 500; }

/* HERO VISUAL — fotos flotando sin marco */
.hero-visual {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 260px 200px;
  gap: 24px;
  position: relative;
}
.hero-photo {
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero-photo:hover { transform: translateY(-6px) scale(1.02); }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* PNG con transparencia real: no requiere blend-mode */
}
.hero-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.hp-1 { grid-row: 1 / span 2; grid-column: 1; }
.hp-2 { grid-row: 1; grid-column: 2; }
.hp-3 { grid-row: 2; grid-column: 2; }

/* Legacy visual-card kept for backward compat / other files */
.visual-card {
  border-radius: var(--r-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t);
  display: flex; flex-direction: column; justify-content: space-between;
  will-change: transform;
}
.visual-card:hover { transform: translateY(-6px); }
.vc-label {
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  align-self: flex-start;
}

.vc-1 {
  grid-row: 1 / span 2; grid-column: 1;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-d) 100%);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.vc-1 .vc-anim { width: 100%; flex: 1; align-self: stretch; color: rgba(255,255,255,.85); }
.vc-1 .elastic-line {
  stroke-dasharray: 300; stroke-dashoffset: 0;
  animation: elastic-stretch 3s ease-in-out infinite;
  transform-origin: center;
}
.vc-1 .elastic-line:nth-child(1) { animation-delay: 0s; }
.vc-1 .elastic-line:nth-child(2) { animation-delay: .15s; }
.vc-1 .elastic-line:nth-child(3) { animation-delay: .3s; }
.vc-1 .elastic-line:nth-child(4) { animation-delay: .45s; }
@keyframes elastic-stretch {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.08); }
}

.vc-2 {
  grid-row: 1; grid-column: 2;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.vc-bars { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.vc-bars span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transform-origin: left;
  animation: bar-grow 2.4s ease-in-out infinite;
}
.vc-bars span:nth-child(1) { width: 95%; animation-delay: 0s; }
.vc-bars span:nth-child(2) { width: 70%; animation-delay: .15s; }
.vc-bars span:nth-child(3) { width: 85%; animation-delay: .3s; }
.vc-bars span:nth-child(4) { width: 60%; animation-delay: .45s; }
.vc-bars span:nth-child(5) { width: 78%; animation-delay: .6s; }
@keyframes bar-grow {
  0%, 100% { transform: scaleX(.85); }
  50% { transform: scaleX(1); }
}

.vc-3 {
  grid-row: 2; grid-column: 2;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
}
.vc-3 .vc-label { position: absolute; top: 18px; left: 18px; color: rgba(255,255,255,.6); }
.vc-stitch { width: 100%; padding: 0 18px; }
.vc-stitch svg { width: 100%; color: var(--accent); animation: dash-flow 8s linear infinite; }
@keyframes dash-flow {
  to { stroke-dashoffset: -50; }
}

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid var(--ink-3);
  border-radius: 14px;
  display: grid; place-items: start center;
  padding-top: 6px;
  opacity: .5;
}
.scroll-hint span {
  width: 3px; height: 8px; background: var(--ink-3); border-radius: 2px;
  animation: scroll-mouse 1.8s ease-in-out infinite;
}
@keyframes scroll-mouse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0; }
}

/* ===== MARQUEE ===== */
.marquee {
  background: var(--ink);
  color: #fff;
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track ul { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.marquee-track li {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 48px;
  white-space: nowrap;
}
.marquee-track li span { color: var(--accent); font-size: 1.2rem; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ===== ABOUT ===== */
.about { padding: 120px 0; content-visibility: auto; contain-intrinsic-size: 1px 800px; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 18px; font-size: 1.05rem; color: var(--ink-3); }
.about-text strong { color: var(--ink); font-weight: 600; }

.values { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.value { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); transition: background var(--t); }
.value:hover { background: var(--bg-2); }
.value-icon {
  width: 48px; height: 48px;
  background: rgba(30,92,184,.1);
  color: var(--brand);
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform var(--t);
}
.value:hover .value-icon { transform: rotate(-8deg) scale(1.05); }
.value-icon svg { width: 22px; height: 22px; }
.value h4 { margin-bottom: 4px; font-size: 1.05rem; font-weight: 600; }
.value p { font-size: .9rem; color: var(--muted); margin: 0; }

.about-visual {
  position: relative;
  height: auto;
}

/* --- Showcase de IKIGAI: foto flotando (sin marco/caja) --- */
.about-showcase {
  position: relative;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.about-showcase img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.about-showcase:hover img { transform: scale(1.02); }
.about-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: var(--ink);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 30px rgba(10,20,40,.28);
}
.about-badge-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
}
.about-badge-lbl {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .9;
}

.about-card {
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform var(--t);
}
.about-card:hover { transform: translateY(-4px); }
.about-stat {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-d) 100%);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.big-num {
  font-family: var(--font-display); font-size: 4.5rem; font-weight: 700;
  line-height: 1; letter-spacing: -0.04em;
}
.about-stat span:last-child { font-size: .9rem; opacity: .85; }

.about-mexico {
  background: var(--ink);
  color: #fff;
  display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: flex-start;
}
.about-mexico svg { width: 40px; height: 40px; color: var(--accent); }
.about-mexico span { font-weight: 600; font-size: 1.05rem; }

.about-elastic {
  background: var(--bg-2);
  color: var(--brand);
  grid-column: 1 / span 2;
}
.about-elastic .about-svg { width: 100%; flex: 1; min-height: 80px; }
.about-elastic .elastic-line {
  animation: elastic-stretch 3s ease-in-out infinite;
  transform-origin: center;
}
.about-elastic .elastic-line:nth-child(1) { animation-delay: 0s; }
.about-elastic .elastic-line:nth-child(2) { animation-delay: .15s; }
.about-elastic .elastic-line:nth-child(3) { animation-delay: .3s; }
.about-elastic .elastic-line:nth-child(4) { animation-delay: .45s; }
.about-elastic span { font-size: .85rem; color: var(--ink-3); font-weight: 500; }

.about-cta {
  background: #fff; border: 1px solid var(--line);
  display: none;
}

/* ===== SECTION HEAD ===== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===== PRODUCTS / BENTO ===== */
.products { padding: 120px 0; background: var(--white); content-visibility: auto; contain-intrinsic-size: 1px 800px; }
.bento {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 18px;
}
/* Cinco categorías: cada card ocupa 1 columna */
.bento-c1, .bento-c2, .bento-c3, .bento-c4, .bento-c5 {
  grid-column: span 1;
}
/* Colores/temas por card */
.bento-c1 { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-d) 100%); color: #fff; box-shadow: var(--shadow-brand); }
.bento-c2 { background: var(--ink); color: #fff; }
.bento-c3 { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--ink); }
.bento-c4 { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); }
.bento-c5 { background: linear-gradient(135deg, var(--brand-l) 0%, var(--brand) 100%); color: #fff; }

/* Fix h3 en cards con fondo oscuro/azul: la regla global h3 usa --ink, hay
   que forzar blanco aquí para que sea legible sobre bg oscuro. */
.bento-c1 h3, .bento-c2 h3, .bento-c5 h3 { color: #fff; }
.bento-c3 h3, .bento-c4 h3 { color: var(--ink); }

.bento-c1 p, .bento-c2 p, .bento-c5 p { color: rgba(255,255,255,.82); }
.bento-c3 p { color: rgba(10,20,40,.78); }
.bento-c4 p { color: var(--ink-3); }  /* mejor contraste que --muted sobre bg-2 */

.bento-c3 .bento-tag,
.bento-c4 .bento-tag { background: var(--ink); color: #fff; }
.bento-item {
  position: relative;
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  cursor: pointer;
  display: flex; flex-direction: column; gap: 16px;
  will-change: transform;
}
.bento-item:hover { transform: translateY(-6px); }
.bento-tag {
  position: absolute; top: 22px; right: 22px;
  z-index: 3;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(10,20,40,.12);
}
/* En cards claros (yellow bento-c3) el override está arriba */
.bento-visual { flex: 1; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.bento-visual svg { width: 100%; max-width: 240px; height: 100%; max-height: 140px; }
.bento-body h3 { margin-bottom: 8px; }
.bento-body p { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.bento-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .9rem; color: inherit;
  transition: gap var(--t);
}
.bento-cta span { transition: transform var(--t); }
.bento-item:hover .bento-cta span { transform: translateX(4px); }

.bento-end {
  grid-column: 1 / -1;
  background: var(--ink);
  color: #fff;
  flex-direction: row; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  padding: 32px 36px;
}
.bento-end h3 { color: #fff; margin: 0; flex: 1; min-width: 240px; }
.bento-end p { color: rgba(255,255,255,.7); margin: 0; flex: 1; min-width: 240px; }

/* ===== CATALOG ===== */
.catalog {
  position: relative;
  padding: 130px 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-d) 50%, var(--ink) 100%);
  color: #fff;
  overflow: hidden;
}
.catalog-bg { position: absolute; inset: 0; pointer-events: none; }
.catalog-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.catalog-wave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }

.catalog-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 1;
}
.catalog-content h2 { color: #fff; margin-bottom: 20px; }
.catalog-content p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 32px; }
.catalog-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.catalog-preview { display: flex; justify-content: center; }
.preview-card {
  width: 100%; max-width: 380px;
  aspect-ratio: 3 / 4;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform var(--t-slow);
  position: relative;
}
.preview-card:hover { transform: rotate(0deg) translateY(-8px); }
.preview-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--brand-l), var(--accent));
}
.preview-header { display: flex; gap: 6px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.preview-header span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.preview-header span:first-child { background: #ff5f57; }
.preview-header span:nth-child(2) { background: var(--accent); }
.preview-header span:last-child { background: #28c840; }
.preview-body { padding: 32px 28px; color: var(--ink); display: flex; flex-direction: column; gap: 22px; }
.preview-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.6rem; color: var(--brand);
  letter-spacing: -0.02em;
}
.preview-svg { color: var(--brand); }
.preview-svg .elastic-line {
  animation: elastic-stretch 3s ease-in-out infinite;
  transform-origin: center;
}
.preview-svg .elastic-line:nth-child(1) { animation-delay: 0s; }
.preview-svg .elastic-line:nth-child(2) { animation-delay: .15s; }
.preview-svg .elastic-line:nth-child(3) { animation-delay: .3s; }
.preview-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.preview-lines span { display: block; height: 6px; border-radius: 3px; background: var(--bg-2); }
.preview-lines span:nth-child(1) { width: 85%; }
.preview-lines span:nth-child(2) { width: 70%; }
.preview-lines span:nth-child(3) { width: 55%; }

/* ===== CONTACT ===== */
.contact { padding: 120px 0; background: var(--bg); content-visibility: auto; contain-intrinsic-size: 1px 800px; }
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: 50px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  display: flex; flex-direction: column; gap: 8px;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-l);
  box-shadow: var(--shadow-md);
}
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(30,92,184,.1);
  color: var(--brand);
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 8px;
  transition: transform var(--t);
}
.contact-card:hover .contact-icon { transform: rotate(-6deg) scale(1.05); }
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: .92rem; color: var(--ink-3); }
.contact-card a:hover { color: var(--brand); }

.wa-card { background: var(--wa); border-color: var(--wa); color: #fff; cursor: pointer; }
.wa-card:hover { background: var(--wa-d); border-color: var(--wa-d); box-shadow: var(--shadow-wa); }
.wa-icon { background: rgba(255,255,255,.2); color: #fff; }
.wa-card h4 { color: #fff; }
.wa-card p { color: rgba(255,255,255,.85); }
.wa-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-weight: 600; font-size: .92rem; margin-top: 8px;
}
.wa-link span { transition: transform var(--t); display: inline-block; }
.wa-card:hover .wa-link span { transform: translateX(4px); }

.contact-cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-text h3 { color: #fff; margin-bottom: 6px; }
.cta-text p { color: rgba(255,255,255,.7); margin: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 80px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-text { margin-top: 18px; font-size: .92rem; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 320px; }
.footer-col h5 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .92rem; color: rgba(255,255,255,.65); transition: color var(--t); }
.footer-col ul a:hover { color: var(--accent); }
.footer-col p { font-size: .9rem; margin-bottom: 8px; color: rgba(255,255,255,.65); }
.footer-col p a:hover { color: var(--accent); }

.footer-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff;
  padding: 12px 18px; border-radius: 100px;
  font-size: .88rem; font-weight: 600;
  margin-top: 18px;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: 0 8px 20px rgba(37,211,102,.25);
}
.footer-wa svg { width: 16px; height: 16px; }
.footer-wa:hover { transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 12px;
  font-size: .84rem; color: rgba(255,255,255,.5);
  flex-wrap: wrap;
}

/* ===== FLOATING WA + SCROLL TOP ===== */
/* Botón flotante de WhatsApp — pill con icono + label "Cotizar" */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  height: 58px;
  padding: 0 22px 0 12px;
  background: var(--wa); color: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(37,211,102,.35), 0 2px 8px rgba(10,20,40,.15);
  z-index: 90;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 46px rgba(37,211,102,.5), 0 3px 10px rgba(10,20,40,.2);
}
.wa-float-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.wa-float-icon svg { width: 24px; height: 24px; }
.wa-float-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.wa-float-pulse {
  position: absolute;
  right: 12px; top: 50%;
  transform: translate(50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--wa);
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: translate(50%, -50%) scale(1); opacity: .55; }
  100% { transform: translate(50%, -50%) scale(1.9); opacity: 0; }
}

.scroll-top {
  position: fixed; bottom: 100px; right: 28px;
  width: 46px; height: 46px;
  background: var(--ink); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), visibility var(--t), transform var(--t);
  z-index: 89;
}
.scroll-top svg { width: 18px; height: 18px; }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(.2,.7,.3,1), transform 800ms cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.hero-title .line {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 900ms cubic-bezier(.2,.7,.3,1), transform 900ms cubic-bezier(.2,.7,.3,1);
}
.hero-title .line.visible { opacity: 1; transform: translateY(0); }
.hero-title .line:nth-child(1) { transition-delay: 100ms; }
.hero-title .line:nth-child(2) { transition-delay: 220ms; }
.hero-title .line:nth-child(3) { transition-delay: 340ms; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento-c4, .bento-c5 { grid-column: span 1; }
}
@media (max-width: 1024px) {
  .hero-container, .about-grid, .catalog-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { min-height: auto; padding: 130px 0 70px; }
  .hero-visual { height: 380px; grid-template-rows: 200px 160px; }
  .about-visual { height: auto; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-end { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 72px; left: 16px; right: 16px;
    background: #fff;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    transform: translateY(-150%);
    transition: transform var(--t);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .main-nav.active { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { display: block; padding: 12px 16px; border-radius: 10px; }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link.active { background: var(--bg-2); color: var(--brand); }
  .nav-cta { justify-content: center; margin: 8px 0 0; }

  .hero { padding: 110px 0 60px; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-stats .stat:last-child { grid-column: span 2; }
  .hero-visual { display: none; }
  .scroll-hint { display: none; }

  .about { padding: 80px 0; }
  .about-visual { height: auto; }
  .about-badge { padding: 12px 16px; }
  .about-badge-num { font-size: 1.8rem; }

  .products, .contact { padding: 80px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-item { grid-column: span 1 !important; }

  .catalog { padding: 90px 0; }
  .catalog-content h2 br { display: none; }
  .preview-card { transform: none; max-width: 320px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-cta { padding: 32px 24px; flex-direction: column; align-items: stretch; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .marquee-track li { font-size: 1.1rem; gap: 28px; }
  .marquee-track ul { gap: 28px; padding-right: 28px; }

  .wa-float {
    height: 50px;
    padding: 0 18px 0 10px;
    bottom: 18px; right: 16px;
    font-size: .92rem;
  }
  .wa-float-icon { width: 34px; height: 34px; }
  .wa-float-icon svg { width: 20px; height: 20px; }
  .wa-float-pulse { width: 34px; height: 34px; right: 10px; }
  .scroll-top { bottom: 84px; right: 16px; width: 42px; height: 42px; }
}

@media (max-width: 768px) {
  .logo-img { height: 58px; }
  .header.scrolled .logo-img { height: 48px; }
  .logo-img-light { height: 72px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-ctas .btn { width: 100%; }
  .btn-lg { padding: 18px 28px; font-size: 1rem; }
  .logo-img { height: 48px; }
  .header.scrolled .logo-img { height: 40px; }
}

/* =========================================================
   FOTOS DE PRODUCTO EMBEBIDAS  (hero, bento, about, catalog)
   ========================================================= */

/* --- Hero visual cards con foto --- */
.visual-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 0;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.visual-card:hover img { transform: scale(1.05); }
.visual-card .vc-label {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  align-self: flex-start;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(10,20,40,.22);
}
/* override any residual colored labels from the base .vc-3 etc. rules */
.visual-card .vc-label { color: #fff !important; }

/* --- Bento cards con foto real --- */
.bento-photo {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -6px -6px 0;
}
.bento-photo img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: contain;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.bento-item:hover .bento-photo img { transform: scale(1.05); }

/* --- Nosotros: tira de fotos --- */
.about-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  margin-bottom: 10px;
}
.about-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  transition: transform .4s ease;
}
.about-photos img:hover { transform: translateY(-4px); }

/* --- Catálogo preview: grid de fotos --- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin: 14px 0;
}
.preview-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(10,20,40,.06);
}

/* =========================================================
   USOS Y APLICACIONES
   - Carrusel infinito con ejemplos reales
   - Grid categórico debajo
   ========================================================= */
.usos {
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden;   /* seguridad para el carrusel full-width */
  content-visibility: auto;
  contain-intrinsic-size: 1px 1400px;
}

/* --- CARRUSEL infinito auto-scroll --- */
.usos-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 20px 0 60px;
  padding: 12px 0;
  /* Fade laterales para look profesional */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.usos-carousel-track {
  display: flex;
  /* SIN gap: usamos margin-right en cada slide para que el loop sea matemáticamente exacto */
  width: max-content;
  animation: usos-scroll 55s linear infinite;
  will-change: transform;
}
.usos-carousel:hover .usos-carousel-track {
  animation-play-state: paused;
}
@keyframes usos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }  /* 50% porque hay 2 sets duplicados */
}

.usos-slide {
  position: relative;
  margin: 0 24px 0 0;   /* espaciado uniforme, permite loop exacto */
  flex: 0 0 auto;
  width: 340px;
  height: 260px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20,30,60,.08);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.usos-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20,30,60,.16);
}
.usos-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.usos-slide:hover img { transform: scale(1.06); }
.usos-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(10,20,40,.55) 45%, rgba(10,20,40,.92) 100%);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  z-index: 2;
  pointer-events: none;
}

/* Responsive del carrusel */
@media (max-width: 900px) {
  .usos-slide { width: 280px; height: 220px; margin-right: 18px; }
  .usos-carousel-track { animation-duration: 48s; }
  .usos-slide figcaption { font-size: .92rem; padding: 32px 16px 14px; }
}
@media (max-width: 560px) {
  .usos-slide { width: 220px; height: 180px; margin-right: 14px; }
  .usos-carousel-track { animation-duration: 40s; }
  .usos-slide figcaption { font-size: .85rem; padding: 26px 14px 12px; }
  .usos-carousel { margin: 12px 0 40px; }
}

/* Respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .usos-carousel-track { animation: none; }
  .usos-carousel { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .usos-slide { scroll-snap-align: start; }
}

.usos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.uso-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
  box-shadow: 0 6px 20px rgba(20,30,60,.06);
}
.uso-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(20,30,60,.14);
}
.uso-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.uso-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.uso-card:hover .uso-media img { transform: scale(1.06); }
.uso-bar {
  background: var(--brand);
  color: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  transition: background .3s ease;
}
.uso-card:hover .uso-bar { background: var(--brand-d); }
.uso-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  font-size: .95rem;
  transition: transform .3s ease, background .3s ease;
}
.uso-card:hover .uso-arrow {
  transform: translateX(3px);
  background: rgba(255,255,255,.26);
}

/* Responsive */
@media (max-width: 900px) {
  .usos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .usos-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   LÍNEA COMPLETA DE PRODUCTOS  (nueva sección con fotos reales)
   ========================================================= */
.lineup {
  position: relative;
  padding: 120px 0 140px;
  background: #fff;
  overflow: hidden;
}

.lineup-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
}
.lineup-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  will-change: transform;
}
.lineup .orb-a { top: 4%;  left: -120px;  width: 320px; height: 320px; background: rgba(58,123,213,.18); }
.lineup .orb-b { top: 60%; right: -140px; width: 380px; height: 380px; background: rgba(255,182,39,.10); }
.lineup .orb-c { bottom: 4%; left: 35%;   width: 260px; height: 260px; background: rgba(30,92,184,.10); }

.lineup .container { position: relative; z-index: 1; }

.lineup-head { max-width: 780px; margin: 0 auto 72px; text-align: center; }
.lineup-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; margin-top: 14px; }
.grad-text {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-l) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lineup-head p { color: var(--muted); font-size: 1.05rem; margin-top: 18px; }

/* Grid de productos */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.prod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform .5s cubic-bezier(.2,.7,.2,1),
    box-shadow .5s ease;
  box-shadow: none;
  transform-style: preserve-3d;
  will-change: transform;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(20,30,60,.10);
}

.prod-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.prod-card:hover .prod-media img { transform: scale(1.06); }

.prod-info {
  position: relative;
  padding: 22px 24px 26px;
}
.prod-num {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--brand);
  background: rgba(30,92,184,.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.prod-info h3 {
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}
.prod-info p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
}
.prod-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  color: var(--brand);
  transition: gap .3s ease, color .3s ease;
}
.prod-cta span { transition: transform .3s ease; }
.prod-card:hover .prod-cta { gap: 12px; color: var(--brand-d); }
.prod-card:hover .prod-cta span { transform: translateX(4px); }

/* Footer de la sección */
.lineup-foot {
  margin-top: 72px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.lineup-foot p { color: var(--muted); font-size: 1rem; }
.lineup-foot p strong { color: var(--ink); }

/* --- Reveal con tilt en scroll --- */
.reveal-tilt {
  opacity: 0;
  transform: translateY(50px) rotateX(8deg);
  transform-origin: center bottom;
  transition:
    opacity .8s cubic-bezier(.2,.7,.2,1),
    transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-tilt.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Parallax hint que aplica el JS */
.parallax-y { transform: translateY(var(--parallax-y, 0px)); transition: transform .1s linear; }

/* Responsive */
@media (max-width: 1000px) {
  .lineup-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
  .lineup { padding: 90px 0 100px; }
  .lineup-head { margin-bottom: 48px; }
  .lineup-grid { grid-template-columns: 1fr; gap: 20px; }
  .prod-info { padding: 20px 20px 24px; }
  .lineup-foot { margin-top: 48px; }
}

/* =========================================================
   PREMIUM POLISH — capa final de detalles profesionales
   ========================================================= */

/* ---- Scroll progress bar (fijo arriba) ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-l) 50%, var(--accent) 100%);
  z-index: 200;
  transform-origin: left center;
  transition: width 80ms linear;
  box-shadow: 0 0 12px rgba(30,92,184,.35);
  pointer-events: none;
}

/* ---- Custom scrollbar (webkit / edge) ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-l) 0%, var(--brand) 100%);
  border-radius: 10px;
  border: 2px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-d) 100%);
}
/* Firefox */
html { scrollbar-color: var(--brand) var(--bg-2); scrollbar-width: thin; }

/* ---- Focus states accesibles (solo teclado, no clic) ---- */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ---- Hero photos: flotación suave e independiente ---- */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-photo { animation: hero-float 7s ease-in-out infinite; }
.hero-photo.hp-1 { animation-delay: 0s; }
.hero-photo.hp-2 { animation-delay: -2.3s; }
.hero-photo.hp-3 { animation-delay: -4.6s; }
/* Al hover el flotado se detiene y usa la transición manual del hover */
.hero-photo:hover { animation-play-state: paused; }

/* ---- Nav-link: underline animado también en hover ---- */
.nav-link::after {
  width: 22px;
  transform-origin: center;
}
.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ---- Botones: shimmer sutil al hover (efecto premium) ---- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 0%,
    transparent 35%,
    rgba(255,255,255,.22) 50%,
    transparent 65%,
    transparent 100%);
  transform: translateX(-120%);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  z-index: 0;
}
.btn:hover::before { transform: translateX(120%); }
.btn > * { position: relative; z-index: 1; }
/* Los btn-ghost no llevan shimmer (fondo transparente) */
.btn-ghost::before { display: none; }

/* ---- Section-head H2: acento sutil de gradiente en la última palabra ---- */
.section-head h2 { position: relative; }

/* ---- Bento items: brillo diagonal muy tenue al hover ---- */
.bento-item {
  position: relative;
  isolation: isolate;
}
.bento-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,.10) 0%,
    transparent 40%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
  z-index: 0;
}
.bento-item:hover::before { opacity: 1; }
.bento-item > * { position: relative; z-index: 1; }

/* ---- WhatsApp float button: mejor pulso ---- */
.wa-float {
  animation: wa-float-breath 3s ease-in-out infinite;
}
@keyframes wa-float-breath {
  0%, 100% { box-shadow: var(--shadow-wa), 0 0 0 0 rgba(37,211,102,.45); }
  50%      { box-shadow: var(--shadow-wa), 0 0 0 14px rgba(37,211,102,0); }
}

/* ---- Reveal más suave/spring ---- */
.reveal {
  transition: opacity .9s cubic-bezier(.19,1,.22,1),
              transform .9s cubic-bezier(.19,1,.22,1);
}

/* ---- Hero title líneas: entrada más elegante ---- */
.hero-title .line {
  transition: opacity .8s cubic-bezier(.19,1,.22,1),
              transform 1s cubic-bezier(.19,1,.22,1);
}

/* ---- Product cards en línea completa: subtle border-hover ---- */
.prod-card {
  border: 1px solid transparent;
}
.prod-card:hover {
  border-color: rgba(30,92,184,.15);
}

/* ---- Contact cards: refined hover ---- */
.contact-card {
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-l) 50%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.contact-card:hover::after { transform: scaleX(1); }

/* ---- Marquee items: subtle color shift on hover ---- */
.marquee-track li {
  transition: color .3s ease;
}
.marquee:hover .marquee-track li { color: rgba(255,255,255,.85); }

/* ---- Selection color refinado ---- */
::selection { background: var(--brand); color: #fff; text-shadow: none; }
::-moz-selection { background: var(--brand); color: #fff; text-shadow: none; }

/* ---- Loader: refinado ---- */
.loader-mark {
  filter: drop-shadow(0 4px 12px rgba(30,92,184,.25));
}

/* ---- Smooth transitions entre secciones ---- */
section { isolation: isolate; }

/* =========================================================
   MOBILE OPTIMIZATIONS — scroll horizontal en secciones de producto
   Reduce el scroll vertical enorme convertiendo los grids en
   carruseles horizontales con snap.
   ========================================================= */
@media (max-width: 768px) {
  /* Padding vertical de secciones más compacto */
  .hero          { padding: 100px 0 40px; }
  .about         { padding: 60px 0; }
  .products      { padding: 60px 0; }
  .usos          { padding: 60px 0; }
  .lineup        { padding: 60px 0; }
  .catalog       { padding: 70px 0; }
  .contact       { padding: 60px 0; }

  .section-head { margin-bottom: 32px; }
  .about-grid { gap: 40px; }

  /* --- Común a los 3 scrollers horizontales --- */
  .bento,
  .usos-grid,
  .lineup-grid {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px !important;
    padding: 6px 20px 30px 20px;
    margin: 0 -18px;   /* extiende al borde del viewport rompiendo el container */
    scrollbar-width: none;
    scroll-padding-left: 20px;
  }
  .bento::-webkit-scrollbar,
  .usos-grid::-webkit-scrollbar,
  .lineup-grid::-webkit-scrollbar { display: none; }

  /* Cada tarjeta ocupa ~85% del viewport, dejando peek de la siguiente */
  .bento-item,
  .uso-card,
  .prod-card {
    flex: 0 0 82vw;
    max-width: 340px;
    scroll-snap-align: start;
    grid-column: auto !important;   /* anula cualquier grid-column heredado */
  }
  .bento-end { flex: 0 0 92vw; max-width: 380px; }

  /* Scroll hint textual debajo de cada grid */
  .bento-hint,
  .usos-hint,
  .lineup-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: .8;
  }
  .bento-hint svg,
  .usos-hint svg,
  .lineup-hint svg {
    width: 16px; height: 16px;
    animation: swipe-hint 1.8s ease-in-out infinite;
  }
  @keyframes swipe-hint {
    0%, 100% { transform: translateX(0); opacity: .6; }
    50%      { transform: translateX(6px); opacity: 1; }
  }

  /* Alturas y padding internos ajustados para carrusel horizontal */
  .bento-item { min-height: 320px; padding: 22px; }
  .bento-end  { flex-direction: column; align-items: flex-start; padding: 26px; text-align: left; min-height: auto; }
  .bento-end h3, .bento-end p { flex: initial; min-width: 0; }

  .prod-card { border-radius: var(--r-lg); }
  .prod-media { aspect-ratio: 1 / 1; }
  .prod-info { padding: 18px 20px 22px; }

  .uso-card { min-height: auto; }
  .uso-media { aspect-ratio: 4 / 3; }

  /* Bento-end no debe alcanzar tamaño gigantesco cuando queda solo al final */
  .bento-end .btn-wa-sm { margin-top: 8px; }
}

/* Ocultar hints en desktop */
@media (min-width: 769px) {
  .bento-hint, .usos-hint, .lineup-hint { display: none; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-tilt { opacity: 1; transform: none; }
  .parallax-y { transform: none !important; }
  .hero-title .line { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
  .hero-photo { animation: none; }
  .wa-float { animation: none; }
}
