/* =========================================================
   Galtech v3 — sistema de diseño corporativo con movimiento
   Paleta "B2B Service" · Lexend + Source Sans 3
   Movimiento: GSAP + ScrollTrigger + SplitText + Lenis (main.js)
   ========================================================= */

:root {
  --navy-950: #0e1428;
  --navy-900: #18213b;
  --navy-800: #232f52;
  --navy-700: #334155;
  --blue-800: #175d98;
  --blue-700: #1d71b8;
  --blue-600: #2c83c5;
  --blue-400: #54c3e9;
  --blue-300: #7fd3f0;
  --blue-100: #e0f2fe;
  --blue-50: #f0f9ff;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --bg: #f8fafc;
  --white: #ffffff;
  --whatsapp: #25d366;
  --danger: #dc2626;

  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.75rem, 1.4rem + 5.2vw, 6.25rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 3vw, 4rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.2vw, 3.25rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 7vw + 40px, 150px);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --sh-md: 0 14px 34px -14px rgba(15, 23, 42, 0.22);
  --sh-lg: 0 34px 70px -24px rgba(15, 23, 42, 0.35);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --header-h: 78px;
}

/* ---------- Transiciones entre páginas (View Transitions API) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 260ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 520ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65;
  color: var(--navy-900); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: var(--navy-900); letter-spacing: -0.025em; }
h1 { font-size: var(--fs-h1); line-height: 1.05; font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: 1.08; font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
h1, h2 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue-100); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tint { background: var(--bg); }
.section--dark { background: var(--navy-950); color: var(--slate-300); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--fill { fill: currentColor; stroke: none; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-sm); background: var(--navy-900); color: var(--white); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Barra de progreso de lectura */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--blue-600); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- Encabezados de sección ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 var(--fs-label)/1.2 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-700); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--blue-300); }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 20px; font-size: var(--fs-lead); color: var(--slate-600); }
.section--dark .section-head p { color: var(--slate-400); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head--split > div { max-width: 720px; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--blue-700); --btn-fg: var(--white); --btn-fill: var(--blue-800);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 28px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-head); letter-spacing: -0.005em;
  text-decoration: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform 200ms var(--ease-out), color 300ms var(--ease-out), border-color 300ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill); border-radius: inherit; transform: scaleX(0); transform-origin: right center; transition: transform 450ms var(--ease-out); }
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform 300ms var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--primary { box-shadow: 0 12px 26px -12px rgba(29, 113, 184, 0.7); }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, 0.06); --btn-fg: var(--white); --btn-fill: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.btn--ghost-light:hover { color: var(--navy-900); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--navy-900); --btn-fill: var(--blue-100); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-900); --btn-fill: var(--navy-900); border-color: var(--slate-300); }
.btn--outline:hover { color: var(--white); border-color: var(--navy-900); }
.btn--whatsapp { --btn-bg: var(--whatsapp); --btn-fg: #052e16; --btn-fill: #1fb855; }
.btn--sm { min-height: 46px; padding: 10px 20px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1.3 var(--font-head); color: var(--blue-700); text-decoration: none; }
.text-link .icon { transition: transform 300ms var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Barra superior y encabezado ---------- */
.topbar { background: var(--navy-950); color: var(--slate-300); font-size: var(--fs-small); position: relative; z-index: 41; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 42px; }
.topbar a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color 200ms ease; }
.topbar a:hover { color: var(--blue-300); }
.topbar-zone { display: inline-flex; align-items: center; gap: 8px; }
.topbar-links { display: flex; gap: 24px; }
@media (max-width: 420px) { .header .logo img { height: 38px; } }
@media (max-width: 760px) { .topbar-zone { display: none; } .topbar .container { justify-content: center; } }

.header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform 450ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.header.is-scrolled { border-color: var(--slate-200); box-shadow: 0 8px 30px -18px rgba(15, 23, 42, 0.35); }
.header.is-hidden { transform: translateY(-100%); }
.header .container { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo img { width: auto; height: 46px; transition: opacity 300ms var(--ease-out); }
.logo:hover img { opacity: 0.85; }
.drawer .logo img { height: 40px; }
.logo-text { display: grid; line-height: 1; }
.logo-text strong { font: 700 1.375rem/1 var(--font-head); letter-spacing: 0.04em; color: var(--navy-900); }
.logo-text span { margin-top: 5px; font: 500 0.75rem/1 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-500); }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px;
  border: 0; border-radius: var(--r-sm); background: none; font: 500 0.975rem/1 var(--font-head); color: var(--navy-800); text-decoration: none; cursor: pointer;
}
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--blue-700); transform: scaleX(0); transform-origin: right; transition: transform 350ms var(--ease-out); }
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] { color: var(--blue-700); }
.nav-link .icon { width: 16px; height: 16px; transition: transform 300ms var(--ease-out); }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.header-cta { margin-left: 8px; }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(780px, calc(100vw - 48px));
  padding: 14px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--slate-200); box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(0.98); transform-origin: top center; filter: blur(4px);
  transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out), filter 200ms var(--ease-out), visibility 0s linear 260ms;
}
.mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); filter: none; transition-delay: 0s; }
.mega a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: var(--r-md); text-decoration: none; transition: background-color 200ms ease; }
.mega a:hover, .mega a:focus-visible { background: var(--bg); }
.mega a:hover .icon-chip { background: var(--blue-700); color: var(--white); }
.mega strong { display: block; font: 600 1rem/1.3 var(--font-head); color: var(--navy-900); }
.mega small { display: block; margin-top: 4px; font-size: 0.9rem; line-height: 1.45; color: var(--slate-600); }
.mega-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; padding: 14px 16px; border-radius: var(--r-md); background: var(--blue-50); font-size: var(--fs-small); color: var(--navy-800); }

