/* ==========================================================================
   KRONE — "SEÑALÉTICA DE SEGURIDAD CERTIFICADA" · Redesign 2026
   Palette derived from civil-protection wayfinding:
   verde fotoluminiscente (salida/OK) · rojo fuego (equipo) · ámbar (precaución)
   ========================================================================== */

:root {
  /* base */
  --ink:        #0A0E14;
  --ink-2:      #0E141D;
  --panel:      #121A24;
  --panel-2:    #16202C;
  --line:       rgba(255,255,255,0.09);
  --line-soft:  rgba(255,255,255,0.05);

  /* signal system */
  --signal:     #25E17F;   /* photoluminescent exit green */
  --signal-dim: #15A85B;
  --fire:       #FF3B30;    /* extinguisher / danger red */
  --fire-dim:   #C42920;
  --caution:    #FFB627;    /* hazard amber */
  --blue:       #4DA3FF;

  /* text */
  --fg:         #EAF0F4;
  --fg-soft:    #A7B4C0;
  --fg-mute:    #6A7885;

  /* light-surface section (proceso) */
  --soft-bg:    #10161F;

  --radius:     14px;
  --radius-lg:  22px;
  --maxw:       1200px;

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --trans:      0.45s var(--ease);

  --f-display:  'Archivo', system-ui, sans-serif;
  --f-body:     'Inter', system-ui, sans-serif;
  --f-mono:     'JetBrains Mono', ui-monospace, monospace;
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip (NOT hidden) contains the reveal-slide overshoot without
   turning overflow-y into a scroll container — so position:sticky keeps working */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--fg);
  width: 100%;
  max-width: 100%;
  /* NOTE: no overflow-x:hidden here — it implicitly sets overflow-y:auto and
     breaks position:sticky (used by the assembly diagram). Horizontal overflow
     is prevented at the source instead (off-canvas menu, contained marquee). */
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--signal); color: var(--ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* blueprint grid backdrop applied to whole body */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 40%, transparent 100%);
}

/* ── shared type devices ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 22px;
}
.eyebrow-mark { color: var(--signal); font-size: 0.7rem; animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }

.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.signal   { color: var(--signal); }
.fire-txt { color: var(--fire); }

.section { position: relative; z-index: 1; padding: 128px 0; }
.section-ink  { background: var(--ink-2); }
.section-soft { background: var(--soft-bg); }
.section-head { max-width: 640px; margin: 0 auto 76px; text-align: center; }
.section-sub { margin-top: 20px; color: var(--fg-soft); font-size: 1.05rem; }

/* hazard stripe motif — the recurring safety divider */
.hazard-strip {
  height: 10px;
  background-image: repeating-linear-gradient(-45deg,
    var(--caution) 0, var(--caution) 16px,
    var(--ink) 16px, var(--ink) 32px);
  opacity: 0.9;
}
.section-ink .hazard-strip,
.cta-band .hazard-strip { background-image: repeating-linear-gradient(-45deg,
    var(--caution) 0, var(--caution) 16px,
    #0b0f16 16px, #0b0f16 32px); }
.hazard-strip.top { position: absolute; top: 0; left: 0; right: 0; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-mono);
  font-weight: 500; font-size: 0.82rem; letter-spacing: 0.5px;
  padding: 15px 28px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), border-color var(--trans);
  white-space: nowrap;
}
.btn-signal {
  background: var(--signal); color: #052012; border-color: var(--signal);
  box-shadow: 0 0 0 rgba(37,225,127,0);
}
.btn-signal:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37,225,127,0.28), 0 0 24px rgba(37,225,127,0.2);
}
.btn-line {
  background: rgba(255,255,255,0.03); color: var(--fg);
  border-color: var(--line); backdrop-filter: blur(6px);
}
.btn-line:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-3px); }
.btn-nav { padding: 11px 20px; }
.btn-ink { background: var(--ink); color: var(--fg); border-color: var(--ink); }
.btn-ink:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.3); }
.btn-line-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-line-dark:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.btn-full { width: 100%; }

