
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #ffffff; color: #0c1428; -webkit-font-smoothing: antialiased; }

/* ============ Tipografía / utilitarios ============ */
.font-display { font-family: 'Barlow Condensed', sans-serif; }
.display-hero {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 0.85;
}
.display-section {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.92;
}
.thin-italic { font-weight: 200; font-style: italic; letter-spacing: -0.01em; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}
.num-display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ============ Reveal animations ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.in > *      { opacity: 1; transform: none; }
.reveal-stagger.in > * { opacity: 1; transform: none; }

/* ============ Hero atmosphere ============ */
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image:
    linear-gradient(to right, #fff 1px, transparent 1px),
    linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 80px 80px;
}
.blob {
  position: absolute; border-radius: 999px; filter: blur(70px); pointer-events: none; mix-blend-mode: screen;
  animation: float 16s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}

/* ============ Marquee ============ */
.marquee { display: flex; overflow: hidden; }
.marquee-track {
  display: flex; gap: 4rem; flex-shrink: 0; min-width: 100%;
  animation: scroll 38s linear infinite;
}
.marquee-track-rev {
  display: flex; gap: 4rem; flex-shrink: 0; min-width: 100%;
  animation: scroll-rev 38s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@keyframes scroll-rev {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* Marquee pill — colored dot + text */
.marquee-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #f4f1ea;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot, #f3b41c);
  flex-shrink: 0;
}

/* Marquee pill outline — icon + text */
.marquee-pill-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(244,241,234,0.65);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============ Category cards ============ */
.cat-card {
  position: relative; overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.cat-card:hover { transform: translateY(-6px); }
.cat-arrow {
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.cat-card:hover .cat-arrow { transform: translate(8px, -8px) rotate(-12deg); }
.cat-bar { transition: width .6s cubic-bezier(.2,.7,.2,1); }
.cat-card:hover .cat-bar { width: 100%; }

/* ============ Sector ticker (vertical pills) ============ */
.pill {
  transition: all .35s ease;
}
.pill:hover {
  background: #1d2b4d; color: #ffffff; transform: translateX(6px);
}

/* ============ Process / how to order steps ============ */
.step-line {
  background-image: linear-gradient(to right, rgba(29,43,77,.25) 50%, transparent 50%);
  background-size: 14px 1px; background-repeat: repeat-x;
}

/* ============ WhatsApp floating button ============ */
.wa-pulse {
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 22px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ Service cards (hero bottom row) ============ */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 28px rgba(0,0,0,0.08);
  text-decoration: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 20px 48px rgba(0,0,0,0.13);
}
.service-card-art {
  width: calc(100% + 48px);
  margin: -28px -24px 20px;
  height: 130px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  position: relative;
}
.service-card-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.service-card-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-style: italic;
  font-size: 11px; letter-spacing: .15em;
  color: rgba(29,43,77,0.22);
  margin-bottom: 6px;
}
.service-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: #1d2b4d;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.service-card-desc {
  font-size: 13px;
  color: rgba(13,22,48,0.58);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #1a6694);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ============ Hero: floating card gentle bob ============ */
@keyframes card-bob {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
.hero-float-card {
  animation: card-bob 5s ease-in-out infinite;
}

/* ============ Hero: circular illustration spin-in ============ */
@keyframes fade-scale-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-circle {
  animation: fade-scale-in 1s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .3s;
}

/* ============ Nav ============ */
.nav-scrolled {
  box-shadow: 0 2px 20px rgba(29,43,77,.10);
}
.nav-link {
  position: relative; display: inline-block;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Mobile drawer */
.menu-drawer { transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.menu-drawer.open { transform: translateX(0); }

/* Decorative paint splatter for hero */
.splat {
  position: absolute; pointer-events: none; opacity: .9;
  animation: drift 14s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0,0) rotate(0); }
  50%      { transform: translate(10px,-14px) rotate(8deg); }
}

/* Brand wordmark in hero */
.wordmark-vert {
  writing-mode: vertical-rl; transform: rotate(180deg);
  letter-spacing: 0.35em; font-weight: 700;
}

/* Brands grid */
.brand-tile {
  transition: all .3s ease;
  filter: grayscale(1);
  opacity: .55;
}
.brand-tile:hover { filter: grayscale(0); opacity: 1; transform: scale(1.04); }

/* Big footer brand */
.footer-watermark {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-style: italic;
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: .8; letter-spacing: -0.06em;
  background: linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.09);
}

/* Marquee sobre fondo claro */
.marquee-section-light .marquee-pill {
  background: rgba(29,43,77,0.07);
  border-color: rgba(29,43,77,0.14);
  color: #1d2b4d;
}
.marquee-section-light .marquee-pill-outline {
  border-color: rgba(29,43,77,0.20);
  color: rgba(12,20,40,0.65);
}

/* Selection */
::selection { background: #1d2b4d; color: #f4f1ea; }

/* FIX: evitar que el hero de páginas internas herede la clase decorativa global */
.electrico-page .hero-grid,
.empaque-page .hero-grid,
.oficina-page .hero-grid {
  opacity: 1;
  pointer-events: auto;
  background-image: none;
  inset: auto;
}