.icon-chip { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-50); color: var(--blue-700); transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out), transform 300ms var(--ease-out); }
.icon-chip--lg { width: 58px; height: 58px; border-radius: 16px; }
.icon-chip--lg .icon { width: 28px; height: 28px; }
.icon-chip--dark { background: rgba(84, 195, 233, 0.1); color: var(--blue-300); }
.icon-chip--wa { background: #dcfce7; color: #15803d; }

.menu-toggle { display: none; flex: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--slate-200); border-radius: 50%; background: var(--white); cursor: pointer; place-items: center; }

.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.55); opacity: 0; transition: opacity 300ms var(--ease-out); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--white); padding: 20px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); transition: transform 450ms var(--ease-out); display: flex; flex-direction: column; gap: 24px; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-close { width: 48px; height: 48px; border: 1px solid var(--slate-200); border-radius: 50%; background: var(--white); display: grid; place-items: center; cursor: pointer; }
.drawer-label { font: 600 var(--fs-label)/1 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 8px; }
.drawer-list { list-style: none; display: grid; }
.drawer-list a { display: flex; align-items: center; gap: 14px; padding: 11px 0; text-decoration: none; font: 500 1.0625rem/1.3 var(--font-head); border-bottom: 1px solid var(--slate-100); }
.drawer-list .icon { color: var(--blue-700); }
.drawer-links { list-style: none; display: grid; }
.drawer-links a { display: block; padding: 10px 0; text-decoration: none; font: 600 1.4rem/1.3 var(--font-head); }
.drawer-actions { margin-top: auto; display: grid; gap: 12px; }
@media (max-width: 1100px) { .nav, .header-cta { display: none; } .menu-toggle { display: grid; } }