/* ==========================================================================
   PAGE-LOAD CURTAIN
   ========================================================================== */
.curtain {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s var(--ease);
}
.curtain.done { transform: translateY(-100%); pointer-events: none; }
.curtain-mark { display: flex; align-items: center; gap: 16px; font-family: var(--f-mono); }
.curtain-code { color: var(--signal); font-weight: 700; font-size: 1.1rem; letter-spacing: 2px; }
.curtain-line {
  width: 0; height: 2px; background: var(--signal);
  animation: growline 0.85s var(--ease) forwards;
}
@keyframes growline { to { width: 120px; } }
.curtain-label { color: var(--fg-mute); font-size: 0.74rem; letter-spacing: 1px; text-transform: uppercase; }

/* ==========================================================================
   WAYFINDING SPINE (signature nav)
   ========================================================================== */
.spine {
  position: fixed; top: 50%; left: 26px; transform: translateY(-50%);
  z-index: 900;
  display: flex; flex-direction: column; gap: 18px;
  opacity: 0; transition: opacity 0.6s ease;
}
.spine.ready { opacity: 1; }
.spine-title {
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 3px;
  color: var(--fg-mute); writing-mode: vertical-rl; text-orientation: mixed;
  margin: 0 auto 4px;
}
.spine-list { display: flex; flex-direction: column; gap: 4px; }
.spine-node {
  display: flex; align-items: center; gap: 12px;
  padding: 5px 0;
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 1px;
  color: var(--fg-mute);
  position: relative;
}
.spine-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--fg-mute);
  position: relative; flex-shrink: 0;
  transition: all var(--trans);
}
.spine-node::before { /* connecting line */
  content: ''; position: absolute; left: 4.5px; top: -14px;
  width: 1px; height: 14px; background: var(--line);
}
.spine-node:first-child::before { display: none; }
.spine-name {
  opacity: 0; transform: translateX(-6px);
  transition: all var(--trans);
  white-space: nowrap;
}
.spine-node:hover .spine-name { opacity: 1; transform: translateX(0); color: var(--fg-soft); }
.spine-node.is-active .spine-dot {
  border-color: var(--signal); background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
}
.spine-node.is-active .spine-name { opacity: 1; transform: translateX(0); color: var(--signal); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: background var(--trans), padding var(--trans), border-color var(--trans);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10,14,20,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 44px; width: auto; transition: transform var(--trans); }
.nav-logo:hover img { transform: scale(1.04); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) {
  font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.5px;
  color: var(--fg-soft); position: relative; transition: color var(--trans);
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--signal); transition: width var(--trans);
}
.nav-links a:not(.btn):hover { color: var(--fg); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger span { width: 26px; height: 2.5px; background: var(--fg); border-radius: 2px; transition: all var(--trans); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); background: var(--signal); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); background: var(--signal); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 130px 0 90px; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: -10% 0;
  background-image:
    linear-gradient(rgba(37,225,127,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,225,127,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000, transparent 75%);
}
.hero-photo {
  position: absolute; inset: -12% 0;
  background: url('https://i0.wp.com/krone.mx/wp-content/uploads/2023/03/img54.jpg?ssl=1') center/cover no-repeat;
  filter: grayscale(0.4) brightness(0.4) contrast(1.05);
  opacity: 0.35;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--ink) 32%, rgba(10,14,20,0.72) 60%, rgba(10,14,20,0.4) 100%),
    linear-gradient(to top, var(--ink), transparent 30%);
}
.hero-glow {
  position: absolute; top: 12%; right: 6%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,225,127,0.18), transparent 62%);
  filter: blur(20px);
  animation: floatglow 9s ease-in-out infinite;
}
@keyframes floatglow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 60px; align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 26px;
  overflow-wrap: break-word;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--fg-soft); max-width: 540px; margin-bottom: 38px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { position: relative; padding-left: 16px; }
.stat::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 22px; width: 2px; background: var(--signal); opacity: 0.6; }
.stat-num { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; color: var(--fg); letter-spacing: -0.02em; }
.stat-unit { font-family: var(--f-mono); font-size: 1rem; color: var(--signal); margin-left: 4px; }
.stat-label { display: block; font-size: 0.78rem; color: var(--fg-mute); margin-top: 4px; letter-spacing: 0.3px; }

