/* ============================================================
   REFRINOX 2026 — Sistema de diseño
   Tema claro · Textura acero inoxidable · Tipografía grande
   Eje rector: Modelo 360
   ============================================================ */

/* ---------- Fuente: Saira Variable ---------- */
@font-face {
  font-family: 'Saira';
  src: url('../assets/fonts/Saira-VariableFont_wdth,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Saira';
  src: url('../assets/fonts/Saira-Italic-VariableFont_wdth,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --azul: #1f5bf5;
  --azul-oscuro: #1240b8;
  --azul-tinta: #0c2a6e;
  --acero-900: #2c3640;
  --acero-700: #4d5a68;
  --acero-500: #7c8895;
  --acero-300: #c4ccd4;
  --acero-150: #e3e8ed;
  --acero-075: #f1f4f7;
  --blanco: #ffffff;
  --oro: #c9a227;
  --oro-claro: #f3e3b0;
  --verde-wa: #25d366;

  /* Gradientes acero */
  --grad-acero: linear-gradient(135deg, #f7f9fb 0%, #e6ebf0 38%, #f4f6f9 52%, #dde3e9 78%, #f2f5f8 100%);
  --grad-acero-deep: linear-gradient(135deg, #e9eef3 0%, #cfd7df 45%, #eef1f5 60%, #c9d2da 100%);
  --grad-azul: linear-gradient(135deg, #1f5bf5 0%, #1240b8 100%);

  /* Tipografía — escala GRANDE (directriz cliente) */
  --fs-display: clamp(2.6rem, 6.2vw, 4.8rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.4rem);
  --fs-h3: clamp(1.35rem, 2.2vw, 1.8rem);
  --fs-lead: clamp(1.15rem, 1.7vw, 1.45rem);
  --fs-body: clamp(1.05rem, 1.25vw, 1.2rem);
  --fs-small: 0.95rem;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-soft: 0 10px 40px rgba(44, 54, 64, 0.10);
  --shadow-lift: 0 22px 60px rgba(18, 64, 184, 0.16);
  --container: 1240px;
  --nav-h: 84px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: 'Saira', 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--acero-700);
  overflow-x: hidden;
  /* Flujo de color continuo controlado por JS (un solo color sólido que
     se transforma con el scroll → imposible que existan costuras/líneas) */
  background-color: #ffffff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { color: var(--acero-900); }

h1, h2, h3, h4 {
  font-family: 'Saira', sans-serif;
  color: var(--acero-900);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.container { width: min(var(--container), 92vw); margin-inline: auto; }
section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }

/* Etiqueta de sección (kicker) */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--azul);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: ''; width: 38px; height: 3px; border-radius: 2px;
  background: var(--grad-azul); display: inline-block;
}
.section-head { max-width: 880px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head .lead { font-size: var(--fs-lead); margin-top: 1rem; color: var(--acero-700); }
.center { text-align: center; }
.center .section-head, .section-head.center { margin-inline: auto; }
.center .kicker { justify-content: center; }
.center .kicker::before { display: none; }

/* Fondos — transparentes: el body aporta el flujo de color continuo */
.bg-acero, .bg-suave, .bg-tinta { background: transparent; }
.steel-sheen { position: relative; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: 'Saira', sans-serif; font-weight: 700; font-size: 1.08rem;
  padding: 1rem 2.1rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; touch-action: manipulation; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-azul); color: #fff; box-shadow: 0 12px 30px rgba(31, 91, 245, .35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(31, 91, 245, .45); }
.btn-ghost { background: rgba(255,255,255,.9); color: var(--azul-oscuro); border-color: var(--azul); }
.btn-ghost:hover { background: var(--azul); color: #fff; transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--azul-oscuro); box-shadow: var(--shadow-soft); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.btn-wa { background: var(--verde-wa); color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, .35); }
.btn-wa:hover { transform: translateY(-3px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Header / Nav (estilo wemake: cambia de color al scroll) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0); backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: height .4s cubic-bezier(.22,.61,.36,1), background .4s ease,
              backdrop-filter .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.nav.scrolled {
  height: calc(var(--nav-h) - 16px);
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(196, 204, 212, .5);
  box-shadow: 0 10px 34px rgba(12, 42, 110, .12);
}
.nav-inner { display: flex; align-items: center; gap: 1.6rem; width: min(1380px, 94vw); margin-inline: auto; }

/* Logo horizontal (imagen oficial de marca) */
.nav-logo { display: inline-flex; align-items: center; gap: .55rem; }
.nav-logo img { height: 46px; width: auto; transition: height .4s cubic-bezier(.22,.61,.36,1); opacity: 0; animation: wordIn .8s ease forwards .15s; }
.nav.scrolled .nav-logo img { height: 38px; }
.logo-mark { height: 50px; width: auto; overflow: visible; transition: height .4s cubic-bezier(.22,.61,.36,1); }
.nav.scrolled .logo-mark { height: 40px; }
.logo-mark .range { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark .r-back  { stroke: #9bbbef; stroke-width: 6.5; stroke-dasharray: 240; stroke-dashoffset: 240; animation: drawLogo 1.25s cubic-bezier(.6,0,.2,1) forwards .15s; }
.logo-mark .r-front { stroke: var(--azul); stroke-width: 8;   stroke-dasharray: 230; stroke-dashoffset: 230; animation: drawLogo 1.25s cubic-bezier(.6,0,.2,1) forwards .35s; }
.nav-logo.replay .logo-mark .r-back,
.nav-logo.replay .logo-mark .r-front { animation: none; stroke-dashoffset: 0; }
.logo-word {
  font-family: 'Saira', sans-serif; font-weight: 800; letter-spacing: .03em;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem); color: var(--acero-900);
  opacity: 0; transform: translateX(-8px);
  animation: wordIn .7s ease forwards .55s;
  transition: font-size .4s cubic-bezier(.22,.61,.36,1);
}
.nav.scrolled .logo-word { font-size: clamp(1.25rem, 2vw, 1.6rem); }
@keyframes drawLogo { to { stroke-dashoffset: 0; } }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.nav-links { display: flex; gap: clamp(.6rem, 1.6vw, 1.6rem); margin-left: auto; align-items: center; }
.nav-links a {
  font-weight: 600; font-size: 1.02rem; color: var(--acero-700);
  padding: .4rem .2rem; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0;
  border-radius: 2px; background: var(--grad-azul); transition: width .28s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--azul-oscuro); }
.nav-nsf { display: flex; align-items: center; gap: .5rem; }
.nav-nsf img { height: 44px; width: 44px; border-radius: 50%; filter: drop-shadow(0 3px 8px rgba(201,162,39,.45)); }
.nav-nsf span { font-size: .78rem; font-weight: 700; line-height: 1.15; color: var(--acero-700); max-width: 110px; }
.nav-cta { padding: .75rem 1.6rem; font-size: 1rem; }
.nav-links .nav-cta { display: none; }
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta::after { display: none; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-burger span { display: block; width: 28px; height: 3px; background: var(--acero-900); margin: 6px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 6rem; position: relative; isolation: isolate;
  overflow: hidden; /* recorta el zoom parallax del video: nunca se desborda del hero */
}
.hero-video, .hero-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  /* Video MÁS presente: velo ligero (se ve el video casi en todo el hero),
     titular legible del lado izquierdo, y solo un fundido final a blanco para
     empalmar limpio con las métricas. */
  background:
    linear-gradient(to bottom, rgba(255,255,255,0) 80%, #ffffff 100%),
    linear-gradient(100deg, rgba(247,249,251,.92) 0%, rgba(247,249,251,.58) 48%, rgba(120,160,233,.20) 100%);
}
.hero-content, .hero-scroll { position: relative; z-index: 3; }
.hero-content { max-width: 920px; }
.hero-nsf {
  display: inline-flex; align-items: center; gap: .8rem;
  background: #fff; border: 1.5px solid var(--oro-claro);
  border-radius: 999px; padding: .5rem 1.4rem .5rem .6rem;
  box-shadow: 0 10px 26px rgba(201,162,39,.22); margin-bottom: 1.8rem;
}
.hero-nsf img { height: 46px; width: 46px; border-radius: 50%; }
.hero-nsf span { font-weight: 700; color: var(--acero-900); font-size: 1.02rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em { font-style: normal; color: var(--azul); position: relative; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em;
  background: linear-gradient(90deg, var(--azul), transparent); opacity: .25; border-radius: 4px;
}
.hero-pilares {
  font-size: var(--fs-lead); font-weight: 600; color: var(--acero-900);
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-bottom: 2.4rem;
}
.hero-pilares span { display: inline-flex; align-items: center; gap: .55rem; }
.hero-pilares span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-azul); flex: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--acero-700); font-size: .85rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero-scroll::after { content: ''; width: 2px; height: 38px; background: linear-gradient(var(--azul), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(.2); transform-origin: top; } 60% { transform: scaleY(1); } 100% { opacity: 0; } }

/* ---------- Métricas (trust badges) ---------- */
.metrics { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.metrics-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.6rem 1.2rem; text-align: center;
}
.metric .num {
  font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; color: var(--azul-oscuro);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.metric .num .suf { color: var(--azul); }
.metric .label { font-weight: 600; font-size: 1rem; color: var(--acero-700); margin-top: .45rem; line-height: 1.3; }

/* ---------- Tarjetas aspiracionales ---------- */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 2.6rem 2.2rem;
  border: 1px solid var(--acero-150); box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.card .icono {
  width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center;
  background: var(--grad-acero-deep); margin-bottom: 1.5rem; border: 1px solid var(--acero-150);
}
.card .icono svg { width: 40px; height: 40px; stroke: var(--azul-oscuro); }
.card .icono.oro { background: linear-gradient(135deg, #f8efd4, #efd98e); border-color: var(--oro-claro); }
.card .icono.oro svg { stroke: var(--oro); }
.card h3 { margin-bottom: .7rem; }
.card p { font-size: 1.05rem; }

/* ---------- MODELO 360 — timeline 8 etapas ---------- */
.m360 { color: #fff; overflow: hidden; }
.m360 .kicker { color: #9db9ff; }
.m360 .kicker::before { background: #9db9ff; }
.m360 h2 { color: #fff; max-width: 980px; }
.m360 .lead { color: rgba(255,255,255,.85); }
.timeline { margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; }
.timeline-track {
  display: grid; grid-template-columns: repeat(8, minmax(210px, 1fr)); gap: 1.1rem;
  overflow-x: auto; padding: 1.4rem .2rem 1.8rem; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) transparent;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.timeline-track::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.65), rgba(255,255,255,.12));
  border-radius: 2px;
}
.etapa {
  scroll-snap-align: start; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm);
  padding: 1.7rem 1.4rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .3s ease, transform .3s ease;
}
.etapa:hover { background: rgba(255,255,255,.16); transform: translateY(-6px); }
.etapa .n {
  font-size: 2.6rem; font-weight: 800; line-height: 1; color: rgba(255,255,255,.95);
  display: flex; align-items: baseline; gap: .5rem;
}
.etapa .n small { font-size: .8rem; font-weight: 700; letter-spacing: .2em; color: rgba(255,255,255,.55); text-transform: uppercase; }
.etapa h3 { color: #fff; font-size: 1.3rem; margin: .8rem 0 .45rem; }
.etapa p { font-size: .98rem; color: rgba(255,255,255,.78); line-height: 1.5; }
.m360-cta { margin-top: 1.6rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---------- Teaser Máquinas ---------- */
.familias { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.familia {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-soft);
  background: linear-gradient(160deg, #cfdeff 0%, #e8f0ff 100%);
  transition: transform .35s ease, box-shadow .35s ease;
}
.familia:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.familia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center 42%; transition: transform .6s ease; }
.familia:hover img { transform: scale(1.06); }
.familia .velo { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12,42,110,.92) 100%); }
.familia .info { position: relative; padding: 1.6rem; color: #fff; }
.familia .info h3 { color: #fff; font-size: 1.35rem; margin-bottom: .3rem; }
.familia .info p { font-size: .95rem; color: rgba(255,255,255,.8); }
.familia .tag {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  background: #fff; color: var(--azul-oscuro); font-size: .8rem; font-weight: 700;
  padding: .35rem .9rem; border-radius: 999px; letter-spacing: .06em;
}
.familia .tag.oro { background: linear-gradient(135deg, #f3e3b0, #c9a227); color: #5b4406; }

.niveles-chips { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }
.chip {
  font-weight: 700; font-size: 1rem; padding: .65rem 1.5rem; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--acero-300); color: var(--acero-700);
}
.chip.nsf { border-color: var(--oro); background: linear-gradient(135deg, #fdf7e3, #f7ead0); color: #7a5d10; display: inline-flex; gap: .5rem; align-items: center; }
.chip.nsf img { height: 22px; width: 22px; border-radius: 50%; }

/* ---------- Marquee "Lo hecho en México" ---------- */
.marquee { overflow: hidden; padding: 1.2rem 0; background: transparent; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: .12em;
  color: var(--azul-oscuro); text-transform: uppercase; display: flex; align-items: center; gap: 3rem; white-space: nowrap;
}
.marquee-track span::after { content: '◆'; color: var(--azul); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bloque editorial México ---------- */
.mexico-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.mexico-copy .lema { font-size: var(--fs-lead); font-weight: 700; color: var(--azul-oscuro); font-style: italic; margin-top: 1.4rem; }
.mexico-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.mexico-gallery figure { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4 / 5; }
.mexico-gallery figure:nth-child(2) { transform: translateY(1.6rem); }
.mexico-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mexico-gallery figure:hover img { transform: scale(1.05); }
.xolinox-float { position: relative; }
.xolinox-badge {
  display: flex; gap: 1.1rem; align-items: center; background: #fff;
  border-radius: var(--radius-sm); padding: 1.1rem 1.4rem; box-shadow: var(--shadow-soft);
  border: 1px solid var(--acero-150); margin-top: 1.8rem; max-width: 520px;
}
.xolinox-badge img { width: 86px; height: 86px; object-fit: contain; flex: none; }
.xolinox-badge p { font-size: .98rem; line-height: 1.45; }
.xolinox-badge strong { display: block; font-size: 1.05rem; }

/* ---------- 6 ventajas ---------- */
.ventajas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.ventaja {
  display: flex; gap: 1.2rem; align-items: flex-start; background: #fff;
  border: 1px solid var(--acero-150); border-radius: var(--radius-sm); padding: 1.6rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ventaja:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.ventaja .icono {
  flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--acero-075); border: 1px solid var(--acero-150);
}
.ventaja .icono svg { width: 32px; height: 32px; stroke: var(--azul); }
.ventaja h3 { font-size: 1.18rem; margin-bottom: .3rem; }
.ventaja p { font-size: .98rem; line-height: 1.5; }

/* ---------- NSF + mapa ---------- */
.nsf-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.nsf-card {
  background: #fff; border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft); border: 1.5px solid var(--oro-claro); position: relative;
}
.nsf-card img.sello { width: 130px; height: 130px; border-radius: 50%; margin-bottom: 1.4rem; filter: drop-shadow(0 8px 22px rgba(201,162,39,.4)); }
.nsf-card h3 { font-size: var(--fs-h3); margin-bottom: .9rem; }
.nsf-puntos { margin-top: 1.4rem; display: grid; gap: .7rem; }
.nsf-puntos li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1.02rem; }
.nsf-puntos li::before { content: '✓'; color: var(--oro); font-weight: 800; flex: none; }
.mapa-wrap { position: relative; }
.mapa-wrap svg { width: 100%; height: auto; }
.mapa-claim { font-size: var(--fs-lead); font-weight: 700; color: var(--acero-900); margin-bottom: 1.2rem; max-width: 540px; }
.pin { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.pin:nth-of-type(2) { animation-delay: .5s; } .pin:nth-of-type(3) { animation-delay: 1s; }
.pin:nth-of-type(4) { animation-delay: 1.5s; } .pin:nth-of-type(5) { animation-delay: 2s; }
@keyframes pulse { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
.mapa-regiones { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* Mapa de presencia (PNG transparente generado con Recraft) + marcadores que brillan */
.mapa-canvas { position: relative; width: 100%; margin: clamp(1.6rem, 3vw, 2.6rem) auto 0; }
.mapa-img { width: 100%; display: block; opacity: .82; }
.mapa-pin { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.mapa-pin::before, .mapa-pin::after {
  content: ''; position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  border-radius: 50%;
}
.mapa-pin::before {
  width: 13px; height: 13px; background: var(--azul);
  box-shadow: 0 0 18px 5px rgba(31, 91, 245, .7), 0 0 0 4px rgba(31, 91, 245, .18);
}
.mapa-pin::after { width: 13px; height: 13px; border: 2px solid var(--azul); animation: pinPulse 2.6s ease-out infinite; }
.mapa-pin b {
  position: absolute; left: 50%; top: 13px; transform: translateX(-50%);
  white-space: nowrap; font-size: .78rem; font-weight: 700; color: var(--azul-oscuro);
  background: rgba(255, 255, 255, .78); padding: .1rem .55rem; border-radius: 6px;
  box-shadow: var(--shadow-soft);
}
.mapa-pin:nth-of-type(2)::after { animation-delay: .65s; }
.mapa-pin:nth-of-type(3)::after { animation-delay: 1.3s; }
.mapa-pin:nth-of-type(4)::after { animation-delay: 1.95s; }
@keyframes pinPulse { 0% { width: 13px; height: 13px; opacity: .85; } 100% { width: 58px; height: 58px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mapa-pin::after { animation: none; } }

/* ---------- Confianza Refrinox: imágenes en vez de iconos ---------- */
.icono-img { width: 104px; height: 104px; margin-bottom: 1.4rem; display: grid; place-items: center; }
.icono-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(31, 91, 245, .18)); transition: transform .4s ease; }
.card:hover .icono-img img { transform: translateY(-4px) scale(1.05); }

/* ---------- Modelo 360: foto arriba de cada card del timeline ---------- */
.tl-thumb { margin: -1.5rem -1.6rem 1.1rem; overflow: hidden; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--acero-075); }
.tl-thumb img { width: 100%; height: auto; display: block; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.tl-item.active .tl-thumb img { transform: scale(1.03); }

/* ---------- Soluciones: cards de categoría con product shot ---------- */
.solucion { background: #fff; border: 1px solid var(--acero-150); border-radius: var(--radius); padding: 1.4rem 1.3rem 1.7rem; text-align: center; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease; }
.solucion:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.sol-img { aspect-ratio: 1 / 1; display: grid; place-items: center; margin-bottom: 1rem; }
.sol-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .5s ease; }
.solucion:hover .sol-img img { transform: scale(1.06); }
.solucion h3 { font-size: 1.22rem; color: var(--acero-900); }
.solucion .badge-nsf { display: inline-block; margin: .2rem auto 0; font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: #7a5d10; background: linear-gradient(135deg, #fdf7e3, #f3e3b0); padding: .12rem .6rem; border-radius: 999px; }
.solucion p { font-size: .92rem; color: var(--acero-700); margin-top: .45rem; line-height: 1.45; }

/* ---------- Ventajas competitivas: iconos SVG (mask azul) + glow ---------- */
.ventaja .icono .vi { display: block; width: 42px; height: 42px; object-fit: contain; transition: transform .4s ease; }
.ventaja .icono { animation: iconGlow 3.4s ease-in-out infinite; }
.ventaja:hover .icono { box-shadow: 0 0 24px 3px rgba(31, 91, 245, .5); transform: translateY(-2px); }
.ventaja:hover .icono .vi { transform: scale(1.1); }
@keyframes iconGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 91, 245, 0); } 50% { box-shadow: 0 0 16px 1px rgba(31, 91, 245, .4); } }
.ventaja:nth-child(2) .icono { animation-delay: .5s; }
.ventaja:nth-child(3) .icono { animation-delay: 1s; }
.ventaja:nth-child(4) .icono { animation-delay: 1.5s; }
.ventaja:nth-child(5) .icono { animation-delay: 2s; }
.ventaja:nth-child(6) .icono { animation-delay: 2.5s; }
@media (prefers-reduced-motion: reduce) { .ventaja .icono { animation: none; } }

/* ---------- Galería eventos ---------- */
.eventos-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 1.3rem; overflow-x: auto; padding-bottom: 1.2rem; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.evento { scroll-snap-align: start; border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 3.4/4; box-shadow: var(--shadow-soft); }
.evento img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.evento:hover img { transform: scale(1.05); }
.evento figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.3rem 1.1rem;
  background: linear-gradient(transparent, rgba(12,42,110,.85)); color: #fff; font-weight: 700;
}

/* ---------- Teasers flip card ---------- */
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.teaser {
  border-radius: var(--radius); min-height: 380px;
  position: relative; box-shadow: var(--shadow-soft);
  perspective: 1000px;
}
.teaser-inner {
  position: relative; width: 100%; height: 380px;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
  border-radius: var(--radius);
}
@media (hover: hover) {
  .teaser:hover .teaser-inner { transform: rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) { .teaser-inner { transition: none; } }
.teaser-front, .teaser-back {
  position: absolute; inset: 0; border-radius: var(--radius);
  overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.teaser-front img { width: 100%; height: 100%; object-fit: contain; display: block; }
.teaser-front { background: #fff; }
.teaser-front-label {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.8rem;
  background: linear-gradient(transparent, rgba(10,35,79,.78));
  color: #fff;
}
.teaser-front-label .kicker { color: #cdddff; margin-bottom: .3rem; }
.teaser-front-label p { color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 600; margin: 0; }
.teaser-back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: clamp(2rem, 3.6vw, 3rem);
}
.teaser-aprende .teaser-back { background: var(--grad-azul); color: #fff; }
.teaser-aprende h3, .teaser-aprende h2 { color: #fff; }
.teaser-aprende .teaser-back p, .teaser-aprende .teaser-back li { color: rgba(255,255,255,.88); }
.teaser-nosotros .teaser-back { background: #fff; border: 1px solid var(--acero-150); }
.teaser ul { display: grid; gap: .55rem; }
.teaser ul li { display: flex; gap: .65rem; align-items: center; font-weight: 600; }
.teaser ul li::before { content: '→'; font-weight: 800; }
.teaser .btn { align-self: flex-start; margin-top: auto; }
/* Touch devices: mostrar directamente el contenido sin flip */
@media (hover: none) {
  .teaser { min-height: auto; }
  .teaser-inner { height: auto; transform-style: flat; }
  .teaser-front { display: none; }
  .teaser-back {
    position: relative; transform: none;
    backface-visibility: visible; -webkit-backface-visibility: visible;
  }
  .teaser-aprende { background: var(--grad-azul); color: #fff; }
  .teaser-nosotros { background: #fff; border: 1px solid var(--acero-150); }
}
.teaser-mascota { position: absolute; right: -18px; bottom: -8px; width: 190px; opacity: .92; pointer-events: none; }

/* ---------- Banner slider (niveles de equipo) ---------- */
.banners-slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); user-select: none; }
.bs-viewport { overflow: hidden; }
.bs-track { display: flex; transition: transform .6s cubic-bezier(.5,0,.12,1); will-change: transform; }
.bs-slide { flex: 0 0 100%; }
.bs-slide img { width: 100%; display: block; }
.bs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.88); color: var(--azul-oscuro);
  font-size: 2rem; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-soft); transition: background .2s ease, transform .2s ease;
  line-height: .8;
}
.bs-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.bs-prev { left: 1rem; }
.bs-next { right: 1rem; }
.bs-dots { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .55rem; z-index: 3; }
.bs-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1.5px solid rgba(255,255,255,.75); cursor: pointer; padding: 0; transition: width .3s ease, background .3s ease; }
.bs-dot.active { width: 28px; background: #fff; }
@media (max-width: 620px) {
  .bs-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .bs-prev { left: .5rem; }
  .bs-next { right: .5rem; }
}

/* ---------- Casos de éxito ---------- */
.casos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.caso {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--acero-150); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.caso-video { position: relative; aspect-ratio: 16/9; background: var(--acero-900); display: grid; place-items: center; overflow: hidden; }
.caso-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.caso-video .play {
  position: relative; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
  transition: transform .3s ease; cursor: pointer;
}
.caso:hover .play { transform: scale(1.12); }
.caso-video .play::after { content: ''; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--azul); margin-left: 5px; }
.caso-video .region {
  position: absolute; top: 1rem; left: 1rem; background: #fff; color: var(--azul-oscuro);
  font-weight: 700; font-size: .85rem; padding: .3rem .9rem; border-radius: 999px;
}
.caso-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.caso-body h3 { font-size: 1.25rem; }
.caso-stats { display: flex; gap: 1rem; margin-top: auto; }
.caso-stats div { flex: 1; background: var(--acero-075); border-radius: 12px; padding: .7rem .5rem; text-align: center; }
.caso-stats .v { font-weight: 800; color: var(--azul-oscuro); font-size: 1.25rem; line-height: 1.1; }
.caso-stats .k { font-size: .78rem; font-weight: 600; color: var(--acero-500); }
.banda-360 {
  margin-top: 3rem; background: var(--grad-azul); border-radius: var(--radius);
  padding: clamp(1.8rem, 3.5vw, 2.6rem); display: flex; flex-wrap: wrap; gap: 1.4rem;
  align-items: center; justify-content: space-between; color: #fff; box-shadow: var(--shadow-lift);
}
.banda-360 p { font-size: var(--fs-lead); font-weight: 700; color: #fff; max-width: 620px; }

/* ---------- Conversión / formulario ---------- */
.conversion-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.form-card {
  background: #fff; border-radius: var(--radius); padding: clamp(1.8rem, 3.4vw, 2.8rem);
  box-shadow: var(--shadow-lift); border: 1px solid var(--acero-150);
}
.form-grid { display: grid; gap: 1.1rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.campo { display: grid; gap: .4rem; }
.campo.full { grid-column: 1 / -1; }
.campo label { font-weight: 700; font-size: .95rem; color: var(--acero-900); }
.campo input, .campo select, .campo textarea {
  font-family: 'Saira', sans-serif; font-size: 1.05rem; color: var(--acero-900);
  padding: .85rem 1.1rem; border-radius: 12px; border: 1.5px solid var(--acero-300);
  background: var(--acero-075); transition: border-color .25s ease, box-shadow .25s ease; width: 100%;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(31,91,245,.14); background: #fff;
}
.campo textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--acero-500); margin-top: .9rem; }
.contacto-directo { display: grid; gap: 1rem; margin-top: 1.8rem; }
.contacto-directo a {
  display: inline-flex; gap: .7rem; align-items: center; font-weight: 700; color: var(--azul-oscuro); font-size: 1.1rem;
}
.contacto-directo a:hover { text-decoration: underline; }
.contacto-directo svg { width: 24px; height: 24px; stroke: var(--azul); flex: none; }

/* ---------- Footer ---------- */
footer { background: #0a234f; color: rgba(255,255,255,.78); padding: 4.5rem 0 2rem; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-grid h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.1rem; letter-spacing: .04em; }
.footer-grid a { display: block; padding: .28rem 0; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-brand img.logo { height: 50px; width: auto; margin-bottom: 1.2rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .98rem; line-height: 1.55; max-width: 320px; }
.footer-nsf { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.footer-nsf img { height: 56px; width: 56px; border-radius: 50%; }
.footer-nsf span { font-size: .88rem; font-weight: 700; color: #fff; max-width: 180px; line-height: 1.3; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .9rem;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 90;
  width: 64px; height: 64px; border-radius: 50%; background: var(--verde-wa);
  display: grid; place-items: center; box-shadow: 0 14px 36px rgba(37,211,102,.45);
  transition: transform .3s ease;
}
.wa-float:hover { transform: scale(1.12); }
.wa-float svg { width: 34px; height: 34px; fill: #fff; }

/* ---------- Hero interior (subpáginas) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--grad-acero); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; right: -8%; top: -30%; width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(31,91,245,.12), transparent 65%);
}
.page-hero h1 { max-width: 880px; }
.page-hero .lead { font-size: var(--fs-lead); max-width: 760px; margin-top: 1.2rem; }
.breadcrumbs { font-size: .92rem; font-weight: 600; color: var(--acero-500); margin-bottom: 1.6rem; }
.breadcrumbs a:hover { color: var(--azul); }

/* ---------- Catálogo máquinas ---------- */
.nivel-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center; padding: clamp(2.4rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--acero-150);
}
.nivel-row:last-child { border-bottom: 0; }
.nivel-row.alt .nivel-media { order: 2; }
.nivel-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3.4; position: relative; }
.nivel-media img { width: 100%; height: 100%; object-fit: cover; }
.nivel-badge {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .85rem; color: var(--azul); margin-bottom: .8rem;
}
.spec-list { margin-top: 1.3rem; display: grid; gap: .6rem; }
.spec-list li { display: flex; gap: .7rem; align-items: flex-start; }
.spec-list li::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--grad-azul); margin-top: .55em; }

/* ---------- Aprende ---------- */
.recursos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.recurso {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--acero-150);
  overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.recurso:hover { transform: translateY(-7px); box-shadow: var(--shadow-lift); }
.recurso-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--grad-acero-deep); display: grid; place-items: center; }
.recurso-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recurso-thumb .etiqueta {
  position: absolute; top: 1rem; left: 1rem; background: #fff; font-size: .8rem;
  font-weight: 700; padding: .3rem .9rem; border-radius: 999px; color: var(--azul-oscuro);
}
.recurso-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.recurso-body h3 { font-size: 1.25rem; }
.recurso-body .meta { font-size: .88rem; font-weight: 600; color: var(--acero-500); margin-top: auto; }

/* ---------- Nosotros / equipo ---------- */
.equipo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.persona {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--acero-150);
  padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow-soft);
  transition: transform .3s ease;
}
.persona:hover { transform: translateY(-6px); }
.persona .avatar {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1.2rem;
  background: var(--grad-acero-deep); display: grid; place-items: center;
  font-size: 2.2rem; font-weight: 800; color: var(--azul-oscuro); border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(44,54,64,.18);
}
.persona h3 { font-size: 1.2rem; }
.persona .rol { font-weight: 600; color: var(--azul); font-size: .95rem; margin: .2rem 0 1rem; }
.persona .btn { padding: .6rem 1.4rem; font-size: .92rem; }
.valores { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; }
.valor { background: #fff; border-radius: var(--radius-sm); padding: 1.6rem 1.3rem; text-align: center; border: 1px solid var(--acero-150); font-weight: 700; color: var(--acero-900); font-size: 1.08rem; box-shadow: var(--shadow-soft); }
.valor span { display: block; font-size: 2rem; margin-bottom: .5rem; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; } .reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; } .reveal-d4 { transition-delay: .48s; }

/* ============================================================
   CAPA DE MOVIMIENTO · parallax + animaciones de impacto
   ============================================================ */
.container { position: relative; z-index: 2; }

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg, var(--azul), #6f9bff, var(--oro));
  z-index: 300; box-shadow: 0 0 14px rgba(31, 91, 245, .6); will-change: width;
}

/* Orbes de profundidad (parallax) */
/* Orbes desactivados: sus capas dejaban costuras en los bordes de sección.
   El flujo de color sólido (JS) ya aporta el ambiente, sin riesgo de líneas. */
.orbs { display: none; }

/* ---------- Copos de nieve · la web se "congela" al hacer scroll ---------- */
.snow-layer {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none; opacity: 0; transition: opacity .5s linear;
}
.snow-flake {
  position: absolute; top: 0;
  background: url('../assets/img/snow/snow-1.png') center/contain no-repeat;
  will-change: transform; filter: drop-shadow(0 2px 6px rgba(12,42,110,.12));
  animation: snowfall linear infinite;
}
@keyframes snowfall {
  0%   { transform: translateY(-14vh) rotate(0deg); }
  100% { transform: translateY(114vh) rotate(200deg); }
}
@media (prefers-reduced-motion: reduce) {
  .snow-flake { animation: none; }
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .4; will-change: transform; }
.orb.a { width: 460px; height: 460px; background: radial-gradient(circle, #6f9bff, transparent 70%); top: -140px; left: -90px; }
.orb.b { width: 400px; height: 400px; background: radial-gradient(circle, #9db9ff, transparent 70%); bottom: -120px; right: -70px; }
.orb.gold { background: radial-gradient(circle, #f3e3b0, transparent 70%); }
.bg-tinta .orb.a { background: radial-gradient(circle, #3f6dff, transparent 70%); opacity: .55; }
.bg-tinta .orb.b { background: radial-gradient(circle, #6f9bff, transparent 70%); opacity: .45; }

/* Helper parallax (JS escribe --py) */
[data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

/* Hero cinético */
.hero-content > * { opacity: 0; transform: translateY(42px); animation: heroIn .95s cubic-bezier(.22,.61,.36,1) forwards; }
.hero-content > .hero-nsf { animation-delay: .1s; }
.hero-content > h1 { animation-delay: .26s; }
.hero-content > .hero-pilares { animation-delay: .46s; }
.hero-content > .hero-ctas { animation-delay: .62s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-video video { will-change: transform; }

/* Variantes de reveal direccional */
.reveal-left, .reveal-right, .reveal-scale {
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
}
.reveal-left  { opacity: 0; transform: translateX(-64px); }
.reveal-right { opacity: 0; transform: translateX(64px); }
.reveal-scale { opacity: 0; transform: scale(.86) translateY(28px); }
.reveal-left.visible, .reveal-right.visible, .reveal-scale.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; } /* aplican también a variantes */

/* Reveal de imagen tipo cortina */
.clip-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.05s cubic-bezier(.66,0,.2,1); }
.clip-reveal.visible { clip-path: inset(0 0 0 0); }

/* Tilt 3D en tarjetas */
.tilt { transform-style: preserve-3d; transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease; will-change: transform; }

/* Línea del timeline 360 que se llena */
.timeline-fill {
  position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #fff, #cdddff); border-radius: 2px;
  box-shadow: 0 0 14px rgba(255, 255, 255, .8); z-index: 1;
  transition: width 1.7s cubic-bezier(.22,.61,.36,1);
}
.timeline.visible .timeline-fill { width: 100%; }

/* Quote card (reemplaza badge de mascota) */
.quote-card {
  position: relative; margin-top: 1.8rem; max-width: 540px;
  background: #fff; border: 1px solid var(--acero-150); border-left: 5px solid var(--azul);
  border-radius: var(--radius-sm); padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--shadow-soft);
}
.quote-card .quote-mark { position: absolute; top: -.2rem; left: 1rem; font-size: 4rem; line-height: 1; color: var(--acero-150); font-weight: 800; }
.quote-card p { font-size: 1.08rem; font-weight: 600; color: var(--acero-900); padding-left: 1.6rem; }
.quote-card strong { display: block; margin-top: .7rem; padding-left: 1.6rem; color: var(--azul-oscuro); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .clip-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none; }
  .hero-content > * { opacity: 1; transform: none; animation: none; }
  .marquee-track, .steel-sheen::after, .pin { animation: none; }
  [data-parallax] { transform: none !important; }
  .timeline.visible .timeline-fill { transition: none; }
}

/* ---------- MODELO 360 · carrusel autoplay (sin scroll horizontal) ---------- */
.m360-carousel { margin-top: clamp(2.4rem, 5vw, 3.8rem); position: relative; }
.m360-progress { height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; margin-bottom: 1.9rem; }
.m360-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fff, #cdddff); box-shadow: 0 0 14px rgba(255,255,255,.75); border-radius: 2px; transition: width .65s cubic-bezier(.22,.61,.36,1); }
.m360-viewport { overflow: hidden; }
.m360-track { display: flex; gap: 1.2rem; will-change: transform; transition: transform .65s cubic-bezier(.5,0,.12,1); }
.m360-track > .etapa { flex: 0 0 auto; margin: 0; transition: transform .55s ease, opacity .55s ease, background .3s ease, border-color .3s ease; }
.m360-track > .etapa.is-dim { opacity: .5; transform: scale(.93); }
.m360-track > .etapa.is-active { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.m360-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.9rem; }
.m360-arrow {
  width: 52px; height: 52px; border-radius: 50%; flex: none; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.45); color: #fff;
  display: grid; place-items: center; transition: background .25s ease, transform .25s ease, opacity .25s ease;
}
.m360-arrow:hover { background: #fff; color: var(--azul-oscuro); transform: translateY(-2px); }
.m360-arrow svg { width: 22px; height: 22px; }
.m360-dots { display: flex; gap: .5rem; margin-left: .4rem; align-items: center; }
.m360-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.3); border: 0; cursor: pointer; padding: 0; transition: width .3s ease, background .3s ease; }
.m360-dot.active { width: 30px; background: #fff; }
.m360-play { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.75); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; font-family: inherit; font-size: .95rem; }
.m360-play:hover { color: #fff; }
.m360-play svg { width: 18px; height: 18px; }

/* ---------- MODELO 360 · tema CLARO (encaja en el flujo de color) ---------- */
.m360 { color: var(--acero-700); }
.m360 .kicker { color: var(--azul); }
.m360 .kicker::before { background: var(--grad-azul); }
.m360 h2 { color: var(--acero-900); }
.m360 .lead { color: var(--acero-700); }
.m360 .etapa { background: #fff; border: 1px solid var(--acero-150); box-shadow: var(--shadow-soft); backdrop-filter: none; }
.m360 .etapa:hover { background: #fff; }
.m360 .etapa .n { color: var(--azul-oscuro); }
.m360 .etapa .n small { color: var(--acero-500); }
.m360 .etapa h3 { color: var(--acero-900); }
.m360 .etapa p { color: var(--acero-700); }
.m360-track > .etapa.is-active { background: #fff; border-color: var(--azul); box-shadow: var(--shadow-lift); }
.m360-track > .etapa.is-dim { opacity: .45; }
.m360-progress { background: var(--acero-150); }
.m360-arrow { background: #fff; border-color: var(--acero-300); color: var(--azul-oscuro); box-shadow: var(--shadow-soft); }
.m360-arrow:hover { background: var(--azul); color: #fff; border-color: var(--azul); }
.m360-dot { background: var(--acero-300); }
.m360-dot.active { background: var(--azul); }
.m360-play { color: var(--acero-500); }
.m360-play:hover { color: var(--azul-oscuro); }

/* ---------- Secciones sobre fondo azul oscuro: texto claro ---------- */
.on-dark { background: var(--azul-tinta); }
.on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p, .on-dark .lead { color: rgba(255,255,255,.86); }
.on-dark .kicker { color: #cdddff; }
.on-dark .kicker::before { background: #cdddff; }
.on-dark .contacto-directo a { color: #fff; }
.on-dark .contacto-directo svg { stroke: #cdddff; }
/* Restore dark text inside white-background child components */
.on-dark .card h3, .on-dark .card p,
.on-dark .caso-body h3, .on-dark .caso-body p,
.on-dark .form-card h3, .on-dark .form-card p, .on-dark .form-card .form-note,
.on-dark .persona h3,
.on-dark .solucion h3, .on-dark .solucion p,
.on-dark .ventaja h3, .on-dark .ventaja p,
.on-dark .valor { color: var(--acero-900); }
.on-dark .persona .rol { color: var(--azul); }

/* ---------- MODELO 360 · Timeline que se dibuja con el scroll (nodos = copos) ---------- */
.m360-timeline { position: relative; max-width: 1000px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.tl-progress {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; transform: translateX(-50%);
  background: var(--acero-150); border-radius: 4px; overflow: hidden; z-index: 1;
}
.tl-progress span {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, var(--azul), #6f9bff);
  box-shadow: 0 0 16px rgba(31, 91, 245, .55); border-radius: 4px;
}
.tl-item { position: relative; min-height: clamp(130px, 18vw, 170px); display: flex; align-items: center; }
.tl-card {
  width: calc(50% - 3.4rem); background: #fff; border: 1px solid var(--acero-150);
  border-radius: var(--radius-sm); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-soft);
  opacity: 0; transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
.tl-item:nth-child(odd)  .tl-card { margin-right: auto; transform: translateX(-34px); }
.tl-item:nth-child(even) .tl-card { margin-left: auto;  transform: translateX(34px); }
.tl-item.active .tl-card { opacity: 1; transform: none; }
.tl-card .n { display: flex; align-items: baseline; gap: .5rem; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; color: var(--azul-oscuro); line-height: 1; }
.tl-card .n small { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--acero-500); font-weight: 700; }
.tl-card h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin: .7rem 0 .4rem; color: var(--acero-900); }
.tl-card p { font-size: .98rem; color: var(--acero-700); line-height: 1.5; }
.tl-node {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.62);
  background: #fff url('../assets/img/snow/snow-1.png') center / 68% no-repeat;
  border: 2px solid var(--acero-150); box-shadow: var(--shadow-soft);
  opacity: .45; z-index: 2;
  transition: transform .55s cubic-bezier(.34,1.56,.5,1), opacity .5s ease, box-shadow .5s ease, border-color .5s ease;
}
.tl-item.active .tl-node {
  opacity: 1; transform: translate(-50%, -50%) scale(1.05) rotate(20deg);
  border-color: var(--azul);
  box-shadow: 0 0 0 7px rgba(31, 91, 245, .12), 0 12px 28px rgba(31, 91, 245, .28);
}
@media (prefers-reduced-motion: reduce) {
  .tl-card { opacity: 1; transform: none; }
  .tl-node { opacity: 1; }
}
@media (max-width: 760px) {
  .tl-progress { left: 27px; }
  .tl-item { min-height: 0; padding: .9rem 0; }
  .tl-card,
  .tl-item:nth-child(odd) .tl-card,
  .tl-item:nth-child(even) .tl-card { width: auto; margin: 0 0 0 64px; transform: translateX(24px); }
  .tl-item.active .tl-card { transform: none; }
  .tl-node { left: 27px; width: 46px; height: 46px; }
}

/* ---------- Catálogo: tabs de gama + tarjetas de producto ---------- */
.gama-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.gama-tab { flex: none; padding: .55rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--acero-200); background: transparent; color: var(--acero-600); font-size: .875rem; font-family: var(--font); font-weight: 600; cursor: pointer; transition: border-color .18s, color .18s, background .18s; white-space: nowrap; }
.gama-tab:hover { border-color: var(--azul); color: var(--azul); }
.gama-tab.active { background: var(--azul); border-color: var(--azul); color: #fff; }
.gama-panel.hidden { display: none; }
.productos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 1.4rem; }
.prod-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--acero-100); box-shadow: var(--shadow-soft); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.prod-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.prod-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--acero-50), var(--acero-100)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-thumb img:not(.prod-pi) { width: 100%; height: 100%; object-fit: cover; }
.prod-pi { width: 64px; opacity: .13; }
.prod-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.prod-header { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.prod-modelo { font-size: 1.15rem; font-weight: 700; color: var(--azul-oscuro); }
.prod-tipo { font-size: .73rem; font-weight: 600; color: var(--azul); background: rgba(31,91,245,.1); padding: .18rem .65rem; border-radius: 999px; }
.prod-nsf { font-size: .73rem; font-weight: 700; color: #fff; background: var(--grad-azul); padding: .18rem .65rem; border-radius: 999px; }
.prod-specs { width: 100%; border-collapse: collapse; font-size: .82rem; flex: 1; }
.prod-specs tr { border-bottom: 1px solid var(--acero-100); }
.prod-specs tr:last-child { border-bottom: none; }
.prod-specs td { padding: .35rem 0; vertical-align: top; line-height: 1.35; }
.prod-specs td:first-child { color: var(--acero-400); width: 36%; padding-right: .5rem; }
.prod-specs td:last-child { color: var(--acero-900); font-weight: 500; }
.btn-sm { padding: .52rem 1rem; font-size: .84rem; width: 100%; text-align: center; }
.prod-usos { border-top: 1px solid var(--acero-100); padding-top: .75rem; margin-top: .1rem; }
.uso-label { font-size: .7rem; font-weight: 600; color: var(--acero-400); text-transform: uppercase; letter-spacing: .07em; display: block; margin-bottom: .45rem; }
.uso-icons { display: flex; gap: .9rem; align-items: flex-start; }
.uso-icons figure { display: flex; flex-direction: column; align-items: center; gap: .2rem; margin: 0; }
.uso-icons figure img { width: 30px; height: 30px; object-fit: contain; }
.uso-icons figure figcaption { font-size: .65rem; color: var(--acero-600); font-weight: 500; text-align: center; line-height: 1.2; max-width: 54px; }
.cat-sep { font-size: 1.05rem; font-weight: 700; color: var(--azul-oscuro); padding: 2rem 0 .7rem; border-bottom: 2px solid rgba(31,91,245,.18); margin-bottom: 1.2rem; letter-spacing: .01em; }
.cat-sep:first-child { padding-top: 0; }
.prod-desc { font-size: .86rem; color: var(--acero-600); line-height: 1.6; flex: 1; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; position: fixed; inset: var(--nav-h) 0 auto 0;
    background: #fff; flex-direction: column; align-items: stretch; padding: 1.4rem 6vw 2rem;
    box-shadow: 0 24px 40px rgba(44,54,64,.16); gap: .2rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem .2rem; font-size: 1.15rem; border-bottom: 1px solid var(--acero-075); }
  .nav-burger { display: block; margin-left: auto; }
  .nav-nsf span { display: none; }
  .nav-inner > .nav-cta { display: none; }
  .nav-links .nav-cta { display: inline-flex; margin-top: 1rem; justify-content: center; border-bottom: none; }
  .mexico-grid, .nsf-grid, .conversion-grid, .teasers { grid-template-columns: 1fr; }
  .nivel-row { grid-template-columns: 1fr; }
  .nivel-row.alt .nivel-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :root { --nav-h: 76px; }
  .nav-logo img { height: 40px; }
  .hero-ctas .btn { width: 100%; }
  .form-grid.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-track { grid-template-columns: repeat(8, 82vw); }
  .hero-scroll { display: none; }
}