/* ---------- Hero principal ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - 42px); display: flex; flex-direction: column; color: var(--white); background: var(--navy-950); }
.hero-media { position: absolute; inset: -6% 0 0; z-index: -2; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.82) 40%, rgba(2, 6, 23, 0.25) 78%, rgba(2, 6, 23, 0.1) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0) 40%); }
.hero-body { flex: 1; display: flex; align-items: center; padding-top: calc(var(--header-h) + 24px); padding-bottom: 48px; }
.hero-content { max-width: 860px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); font: 500 var(--fs-small)/1.2 var(--font-head); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.hero h1 { margin-top: 26px; font-size: var(--fs-hero); line-height: 1; letter-spacing: -0.035em; color: var(--white); }
.hero h1 .accent { color: var(--blue-300); }
.hero-lead { margin-top: 28px; max-width: 640px; font-size: var(--fs-lead); line-height: 1.6; color: #cbd5e1; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hero-foot .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; flex-wrap: wrap; padding-block: 18px; }
.hero-sizes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--slate-400); }
.hero-sizes a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); color: var(--white); text-decoration: none; font: 500 0.95rem/1 var(--font-head); transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out); }
.hero-sizes a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; color: var(--slate-400); font-size: var(--fs-small); text-decoration: none; }
.scroll-cue span { position: relative; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); }
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(0deg, rgba(2, 6, 23, 0.97) 0%, rgba(2, 6, 23, 0.8) 60%, rgba(2, 6, 23, 0.55) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
}

/* ---------- Franja de texto ligada al scroll ---------- */
.ticker { overflow: hidden; padding-block: clamp(36px, 5vw, 64px); background: var(--white); border-bottom: 1px solid var(--slate-200); }
.ticker-row { display: flex; gap: 0.5em; white-space: nowrap; width: max-content; font: 700 clamp(2.4rem, 1.2rem + 5vw, 6rem)/1.05 var(--font-head); letter-spacing: -0.03em; will-change: transform; }
.ticker-row + .ticker-row { margin-top: 10px; }
.ticker-row span { display: inline-flex; align-items: center; gap: 0.5em; color: var(--navy-900); }
.ticker-row span::after { content: ""; width: 0.28em; height: 0.28em; border-radius: 50%; background: var(--blue-600); }
.ticker-row--outline span { color: transparent; -webkit-text-stroke: 1.5px var(--slate-300); }
.ticker-row--outline span::after { background: var(--slate-300); }