/* signature dictamen card */
.dictamen {
  background: linear-gradient(160deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.dictamen::before { /* top accent hazard hint */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--signal), transparent);
}
.dictamen-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.dictamen-kicker { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-mute); }
.dictamen-title { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--fg); margin-top: 4px; }
.dictamen-seal {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,225,127,0.12); color: var(--signal); font-size: 1.15rem;
  border: 1px solid rgba(37,225,127,0.25);
}
.dictamen-list { display: flex; flex-direction: column; gap: 2px; }
.dictamen-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem; color: var(--fg-soft);
  opacity: 0; transform: translateX(-8px);
}
.dictamen-item.on { opacity: 1; transform: translateX(0); transition: all 0.5s var(--ease); color: var(--fg); }
.dictamen-item i {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,225,127,0.14); color: var(--signal); font-size: 0.68rem;
}
.dictamen-item b {
  margin-left: auto; font-family: var(--f-mono); font-size: 0.68rem; font-weight: 500;
  color: var(--signal); letter-spacing: 1px;
}
.dictamen-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.dictamen-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--signal); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(37,225,127,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,225,127,0.5); } 70% { box-shadow: 0 0 0 10px rgba(37,225,127,0); } 100% { box-shadow: 0 0 0 0 rgba(37,225,127,0); } }
.dictamen-ref { font-family: var(--f-mono); font-size: 0.66rem; color: var(--fg-mute); letter-spacing: 1px; }

.hero .hazard-strip { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; height: 8px; opacity: 0.8; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--fg-mute); transition: color var(--trans);
}
.hero-scroll:hover { color: var(--signal); }
.hero-scroll i { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* hero visual — real extinguisher photo */
.hero-visual { position: relative; }
.hero-visual::before { content: ''; position: absolute; inset: -12%; z-index: 0; background: radial-gradient(circle at 62% 40%, rgba(37,225,127,0.20), transparent 60%); filter: blur(34px); }
.hero-photo-card { position: relative; z-index: 1; aspect-ratio: 4/4.6; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 34px 72px rgba(0,0,0,0.6); }
.hero-photo-card img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.hero-photo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,14,20,0.72), transparent 44%); }
.hero-photo-tag {
  position: absolute; z-index: 2; bottom: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--fg);
  background: rgba(10,14,20,0.55); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 100px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-photo-tag i { color: var(--signal); }
.hero-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.3px;
  padding: 9px 15px; border-radius: 100px;
  background: rgba(18,26,36,0.9); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5); white-space: nowrap;
}
.hero-chip i { color: var(--signal); }
.hero-chip.chip-cert { top: 22px; right: 0; color: var(--signal); }
.hero-chip.chip-ok   { bottom: 62px; left: 0; color: var(--fg); }

/* ==========================================================================
   TRUST MARQUEE
   ========================================================================== */
.trust {
  position: relative; z-index: 1;
  background: var(--panel);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trust-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.trust:hover .trust-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.trust-run { display: flex; align-items: center; gap: 26px; padding-right: 26px; }
.trust-chip { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.82rem; color: var(--fg-soft); white-space: nowrap; }
.trust-chip i { color: var(--signal); }
.trust-chip .fa-google { color: var(--caution); }
.trust-sep { color: var(--fg-mute); opacity: 0.5; }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.svc-card::after { /* data tag from HTML */
  content: attr(data-tag);
  position: absolute; top: 22px; right: 24px;
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 1px;
  color: var(--fg-mute); opacity: 0.6;
}
.svc-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--signal); transform: scaleY(0); transform-origin: top; transition: transform var(--trans);
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(37,225,127,0.35); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.svc-card:hover::before { transform: scaleY(1); }
.svc-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  margin-bottom: 22px;
}
.svc-icon.fire    { background: rgba(255,59,48,0.12);  color: var(--fire);    border: 1px solid rgba(255,59,48,0.25); }
.svc-icon.signal  { background: rgba(37,225,127,0.12); color: var(--signal);  border: 1px solid rgba(37,225,127,0.25); }
.svc-icon.caution { background: rgba(255,182,39,0.12); color: var(--caution); border: 1px solid rgba(255,182,39,0.25); }
.svc-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--fg); margin-bottom: 12px; line-height: 1.3; }
.svc-card p { color: var(--fg-soft); font-size: 0.93rem; margin-bottom: 22px; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.5px; color: var(--signal); transition: gap var(--trans); }
.svc-link:hover { gap: 14px; }

/* ==========================================================================
   EQUIPOS
   ========================================================================== */
.eq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.eq-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.eq-card:hover { transform: translateY(-8px); border-color: rgba(255,59,48,0.4); box-shadow: 0 28px 56px rgba(0,0,0,0.5); }
.eq-flag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(255,59,48,0.16); color: #ff8b84; border: 1px solid rgba(255,59,48,0.3);
}
.eq-flag.blue  { background: rgba(77,163,255,0.16); color: #a9d0ff; border-color: rgba(77,163,255,0.3); }
.eq-flag.green { background: rgba(37,225,127,0.16); color: #86f2ba; border-color: rgba(37,225,127,0.3); }
.eq-media {
  position: relative; height: 250px;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.05), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--ink));
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.eq-class {
  position: absolute; bottom: 14px; right: 16px;
  font-family: var(--f-display); font-weight: 900; font-size: 2rem;
  color: rgba(255,255,255,0.05); letter-spacing: -0.03em;
}
.eq-media img { height: 180px; width: auto; object-fit: contain; transition: transform 0.6s var(--ease); filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); }
.eq-card:hover .eq-media img { transform: translateY(-6px) scale(1.04); }
.eq-body { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.eq-body h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--fg); margin-bottom: 10px; }
.eq-body p { color: var(--fg-soft); font-size: 0.9rem; margin-bottom: 20px; }
.eq-feats { margin-bottom: 26px; display: flex; flex-direction: column; gap: 9px; flex-grow: 1; }
.eq-feats li { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--fg-soft); }
.eq-feats i { color: var(--signal); font-size: 0.78rem; }

/* ==========================================================================
   ANATOMÍA / SCROLL-ASSEMBLY DIAGRAM
   ========================================================================== */
.asm { position: relative; z-index: 1; background: var(--ink-2); }
.asm-inner { height: 280vh; }                 /* scroll runway */
.asm-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.asm-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; width: 100%; align-items: center; }

.asm-figure { position: relative; }
.asm-figure svg { width: 100%; max-width: 340px; margin: 0 auto; display: block; overflow: visible; }
.asm-code {
  position: absolute; top: 0; left: 0;
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 1px; color: var(--fg-mute);
  border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,0.02);
}
.asm-ghost { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 5 7; }

.part { opacity: 0; transition: transform 0.75s var(--ease), opacity 0.6s var(--ease); }
.part.on { opacity: 1; transform: translate(0, 0) !important; }
.p-body   { transform: translateY(38px); }
.p-base   { transform: translateY(130px); }
.p-neck   { transform: translateY(-64px); }
.p-valve  { transform: translateY(-150px); }
.p-handle { transform: translate(6px, -200px); }
.p-gauge  { transform: translate(150px, -34px); }
.p-hose   { transform: translate(-180px, 14px); }
.p-pin    { transform: translate(120px, -30px); }
.p-label  { transform: translateY(0); }        /* fade only */

.asm-hud { margin-top: 26px; max-width: 340px; margin-inline: auto; }
.asm-hud-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.asm-cap { font-size: 0.86rem; color: var(--fg); font-weight: 600; }
.asm-pct-wrap { font-family: var(--f-mono); font-size: 0.72rem; color: var(--fg-mute); white-space: nowrap; }
.asm-pct { color: var(--signal); font-size: 1rem; font-weight: 700; }
.asm-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.asm-bar { display: block; height: 100%; width: 0; background: var(--signal); box-shadow: 0 0 12px var(--signal); transition: width 0.2s linear; }