/* ---------- Públicos (tamaños de proyecto) ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.audience {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 560px; padding: 32px; border-radius: var(--r-xl); color: var(--white); text-decoration: none; background: var(--navy-900);
}
.audience-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.audience-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1200ms var(--ease-out); }
.audience:hover .audience-media img { transform: scale(1.12); }
.audience::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(2, 6, 23, 0.95) 8%, rgba(2, 6, 23, 0.55) 52%, rgba(2, 6, 23, 0.15) 100%); }
.audience .icon-chip { background: rgba(255, 255, 255, 0.14); color: var(--white); margin-bottom: auto; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.audience h3 { margin-top: 24px; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); color: var(--white); }
.audience p { margin-top: 10px; color: #cbd5e1; }
.audience ul { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
.audience li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--white); }
.audience li .icon { width: 16px; height: 16px; color: var(--blue-300); stroke-width: 2.25; }
.audience-cta { display: inline-flex; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); font: 600 1rem/1 var(--font-head); }
.audience-cta .arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--navy-900); transition: transform 400ms var(--ease-out), background-color 300ms ease; }
.audience:hover .audience-cta .arrow { transform: rotate(45deg); background: var(--blue-300); }
@media (max-width: 1024px) { .audience-grid { grid-template-columns: 1fr; } .audience { min-height: 440px; } }

/* ---------- Servicios en desplazamiento horizontal ---------- */
.hscroll { background: var(--navy-950); color: var(--slate-300); overflow: hidden; }
.hscroll-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(72px, 8vh, 110px); }
.hscroll-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vh, 56px); }
.hscroll-head h2 { color: var(--white); margin-top: 16px; max-width: 680px; }
.hscroll-head p { max-width: 420px; color: var(--slate-400); }
.hscroll-track { display: flex; gap: 24px; width: max-content; padding-inline: var(--gutter); will-change: transform; }
.hpanel {
  position: relative; flex: none; width: clamp(300px, 30vw, 430px); display: flex; flex-direction: column;
  border-radius: var(--r-xl); overflow: hidden; background: var(--navy-800); border: 1px solid rgba(148, 163, 184, 0.14); text-decoration: none;
  transition: border-color 300ms var(--ease-out), transform 400ms var(--ease-out);
}
.hpanel:hover { border-color: rgba(84, 195, 233, 0.45); transform: translateY(-6px); }
.hpanel-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.hpanel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.hpanel:hover .hpanel-media img { transform: scale(1.08); }
.hpanel-num { position: absolute; top: 18px; left: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(2, 6, 23, 0.7); color: var(--white); font: 600 0.85rem/1 var(--font-head); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hpanel-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 26px; }
.hpanel-body h3 { color: var(--white); font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.hpanel-body p { color: var(--slate-400); font-size: var(--fs-small); }
.hpanel-body .text-link { margin-top: auto; padding-top: 10px; color: var(--blue-300); }
.hscroll-bar { margin-top: 36px; height: 2px; background: rgba(148, 163, 184, 0.2); border-radius: 2px; overflow: hidden; }
.hscroll-bar span { display: block; height: 100%; background: var(--blue-400); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 900px) {
  .hscroll-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .hpanel { scroll-snap-align: start; width: 82vw; }
  .hscroll-bar { display: none; }
}

/* ---------- Integración (diagrama) ---------- */
.integration { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.integration-copy > p { margin-top: 20px; font-size: var(--fs-lead); color: var(--slate-600); }
.integration-copy .checks { margin-top: 28px; gap: 12px; }
.integration-copy .checks li { font-size: var(--fs-body); }
.integration-copy .btn { margin-top: 36px; }
.hub { position: relative; aspect-ratio: 1; max-width: 540px; margin: 32px auto 0; width: 100%; }
.hub-ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed var(--slate-300); }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines line { stroke: var(--slate-300); stroke-width: 0.5; transition: stroke 300ms var(--ease-out); }
.hub-lines line.is-active { stroke: var(--blue-600); stroke-width: 0.8; }
.hub-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 32%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 12px; background: var(--navy-900); color: var(--white); box-shadow: 0 0 0 14px rgba(29, 113, 184, 0.1), 0 0 0 30px rgba(29, 113, 184, 0.05); }
.hub-core img { width: 46%; height: auto; margin: 0 auto 6px; }
.hub-core strong { display: block; font: 700 clamp(0.9rem, 0.8rem + 0.4vw, 1.1rem)/1.2 var(--font-head); }
.hub-node { position: absolute; z-index: 1; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; width: 124px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--navy-800); font: 600 0.9rem/1.2 var(--font-head); text-align: center; }
.hub-node .icon-chip { width: 66px; height: 66px; border-radius: 20px; background: var(--white); color: var(--blue-700); box-shadow: var(--sh-md); border: 1px solid var(--slate-200); }
.hub-node .icon-chip .icon { width: 28px; height: 28px; }
.hub-node:hover .icon-chip, .hub-node.is-active .icon-chip { background: var(--blue-700); color: var(--white); transform: translateY(-3px) scale(1.05); }
.hub-label { padding: 2px 8px; border-radius: 6px; background: var(--bg); }
.hub-detail { margin-top: 28px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--slate-200); box-shadow: var(--sh-sm); min-height: 124px; }
.hub-detail h3 { font-size: 1.125rem; display: flex; align-items: center; gap: 10px; }
.hub-detail h3 .icon { color: var(--blue-700); }
.hub-detail p { margin-top: 8px; color: var(--slate-600); }
@media (max-width: 960px) { .integration { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hub-node { width: 92px; font-size: 0.8rem; } .hub-node .icon-chip { width: 52px; height: 52px; border-radius: 15px; } .hub-core strong { font-size: 0.8rem; } }

/* ---------- Proceso en línea de tiempo ---------- */
.timeline { position: relative; display: grid; gap: clamp(40px, 6vh, 72px); max-width: 920px; margin-inline: auto; padding-left: 96px; list-style: none; }
.timeline-track { position: absolute; left: 31px; top: 8px; bottom: 8px; width: 2px; background: var(--slate-200); border-radius: 2px; }
.timeline-fill { position: absolute; inset: 0; background: linear-gradient(var(--blue-600), var(--blue-300)); transform-origin: 50% 0; transform: scaleY(0); border-radius: 2px; }
.tl-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.tl-dot { position: absolute; left: -96px; top: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--slate-200); color: var(--slate-500); font: 700 1.1rem/1 var(--font-head); transition: border-color 400ms var(--ease-out), color 400ms var(--ease-out), background-color 400ms var(--ease-out); }
.tl-item.is-active .tl-dot { border-color: var(--blue-700); background: var(--blue-700); color: var(--white); }
.tl-item h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.85rem); }
.tl-item p { margin-top: 10px; max-width: 560px; color: var(--slate-600); font-size: var(--fs-lead); }
.tl-meta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--blue-50); color: var(--blue-800); font: 600 0.9rem/1 var(--font-head); white-space: nowrap; }
@media (max-width: 700px) {
  .timeline { padding-left: 64px; }
  .timeline-track { left: 21px; }
  .tl-dot { left: -64px; width: 44px; height: 44px; font-size: 0.95rem; }
  .tl-item { grid-template-columns: 1fr; gap: 12px; }
  .tl-meta { justify-self: start; }
}

/* ---------- Mosaico de industrias ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ind-tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 4.4; padding: 26px; border-radius: var(--r-lg); color: var(--white); text-decoration: none; background: var(--navy-900); }
.ind-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.ind-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.25) 60%, rgba(2, 6, 23, 0.05) 100%); transition: background-color 400ms ease; }
.ind-tile:hover img { transform: scale(1.08); }
.ind-tile .icon-chip { position: absolute; top: 22px; left: 22px; background: rgba(255, 255, 255, 0.14); color: var(--white); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ind-tile h3 { color: var(--white); font-size: 1.3rem; }
.ind-tile p { margin-top: 6px; color: #cbd5e1; font-size: var(--fs-small); max-height: 0; opacity: 0; transition: max-height 500ms var(--ease-out), opacity 400ms var(--ease-out); }
.ind-tile:hover p, .ind-tile:focus-visible p { max-height: 80px; opacity: 1; }
.ind-tile .arrow { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--navy-900); transition: transform 400ms var(--ease-out); }
.ind-tile:hover .arrow { transform: rotate(45deg); }
@media (hover: none) { .ind-tile p { max-height: none; opacity: 1; } }
@media (max-width: 960px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ind-grid { grid-template-columns: 1fr; } .ind-tile { aspect-ratio: 4 / 3.4; } }

/* ---------- Galería con parallax ---------- */
.pgallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pgallery-col { display: grid; gap: 20px; }
.pgallery-col:nth-child(2) { margin-top: 90px; }
.pgallery-col:nth-child(3) { margin-top: 30px; }
.pgallery figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--slate-100); }
.pgallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 900ms var(--ease-out); }
.pgallery figure:hover img { transform: scale(1.05); }
.pgallery figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: var(--r-md); background: rgba(2, 6, 23, 0.72); color: var(--white); font-size: 0.9rem; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.pgallery figure:hover figcaption { opacity: 1; transform: none; }
@media (max-width: 760px) { .pgallery { grid-template-columns: 1fr 1fr; } .pgallery-col:nth-child(3) { display: none; } .pgallery-col:nth-child(2) { margin-top: 48px; } }