.asm-lead { color: var(--fg-soft); font-size: 1.05rem; margin: 22px 0 30px; }
.asm-specs { display: flex; flex-direction: column; gap: 12px; }
.asm-spec {
  display: flex; align-items: center; gap: 13px;
  font-size: 0.95rem; color: var(--fg-mute);
  padding: 11px 15px; border: 1px solid var(--line-soft); border-radius: 12px;
  background: rgba(255,255,255,0.01);
  transition: color var(--trans), border-color var(--trans), background var(--trans);
}
.asm-spec i {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
  background: rgba(255,255,255,0.05); color: var(--fg-mute);
  transition: all var(--trans);
}
.asm-spec.on { color: var(--fg); border-color: rgba(37,225,127,0.28); background: rgba(37,225,127,0.04); }
.asm-spec.on i { background: rgba(37,225,127,0.16); color: var(--signal); }

/* ==========================================================================
   NOSOTROS
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.why-visual { position: relative; }
/* clipped frame + slightly oversized image so parallax stays contained (no gap, no bleed) */
.why-frame { position: relative; aspect-ratio: 4/4.4; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.why-frame img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.why-seal {
  position: absolute; bottom: -18px; right: -18px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.why-seal img { width: 40px; height: 40px; object-fit: contain; border: none; border-radius: 0; }
.why-seal span { font-size: 0.8rem; font-weight: 700; color: var(--fg); line-height: 1.3; }
.why-code {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 1px;
  color: var(--signal); background: rgba(10,14,20,0.6); padding: 5px 10px; border-radius: 6px;
  border: 1px solid var(--line); backdrop-filter: blur(4px);
}
.why-lead { color: var(--fg-soft); font-size: 1.05rem; margin: 22px 0 34px; }
.why-items { display: flex; flex-direction: column; gap: 24px; margin-bottom: 38px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  background: rgba(37,225,127,0.1); color: var(--signal); border: 1px solid rgba(37,225,127,0.22);
}
.why-item strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--fg); margin-bottom: 4px; }
.why-item p { font-size: 0.9rem; color: var(--fg-soft); }

/* ==========================================================================
   PROCESO (genuine sequence → numbered is justified)
   ========================================================================== */
.proc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.proc-steps::before { /* connecting rail */
  content: ''; position: absolute; top: 38px; left: 6%; right: 6%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.proc-step { padding: 0 22px; text-align: center; position: relative; }
.proc-num {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 2px;
  color: var(--fg-mute); display: block; margin-bottom: 14px;
}
.proc-ico {
  width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  background: var(--panel); color: var(--signal);
  border: 1px solid var(--line); position: relative; z-index: 1;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.proc-step:hover .proc-ico { transform: translateY(-5px); border-color: var(--signal); box-shadow: 0 0 24px rgba(37,225,127,0.25); }
.proc-step h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; color: var(--fg); margin-bottom: 10px; }
.proc-step p { font-size: 0.88rem; color: var(--fg-soft); }

/* ==========================================================================
   CLIENTES / TESTIMONIOS
   ========================================================================== */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst-card {
  background: linear-gradient(165deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.tst-card:hover { transform: translateY(-5px); border-color: rgba(255,182,39,0.35); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.tst-stars { color: var(--caution); font-size: 0.92rem; display: flex; gap: 3px; margin-bottom: 18px; }
.tst-card blockquote { color: var(--fg-soft); font-size: 0.94rem; line-height: 1.7; margin-bottom: 24px; flex-grow: 1; }
.tst-card blockquote::before { content: '“'; color: var(--signal); font-family: var(--f-display); font-size: 1.4rem; margin-right: 2px; }
.tst-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.tst-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: 0.85rem;
  background: rgba(37,225,127,0.14); color: var(--signal); border: 1px solid rgba(37,225,127,0.3);
}
.tst-meta strong { display: block; font-weight: 700; font-size: 0.9rem; color: var(--fg); }
.tst-meta span { font-size: 0.78rem; color: var(--fg-mute); }
.tst-google { width: 20px; height: 20px; margin-left: auto; object-fit: contain; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative; z-index: 1;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,59,48,0.18), transparent 55%),
    linear-gradient(120deg, #1a0a0a, var(--ink));
  padding: 96px 0; overflow: hidden;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.cta-alert {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--caution); margin-bottom: 18px;
}
.cta-text h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; color: var(--fg); max-width: 620px; letter-spacing: -0.02em; }
.cta-text p { color: var(--fg-soft); margin-top: 16px; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-ink { background: var(--fire); border-color: var(--fire); color: #fff; }
.cta-band .btn-ink:hover { background: var(--fire-dim); box-shadow: 0 12px 30px rgba(255,59,48,0.35); }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-lead { color: var(--fg-soft); margin: 20px 0 34px; font-size: 1.05rem; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--trans), background var(--trans); }
.contact-item:hover { border-color: rgba(37,225,127,0.35); background: rgba(37,225,127,0.03); }
.contact-ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; background: rgba(255,59,48,0.12); color: var(--fire); border: 1px solid rgba(255,59,48,0.25); }
.contact-ico.green { background: rgba(37,225,127,0.12); color: var(--signal); border-color: rgba(37,225,127,0.25); }
.contact-ico.blue  { background: rgba(77,163,255,0.12); color: var(--blue); border-color: rgba(77,163,255,0.25); }
.contact-item strong { display: block; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 3px; }
.contact-item > span > span { font-size: 1rem; color: var(--fg); font-weight: 600; }

.contact-form { background: linear-gradient(165deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.5px; text-transform: uppercase; color: var(--fg-mute); }
.form-group input, .form-group select, .form-group textarea {
  padding: 14px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--f-body); font-size: 0.94rem; color: var(--fg);
  background: rgba(255,255,255,0.02); outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--fg-mute); }