/* ---------- Bloques divididos ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-media { position: relative; border-radius: var(--r-xl); overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 8px; background: rgba(2, 6, 23, 0.7); color: var(--white); font-size: 0.8rem; }
.split-copy > p { margin-top: 20px; color: var(--slate-600); font-size: var(--fs-lead); }
.split-copy > p + p { font-size: var(--fs-body); margin-top: 14px; }
.split-copy .checks { margin-top: 28px; }
.split-copy .checks li { font-size: var(--fs-body); }
.split-copy .btn, .split-copy .text-link { margin-top: 32px; }
.split-badge { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 14px; align-items: center; max-width: 260px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--white); color: var(--navy-900); box-shadow: var(--sh-lg); }
.split-badge strong { display: block; font: 700 1rem/1.2 var(--font-head); }
.split-badge span { display: block; font-size: 0.875rem; color: var(--slate-600); line-height: 1.35; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-media img { aspect-ratio: 16 / 11; } }

.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--fs-small); line-height: 1.5; color: var(--navy-800); }
.checks .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--blue-700); stroke-width: 2.25; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.feature { padding: 20px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--slate-200); transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out); }
.feature:hover { border-color: var(--blue-600); transform: translateY(-3px); }
.feature h3 { margin-top: 14px; font-size: 1.0625rem; }
.feature p { margin-top: 6px; font-size: var(--fs-small); color: var(--slate-600); }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Llamado final ---------- */
.final-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: var(--white); padding-block: clamp(96px, 12vw, 180px); text-align: center; }
.final-cta-media { position: absolute; inset: -10% 0; z-index: -2; opacity: 0.28; }
.final-cta-media img { width: 100%; height: 100%; object-fit: cover; }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(2, 6, 23, 0.4) 0%, rgba(2, 6, 23, 0.95) 70%); }
.final-cta h2 { color: var(--white); font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5.25rem); line-height: 1.02; max-width: 980px; margin-inline: auto; }
.final-cta p { margin: 26px auto 0; max-width: 620px; font-size: var(--fs-lead); color: var(--slate-300); }
.final-cta .hero-actions { justify-content: center; }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--navy-950); padding-block: clamp(96px, 12vw, 170px) clamp(64px, 7vw, 110px); }
.page-hero-media { position: absolute; inset: -8% 0 0; z-index: -2; will-change: transform; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.8) 50%, rgba(2, 6, 23, 0.4) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0) 50%); }
.page-hero--plain::before { background: radial-gradient(ellipse at 80% 0%, rgba(29, 113, 184, 0.35), rgba(2, 6, 23, 0) 60%); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: var(--slate-400); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--slate-500); }
.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { margin-top: 24px; max-width: 900px; color: var(--white); font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; }
.page-hero .hero-lead { max-width: 700px; }
.page-hero .hero-actions { margin-top: 34px; }

.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.benefit { padding: 30px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--slate-200); transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out), border-color 300ms ease; }
.benefit:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: transparent; }
.benefit:hover .icon-chip { background: var(--blue-700); color: var(--white); transform: rotate(-6deg); }
.benefit h3 { margin-top: 22px; }
.benefit p { margin-top: 10px; color: var(--slate-600); }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } }

.challenges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: ch; }
.challenge { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--slate-200); counter-increment: ch; transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.challenge:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.challenge::after { content: counter(ch, decimal-leading-zero); position: absolute; top: 22px; right: 24px; font: 700 0.95rem/1 var(--font-head); color: var(--slate-300); }
.challenge h3 { margin-top: 20px; font-size: 1.125rem; }
.challenge p { margin-top: 8px; font-size: var(--fs-small); color: var(--slate-600); }
@media (max-width: 1024px) { .challenges { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .challenges { grid-template-columns: 1fr; } }

.solutions { display: grid; gap: 14px; }
.solution { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 26px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--slate-200); text-decoration: none; transition: border-color 300ms ease, transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.solution:hover { border-color: var(--blue-600); transform: translateX(6px); box-shadow: var(--sh-md); }
.solution h3 { font-size: 1.15rem; }
.solution p { margin-top: 4px; color: var(--slate-600); font-size: var(--fs-small); }
.solution .arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--slate-200); color: var(--navy-900); transition: background-color 300ms ease, color 300ms ease, transform 400ms var(--ease-out); }
.solution:hover .arrow { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); transform: rotate(45deg); }
@media (max-width: 600px) { .solution { grid-template-columns: 44px 1fr; } .solution .arrow { display: none; } .solution .icon-chip--lg { width: 44px; height: 44px; } }

.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.scope-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--slate-200); transition: border-color 300ms ease; }
.scope-item:hover { border-color: var(--blue-600); }
.scope-item h3 { font-size: 1.0625rem; }
.scope-item p { margin-top: 4px; font-size: var(--fs-small); color: var(--slate-600); }
@media (max-width: 760px) { .scope { grid-template-columns: 1fr; } }

.tech-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-list li { padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--slate-200); font: 500 0.95rem/1.2 var(--font-head); color: var(--navy-800); transition: border-color 250ms ease, color 250ms ease; }
.tech-list li:hover { border-color: var(--blue-600); color: var(--blue-700); }

.gallery3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.gallery3 figure { position: relative; margin: 0; height: 420px; border-radius: var(--r-lg); overflow: hidden; }
.gallery3 img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.gallery3 figure:hover img { transform: scale(1.05); }
.gallery3 figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: var(--r-md); background: rgba(2, 6, 23, 0.72); color: var(--white); font-size: 0.875rem; line-height: 1.35; }
@media (max-width: 900px) { .gallery3 { grid-template-columns: 1fr 1fr; } .gallery3 figure { height: 240px; } .gallery3 figure:first-child { grid-column: 1 / -1; } .gallery3 figure:not(:first-child) figcaption { display: none; } }

.related { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.related a { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-lg); text-decoration: none; background: var(--white); border: 1px solid var(--slate-200); transition: border-color 300ms ease, transform 400ms var(--ease-out), box-shadow 400ms ease; }
.related a:hover { border-color: var(--blue-600); transform: translateY(-5px); box-shadow: var(--sh-md); }
.related a:hover .icon-chip { background: var(--blue-700); color: var(--white); }
.related strong { font: 600 1rem/1.3 var(--font-head); }
.related span.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--blue-700); font-weight: 600; }
@media (max-width: 1080px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .related { grid-template-columns: 1fr 1fr; } }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Preguntas frecuentes ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-aside p { margin-top: 18px; color: var(--slate-600); }
.faq-aside .btn { margin-top: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin-bottom: 20px; }
.faq-item { border: 1px solid var(--slate-200); border-radius: var(--r-lg); background: var(--white); transition: border-color 250ms ease, box-shadow 250ms ease; }
.faq-item[open] { border-color: var(--slate-300); box-shadow: var(--sh-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font: 600 1.0625rem/1.4 var(--font-head); color: var(--navy-900); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; width: 22px; height: 22px; color: var(--blue-700); transition: transform 300ms var(--ease-out); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 24px; color: var(--slate-600); }
.faq-item[open] .faq-answer { animation: faq-in 380ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); filter: blur(3px); } }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-aside { position: static; } }