.form-group select { color: var(--fg); }
.form-group select option { background: var(--panel); color: var(--fg); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(37,225,127,0.1); }
.form-group textarea { resize: vertical; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 0.78rem; color: var(--fg-mute); margin-top: 2px; }
.form-note i { color: var(--signal); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; z-index: 1; background: var(--ink-2); border-top: 1px solid var(--line); padding: 76px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 52px; border-bottom: 1px solid var(--line); }
.footer-logo { height: 42px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; color: var(--fg-soft); max-width: 300px; }
.footer-social { display: inline-flex; margin-top: 22px; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); color: var(--fg-soft); border: 1px solid var(--line); font-size: 1.1rem; transition: all var(--trans); }
.footer-social:hover { background: var(--signal); color: var(--ink); border-color: var(--signal); transform: translateY(-3px); }
.footer-col h4 { font-family: var(--f-mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg); margin-bottom: 22px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.9rem; color: var(--fg-soft); transition: color var(--trans); }
.footer-col a:hover { color: var(--signal); }
.footer-contact { font-size: 0.9rem; color: var(--fg-soft); display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.footer-contact i { color: var(--signal); width: 16px; }
.footer-bottom { padding: 24px 0; }
.footer-bottom p { font-size: 0.8rem; color: var(--fg-mute); text-align: center; }

/* ==========================================================================
   FLOATING
   ========================================================================== */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 950;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(37,211,102,0.45);
  transition: transform var(--trans), box-shadow var(--trans);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 12px 34px rgba(37,211,102,0.55); }
.wa-tip { position: absolute; right: 72px; white-space: nowrap; background: var(--panel); color: var(--fg); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 0.74rem; padding: 8px 13px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity var(--trans); }
.wa-float:hover .wa-tip { opacity: 1; }
.back-top {
  position: fixed; bottom: 96px; right: 30px; z-index: 949;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--panel); color: var(--fg); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; pointer-events: none; transition: all var(--trans);
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--signal); color: var(--ink); border-color: var(--signal); transform: translateY(-3px); }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: transform, opacity; }
.reveal       { transform: translateY(38px); }
.reveal-left  { transform: translateX(-42px); }
.reveal-right { transform: translateX(42px); }
.reveal.in, .reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.svc-grid .reveal:nth-child(2), .eq-grid .reveal:nth-child(2), .tst-grid .reveal:nth-child(2), .proc-step:nth-child(2) { transition-delay: 0.08s; }
.svc-grid .reveal:nth-child(3), .eq-grid .reveal:nth-child(3), .tst-grid .reveal:nth-child(3), .proc-step:nth-child(3) { transition-delay: 0.16s; }
.svc-grid .reveal:nth-child(4), .proc-step:nth-child(4) { transition-delay: 0.24s; }
.svc-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.svc-grid .reveal:nth-child(6) { transition-delay: 0.40s; }

/* hero line reveal */
.reveal-lines .line > span { transform: translateY(105%); transition: transform 0.9s var(--ease); }
.reveal-lines.play .line > span { transform: translateY(0); }
.reveal-lines.play .line:nth-child(2) > span { transition-delay: 0.09s; }
.reveal-lines.play .line:nth-child(3) > span { transition-delay: 0.18s; }
.reveal-lines.play .line:nth-child(4) > span { transition-delay: 0.27s; }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease) 0.4s, transform 0.8s var(--ease) 0.4s; }
.fade-in.play { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) { .spine { display: none; } }

@media (max-width: 1024px) {
  .section { padding: 96px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; }
  .svc-grid, .eq-grid, .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .asm-grid { grid-template-columns: 1fr; gap: 34px; }
  .asm-inner { height: 300vh; }
  .asm-figure svg { max-width: 290px; }
  .asm-copy { text-align: center; }
  .asm-hud, .asm-specs { margin-inline: auto; }
  .asm-specs { max-width: 460px; }

  .why-grid { grid-template-columns: 1fr; gap: 56px; }
  .why-visual { max-width: 520px; }
  .proc-steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .proc-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }

  .nav-links {
    position: fixed; inset: 0; width: 100%; flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(10,14,20,0.97); backdrop-filter: blur(18px);
    /* fade (no off-canvas X translate) so a closed menu can't create horizontal overflow */
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-14px) scale(0.98);
    transition: opacity 0.4s var(--ease), transform 0.45s var(--ease), visibility 0.4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-links a:not(.btn) { font-size: 1.3rem; }
  .hamburger { display: flex; }

  /* On narrow screens the horizontal reveal-slide has no side margin to absorb
     the offset, so it pushed the layout wider than the viewport (fixed header /
     WhatsApp button ended up off-screen). Slide vertically instead. */
  .reveal-left, .reveal-right { transform: translateY(38px); }
  .hero-stage { min-height: 420px; }
}

@media (max-width: 680px) {
  .section { padding: 78px 0; }
  .container { padding: 0 20px; }
  .section-head { margin-bottom: 52px; }
  .hero { padding-top: 120px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { gap: 18px 20px; width: 100%; flex-wrap: wrap; }
  .stat { flex: 1 1 84px; min-width: 84px; }
  .hero { padding-top: 104px; }
  .hero-inner { gap: 26px; }
  .hero-visual { order: -1; margin: 0; max-width: 100%; }   /* real photo first on phones */
  .hero-photo-card { aspect-ratio: 16/12; }
  .hero-chip { font-size: 0.68rem; padding: 7px 12px; }
  .stat-num { font-size: 2rem; }
  .svc-grid, .eq-grid, .tst-grid { grid-template-columns: 1fr; }
  .proc-steps { grid-template-columns: 1fr; gap: 32px; }
  .asm-inner { height: 240vh; }
  .asm-figure svg { max-width: 210px; }
  .asm-lead { display: none; }
  .asm-specs { display: none; }          /* keep the sticky stage within one screen */
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .why-seal { right: 12px; bottom: -14px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-left, .reveal-right, .fade-in { opacity: 1 !important; transform: none !important; }
  .reveal-lines .line > span { transform: none !important; }
  .dictamen-item { opacity: 1 !important; transform: none !important; }
  .part { opacity: 1 !important; transform: none !important; }
  .asm-spec { color: var(--fg) !important; }
  .curtain { display: none; }
  .trust-track { animation: none; }
}