/* ---------- Banda de llamado ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 80px); background: var(--blue-700); color: var(--white); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta-band::after { content: ""; position: absolute; z-index: -1; right: -140px; top: -140px; width: 460px; height: 460px; border-radius: 50%; border: 80px solid rgba(255, 255, 255, 0.07); }
.cta-band h2 { color: var(--white); }
.cta-band p { margin-top: 14px; font-size: var(--fs-lead); color: var(--blue-100); max-width: 620px; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contacto y formularios ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-info > p { margin-top: 18px; font-size: var(--fs-lead); color: var(--slate-600); }
.size-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--blue-50); color: var(--navy-800); }
.size-note .icon { color: var(--blue-700); margin-top: 2px; }
.channel-list { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--slate-200); text-decoration: none; transition: border-color 250ms ease, transform 400ms var(--ease-out), box-shadow 400ms ease; }
a.channel:hover { border-color: var(--blue-600); transform: translateY(-3px); box-shadow: var(--sh-sm); }
.channel small { display: block; font-size: 0.875rem; color: var(--slate-500); }
.channel strong { display: block; font: 600 1.0625rem/1.3 var(--font-head); color: var(--navy-900); }
.form-card { padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--slate-200); box-shadow: var(--sh-md); }
.form-card h2 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem); }
.form-card > p { margin-top: 8px; color: var(--slate-600); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 600 0.9375rem/1.3 var(--font-head); color: var(--navy-800); }
.req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 14px 16px; font: 400 1rem/1.4 var(--font-body); color: var(--navy-900); background: var(--bg); border: 1px solid var(--slate-300); border-radius: var(--r-md); transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(29, 113, 184, 0.16); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 0.875rem; color: var(--danger); }
.size-pick { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; }
.size-pick legend { font: 600 0.9375rem/1.3 var(--font-head); color: var(--navy-800); margin-bottom: 10px; padding: 0; }
.size-pick div { display: flex; flex-wrap: wrap; gap: 10px; }
.size-pick label { position: relative; }
.size-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.size-pick span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--slate-300); background: var(--bg); font: 500 0.95rem/1 var(--font-head); cursor: pointer; transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out), border-color 250ms var(--ease-out), transform 150ms var(--ease-out); }
.size-pick input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.size-pick input:focus-visible + span { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.size-pick input:active + span { transform: scale(0.96); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form-foot small { font-size: 0.875rem; color: var(--slate-500); max-width: 380px; }
.form-foot small a { color: var(--blue-700); }
.form-alt { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--slate-200); font-size: var(--fs-small); color: var(--slate-600); }
.form-alt a { color: var(--navy-900); font-weight: 600; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 14px; color: var(--navy-800); }
.prose ul { padding-left: 22px; }
.prose .note { margin-top: 24px; padding: 18px 20px; border-radius: var(--r-md); background: #fef9c3; color: #713f12; font-size: var(--fs-small); }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-950); color: var(--slate-400); padding-top: clamp(72px, 8vw, 110px); font-size: var(--fs-small); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer .logo-text strong { color: var(--white); }
.footer .logo-text span { color: var(--slate-400); }
.footer .logo img { height: 56px; }
.footer-brand p { margin-top: 20px; max-width: 340px; line-height: 1.6; }
.footer-brand .btn { margin-top: 24px; }
.footer h3 { font: 600 var(--fs-label)/1 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.footer-list { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.footer-list a { color: var(--slate-300); text-decoration: none; transition: color 200ms ease; }
.footer-list a:hover { color: var(--white); }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--blue-300); }
.footer-mark { margin-top: 72px; font: 700 clamp(4rem, 1rem + 15vw, 15rem)/0.8 var(--font-head); letter-spacing: -0.05em; color: rgba(148, 163, 184, 0.08); white-space: nowrap; user-select: none; }
.footer-bottom { padding-block: 24px; border-top: 1px solid rgba(148, 163, 184, 0.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 0.875rem; }
.footer-bottom a { color: var(--slate-300); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 16px; border-radius: 999px; background: var(--whatsapp); color: #052e16; text-decoration: none; font: 600 0.975rem/1 var(--font-head); box-shadow: 0 14px 30px -10px rgba(22, 163, 74, 0.7); transition: transform 300ms var(--ease-out); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float:active { transform: scale(0.96); }
.wa-float .icon { width: 26px; height: 26px; }
@media (max-width: 640px) { .wa-float { width: 58px; padding: 0; justify-content: center; } .wa-float span { display: none; } }

/* ---------- Estados iniciales del movimiento ----------
   Solo se ocultan cuando main.js confirma que GSAP cargó (clase .motion en <html>).
   Si la librería no carga, todo el contenido queda visible. */
.motion [data-reveal], .motion [data-stagger] > *, .motion [data-split], .motion [data-hero] { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
