/* =============================================================
   HF Sistemas Informáticos — styles.css
   1. Tokens · 2. Reset · 3. Utilities · 4. Typography
   5. Components · 6. Layout chrome · 7. Pages · 8. Effects
   9. Responsive · 10. Reduced motion (only intrusive)
   ============================================================= */

/* ---------- 1. Tokens ---------- */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --ink: #15132b;
  --ink-soft: #35324f;
  --muted: #5b5878;
  --bg: #e4e8f7;
  --bg-lav: #dcd5f8;
  --bg-sky: #e6f1f8;
  --white: #ffffff;

  --violet: #7b70e3;
  --violet-2: #5b4fd1;
  --indigo: #3a3299;
  --lavender: #d9d3f8;
  --sky: #c6def6;
  --blue: #3f8cf0;
  --cyan: #4fd4f2;
  --lime: #dfe56b;
  --lime-2: #c9d24a;
  --pink: #e5a9f0;

  --display: "Poppins", system-ui, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;

  --r-xl: 44px;
  --r-lg: 32px;
  --r-md: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 84px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-soft: 0 30px 80px -30px rgba(58, 50, 153, 0.35);
  --shadow-card: 0 18px 50px -20px rgba(40, 34, 110, 0.35);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3. Utilities ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10000;
  padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 12vw, 160px); }

/* ---------- 4. Typography ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--violet-2);
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 0 4px rgba(123,112,227,.18);
  animation: pulse 2.4s var(--ease-soft) infinite;
}
.h-xl { font-weight: 800; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: .95; }
.h-lg { font-weight: 800; font-size: clamp(2rem, 4.6vw, 4rem); }
.h-md { font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
.grad-text {
  background: linear-gradient(100deg, var(--violet-2), var(--blue) 45%, var(--violet) 70%, var(--violet-2));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 8s linear infinite;
}

/* ---------- 5. Components ---------- */
.btn {
  --bg-btn: var(--ink); --fg-btn: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .98rem; line-height: 1;
  background: var(--bg-btn); color: var(--fg-btn);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), color .4s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, var(--violet-2), var(--blue), var(--violet));
  transform: translateY(101%); border-radius: inherit;
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 40px -12px rgba(91,79,209,.6); color: #fff; }
.btn .arrow { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn-lime { --bg-btn: var(--lime); --fg-btn: var(--ink); }
.btn-ghost {
  --bg-btn: rgba(255,255,255,.55); --fg-btn: var(--ink);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn-sm { padding: .75rem 1.2rem; font-size: .9rem; }

.glass {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
}
@supports (backdrop-filter: blur(20px)) {
  .glass {
    background: rgba(255,255,255,.42);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
  }
}

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  box-shadow: var(--shadow-card);
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(223,229,107,.35); }

/* ---------- 6. Layout chrome ---------- */

/* Background mesh */
.bg-mesh { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(70px); opacity: .75; will-change: transform;
}
.blob.b1 { width: 46vw; height: 46vw; left: 50%; top: 20%; margin: -23vw 0 0 -23vw; background: radial-gradient(circle, #8f84f0 0%, rgba(143,132,240,0) 70%); }
.blob.b2 { width: 40vw; height: 40vw; right: -10vw; top: -12vw; background: radial-gradient(circle, #e9b8f3 0%, rgba(233,184,243,0) 70%); animation: float1 22s var(--ease-soft) infinite alternate; }
.blob.b3 { width: 38vw; height: 38vw; left: -12vw; bottom: -14vw; background: radial-gradient(circle, #7cc6ff 0%, rgba(124,198,255,0) 70%); animation: float2 26s var(--ease-soft) infinite alternate; }
.blob.b4 { width: 30vw; height: 30vw; right: 6vw; bottom: -10vw; background: radial-gradient(circle, #e6ec86 0%, rgba(230,236,134,0) 70%); animation: float3 30s var(--ease-soft) infinite alternate; opacity: .55; }
.page-empresa { background: var(--bg-lav); }
.page-servicios { background: var(--bg-sky); }
.page-servicios .blob.b2 { background: radial-gradient(circle, #a9d0f7 0%, rgba(169,208,247,0) 70%); }

.grain {
  position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9500;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* Custom cursor */
.cursor { position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--ink); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid rgba(91,79,209,.55);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .45s, border-color .45s;
}
.cursor.is-hover .cursor-ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(123,112,227,.14); border-color: transparent; }
.cursor.is-label .cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--lime); border-color: transparent; }
.cursor-label { font-style: normal; font-family: var(--display); font-weight: 700; font-size: .8rem; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor-label { opacity: 1; }
html.cursor-on, html.cursor-on a, html.cursor-on button, html.cursor-on [role="tab"], html.cursor-on label { cursor: none; }
html.cursor-on input, html.cursor-on textarea, html.cursor-on select { cursor: text; }

/* Curtain (page transitions) */
.curtain {
  position: fixed; inset: 0; z-index: 9600; pointer-events: none;
  background: linear-gradient(135deg, var(--violet-2), var(--violet) 45%, var(--blue));
  display: grid; place-items: center;
  animation: curtainOut .9s var(--ease-out) .05s forwards;
}
.curtain svg { width: 110px; color: #fff; --logo-accent: var(--lime); }
.curtain.is-done { animation: none; transform: translateY(-101%); visibility: hidden; }
html.is-leaving .curtain { animation: curtainIn .55s var(--ease-in) forwards; visibility: visible; }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 9700; background: var(--bg);
  display: grid; place-items: center; text-align: center;
  transition: clip-path 1s var(--ease-out), opacity .6s;
  clip-path: inset(0 0 0 0);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
.splash-logo { width: min(240px, 50vw); color: var(--ink); --logo-accent: var(--violet); }
.splash-logo rect { transform-box: fill-box; animation: barIn .9s var(--ease-out) both; }
.splash-logo rect:nth-child(1) { transform-origin: 50% 100%; animation-delay: .05s; }
.splash-logo rect:nth-child(2) { transform-origin: 0 50%; animation-delay: .2s; }
.splash-logo rect:nth-child(3) { transform-origin: 50% 0; animation-delay: .3s; }
.splash-logo rect:nth-child(4) { transform-origin: 50% 100%; animation-delay: .4s; }
.splash-logo rect:nth-child(5) { transform-origin: 0 50%; animation-delay: .55s; }
.splash-logo rect:nth-child(6) { transform-origin: 0 50%; animation-delay: .65s; }
.splash-sub { margin-top: 1.4rem; font-family: var(--display); font-weight: 700; letter-spacing: .3em; font-size: .78rem; color: var(--ink-soft); }
.splash-count { margin-top: .6rem; font-family: var(--display); font-weight: 300; font-size: .9rem; color: var(--violet-2); font-variant-numeric: tabular-nums; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  padding: 16px var(--gutter);
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-120%); }
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background .5s, border-color .5s, box-shadow .5s, backdrop-filter .5s;
}
.nav.is-scrolled .nav-inner {
  background: rgba(255,255,255,.72); border-color: rgba(255,255,255,.95);
  box-shadow: 0 10px 40px -18px rgba(40,34,110,.35);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled .nav-inner { background: rgba(255,255,255,.45); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }
}
.nav-logo { display: block; width: 92px; color: var(--violet); --logo-accent: var(--violet); }
.nav-logo svg { width: 100%; height: auto; transition: transform .5s var(--ease-bounce); }
.nav-logo:hover svg { transform: scale(1.06) rotate(-2deg); }
.nav-links { display: none; align-items: center; gap: .25rem; }
.nav-links a {
  position: relative; padding: .6rem 1rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 1.05rem; color: var(--ink-soft);
  transition: color .3s, background .3s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 800; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--violet);
}
.nav-cta { display: none; }
.nav-burger {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink);
  display: grid; place-content: center; gap: 6px;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .45s var(--ease-out), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 8900;
  background: linear-gradient(160deg, #efeaff, var(--lavender) 50%, #cfe3f8);
  display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  padding: 110px var(--gutter) 40px;
  /* Whole panel fades in at once, so every link appears together */
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out), visibility 0s; }
.menu a {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.1;
  color: var(--ink); transform: translateY(16px);
  transition: transform .45s var(--ease-out), color .3s;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--violet-2); }
.menu.is-open a { transform: none; }
.menu small { margin-top: 2rem; color: var(--muted); font-weight: 600; }

/* Footer */
.footer { position: relative; margin-top: clamp(40px, 8vw, 100px); background: #fff; color: var(--ink); }
.footer-wave { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: clamp(40px, 7vw, 110px); color: #fff; }
.footer-big {
  display: block; padding-top: clamp(20px, 4vw, 40px);
  font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 13vw, 12rem); line-height: .9; letter-spacing: -.04em;
  white-space: nowrap; overflow: hidden; padding-bottom: .1em;
}
.footer-big-track { display: inline-flex; gap: .4em; animation: marquee 22s linear infinite; }
.footer-big-track span { -webkit-text-stroke: 2px var(--ink); color: transparent; transition: color .5s; }
.footer-big-track span:nth-child(even) { color: var(--violet); -webkit-text-stroke: 0; }
.footer-big:hover .footer-big-track span { color: var(--ink); }
.footer-big:hover .footer-big-track span:nth-child(even) { color: var(--lime-2); }
.footer-row {
  display: grid; gap: 28px; align-items: center;
  padding-block: clamp(36px, 5vw, 56px) 36px;
  border-top: 1px solid rgba(21,19,43,.08); margin-top: clamp(24px, 4vw, 48px);
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; width: 170px; color: var(--violet); --logo-accent: var(--violet); }
.footer-brand svg { width: 110px; }
.footer-brand b { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff;
  display: grid; place-items: center;
  transition: transform .5s var(--ease-bounce), background .3s;
}
.social a:hover { transform: translateY(-4px) rotate(-6deg); background: var(--violet-2); }
.social svg { width: 20px; height: 20px; }
.legal { font-size: .9rem; color: var(--muted); }
.legal nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; }
.legal a { position: relative; color: var(--ink-soft); }
.legal a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.legal a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 7. Pages ---------- */

/* ===== HOME / Hero ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 30px); padding-bottom: 80px;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-canvas canvas { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-logo { width: clamp(150px, 22vw, 290px); color: var(--ink); --logo-accent: var(--violet); margin-bottom: clamp(14px, 2vw, 22px); }
.hero-logo svg { overflow: visible; }
.hero-logo rect { transform-box: fill-box; }
.hero-title { font-weight: 800; font-size: clamp(2.6rem, 7.2vw, 6.6rem); line-height: .93; letter-spacing: -.035em; text-transform: uppercase; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-tag { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 34ch; color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.verifactu {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 1.5rem;
  padding: 10px 18px 10px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-card);
  font-family: var(--display); font-weight: 600; font-size: .72rem; line-height: 1.25; color: var(--muted);
}
.verifactu img { height: 34px; width: auto; }
.hero-chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none; }
.hero-chips .chip { position: absolute; }
.hero-chips .chip:nth-child(1) { right: 30%; top: 24%; }
.hero-chips .chip:nth-child(2) { right: 8%; top: 46%; }
.hero-chips .chip:nth-child(3) { right: 24%; bottom: 18%; }
.hero-chips .chip:nth-child(4) { right: 10%; top: 30%; }
.hero-chips .chip:nth-child(5) { right: 30%; top: 60%; }
.hero-chips .chip:nth-child(6) { right: 9%; bottom: 30%; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: .7rem; letter-spacing: .25em; color: var(--muted);
}
.scroll-hint i { display: block; width: 1.5px; height: 46px; background: rgba(21,19,43,.15); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--violet-2); animation: scrollLine 2s var(--ease-out) infinite; }

/* Tapes (crossed marquees) */
.tapes { position: relative; height: clamp(150px, 20vw, 230px); margin-block: clamp(10px, 3vw, 40px); }
.tape {
  position: absolute; left: -5%; right: -5%; top: 50%;
  padding: clamp(12px, 1.6vw, 20px) 0; overflow: hidden; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2.8rem); text-transform: uppercase;
  box-shadow: 0 20px 50px -25px rgba(40,34,110,.5);
}
.tape-a { background: var(--lime); color: var(--ink); transform: translateY(-50%) rotate(-3.5deg); z-index: 2; }
.tape-b { background: var(--ink); color: #fff; transform: translateY(-50%) rotate(2.5deg); }
.tape-track { display: inline-flex; align-items: center; gap: 1.2em; animation: marquee 28s linear infinite; }
.tape-b .tape-track { animation-direction: reverse; animation-duration: 34s; }
.tape-track svg { width: .8em; height: .8em; flex: none; }
.tape-b .tape-track span:nth-child(4n+1) { -webkit-text-stroke: 1.5px #fff; color: transparent; }

/* Statement */
.statement-grid { display: grid; gap: clamp(30px, 5vw, 60px); align-items: center; }
.statement-lines { display: grid; gap: clamp(10px, 1.6vw, 22px); }
.statement-lines p {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3.9rem); line-height: 1.05; letter-spacing: -.025em;
}
.statement-lines b { font-weight: 800; }
.statement-side { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 36ch; }
.statement-side .kicker { margin-bottom: 1rem; }

/* Horizontal services */
.hs { position: relative; padding-block: clamp(60px, 8vw, 100px); }
.hs-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(30px, 4vw, 50px); }
.hs-track { display: grid; gap: 22px; padding-inline: var(--gutter); }
.svc {
  --c1: #d9ecff; --c2: #9cc5f2;
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 460px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: var(--shadow-card); overflow: hidden; isolation: isolate;
  transform-style: preserve-3d; color: var(--ink);
}
.svc::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.45), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.svc:hover::after { opacity: 1; }
.svc-2 { --c1: #c7c2f8; --c2: #8a82e0; }
.svc-3 { --c1: #9c95d8; --c2: #5a54ab; color: #fff; }
.svc-4 { --c1: #eef19a; --c2: #d4da5a; }
.svc-num { font-family: var(--display); font-weight: 300; font-size: .95rem; opacity: .7; }
.svc h3 { font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: .3rem; }
.svc p { margin-top: .6rem; max-width: 30ch; opacity: .85; }
.svc-illu { width: 76%; max-width: 280px; align-self: center; margin-block: 10px; filter: drop-shadow(0 22px 26px rgba(40,34,110,.28)); animation: floaty 6s var(--ease-soft) infinite alternate; transform: translateZ(40px); }
.svc-illu svg { width: 100%; height: auto; overflow: visible; }
.svc-2 .svc-illu { animation-delay: -1.5s; }
.svc-3 .svc-illu { animation-delay: -3s; }
.svc-4 .svc-illu { animation-delay: -4.5s; }
.svc-go {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .92rem;
  padding: .7rem 1.1rem; border-radius: 999px; background: rgba(255,255,255,.6);
  transition: background .3s, gap .4s var(--ease-out);
}
.svc-3 .svc-go { background: rgba(255,255,255,.18); }
.svc:hover .svc-go { gap: .9rem; background: #fff; color: var(--ink); }
.svc-go svg { width: 16px; height: 16px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(21,19,43,.1); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: rgba(255,255,255,.55); padding: clamp(22px, 3vw, 40px); }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -.04em; }
.stat strong em { font-style: normal; color: var(--violet); }
.stat > span { display: block; margin-top: .5rem; color: var(--muted); font-weight: 600; }

/* Packages */
.packs-section { position: relative; }
.packs-bg { position: absolute; inset: -10% 0; z-index: -1; pointer-events: none; }
.packs-bg i { position: absolute; border-radius: 50%; filter: blur(60px); }
.packs-bg i:nth-child(1) { width: 40vw; height: 40vw; left: -8vw; top: 0; background: radial-gradient(circle, rgba(79,180,245,.7), transparent 70%); }
.packs-bg i:nth-child(2) { width: 36vw; height: 36vw; right: -6vw; top: 18%; background: radial-gradient(circle, rgba(212,224,90,.75), transparent 70%); }
.packs-bg i:nth-child(3) { width: 34vw; height: 34vw; left: 30%; bottom: 0; background: radial-gradient(circle, rgba(123,100,235,.75), transparent 70%); }
.packs { display: grid; gap: clamp(20px, 3vw, 40px); margin-top: clamp(30px, 5vw, 60px); max-width: 980px; margin-inline: auto; }
.pack {
  position: relative; border-radius: var(--r-xl); padding: 3px; isolation: isolate;
  background: conic-gradient(from var(--angle), rgba(255,255,255,.95), rgba(123,112,227,.9) 25%, rgba(79,212,242,.9) 45%, rgba(255,255,255,.95) 60%, rgba(223,229,107,.95) 80%, rgba(255,255,255,.95));
  animation: spin 7s linear infinite;
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
}
.pack-in {
  position: relative; height: 100%; border-radius: calc(var(--r-xl) - 3px);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3.4vw, 44px);
  text-align: center; display: flex; flex-direction: column; align-items: center;
  background: rgba(240,242,252,.88);
}
@supports (backdrop-filter: blur(20px)) {
  .pack-in { background: rgba(240,242,252,.62); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
}
.pack-tag { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 999px; background: var(--ink); color: #fff; }
.pack-tag.alt { background: var(--lime); color: var(--ink); }
.pack h3 { margin-top: 1rem; font-weight: 800; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.pack-inc { margin-top: 1.2rem; font-family: var(--sans); font-weight: 700; color: var(--violet-2); }
.pack ul { list-style: none; padding: 0; margin-top: .6rem; display: grid; gap: .55rem; font-size: 1.05rem; }
.pack li { display: flex; align-items: center; justify-content: center; gap: .55rem; }
.pack li svg { width: 18px; height: 18px; flex: none; color: var(--violet-2); }
.pack-price { margin-top: 1.4rem; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.03em; line-height: 1; }
.pack-price small { display: block; font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: 0; color: var(--muted); margin-bottom: .3rem; }
.pack .btn { margin-top: 1.6rem; }
.packs-note { text-align: center; margin-top: 2.4rem; color: var(--ink-soft); }
.packs-note a { font-weight: 800; color: var(--violet-2); border-bottom: 2px solid var(--lime); }

/* Big CTA */
.cta-big { text-align: center; }
.cta-big h2 { font-weight: 800; font-size: clamp(2.2rem, 6.4vw, 6rem); line-height: .98; letter-spacing: -.04em; max-width: 16ch; margin-inline: auto; }
.cta-big p { margin: 1.4rem auto 2rem; max-width: 44ch; color: var(--ink-soft); }

/* ===== EMPRESA ===== */
.quote-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding-top: var(--nav-h); text-align: center; overflow: hidden; }
.quote-hero h1 {
  position: relative; z-index: 2;
  font-weight: 400; font-size: clamp(2.2rem, 5.8vw, 5.6rem); line-height: 1.12; letter-spacing: -.03em; max-width: 17ch; margin-inline: auto;
}
.quote-hero h1 .hl { color: var(--violet-2); }
.story-grid { display: grid; gap: clamp(30px, 5vw, 70px); align-items: center; }
.globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; margin-inline: auto; }
.globe canvas { width: 100%; height: 100%; }
.globe-badge {
  position: absolute; right: 4%; bottom: 10%; padding: 18px 22px; border-radius: 22px; box-shadow: var(--shadow-card);
  font-family: var(--display); text-align: left;
}
.globe-badge strong { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.globe-badge span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.story-text p { font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.5; color: var(--ink); }
.story-text p + p { margin-top: 1.2rem; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ink-soft); }
.story-text .kicker { margin-bottom: 1.2rem; }

.timeline { position: relative; margin-top: clamp(40px, 6vw, 70px); }
.tl-line { position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: rgba(21,19,43,.1); }
.tl-fill { position: absolute; inset: 0; background: linear-gradient(var(--violet), var(--blue)); transform-origin: 0 0; transform: scaleY(0); }
.tl-items { list-style: none; padding: 0; display: grid; gap: 34px; }
.tl-item { position: relative; padding-left: 46px; }
.tl-item::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--violet); box-shadow: 0 0 0 6px rgba(123,112,227,.15);
}
.tl-item b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.tl-item span { display: block; color: var(--ink-soft); margin-top: .3rem; max-width: 30ch; }

.values { display: grid; gap: 20px; margin-top: clamp(30px, 5vw, 60px); }
.values > div { display: flex; }
.values > div > .value { flex: 1; }
.value { border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-card); transform-style: preserve-3d; position: relative; overflow: hidden; }
.value b { font-family: var(--display); font-weight: 300; font-size: 3.6rem; line-height: 1; color: var(--violet); display: block; }
.value h3 { margin-top: 1rem; font-weight: 800; font-size: 1.5rem; }
.value p { margin-top: .5rem; color: var(--ink-soft); }

/* ===== SERVICIOS ===== */
.svc-hero { position: relative; padding-top: calc(var(--nav-h) + 40px); text-align: center; }
/* Blue wash that melts into the page background instead of ending in a hard edge */
.svc-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 95%; background: linear-gradient(180deg, #bcd7f4 0%, #c6ddf5 40%, rgba(201,224,246,.55) 68%, rgba(201,224,246,0) 100%); z-index: -1; pointer-events: none; }
.svc-hero h1 { position: relative; z-index: 2; font-weight: 900; font-size: clamp(4rem, 15vw, 13rem); letter-spacing: -.015em; line-height: 1; }
.sphere { position: relative; z-index: 1; width: min(640px, 92vw); aspect-ratio: 1; margin: clamp(-170px, -11vw, -50px) auto 0; }
.sphere canvas { width: 100%; height: 100%; }
.svc-intro { max-width: 46ch; margin: 0 auto; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-soft); text-align: center; }
.svc-grid { display: grid; gap: 22px; margin-top: clamp(40px, 6vw, 70px); }
.svc-grid .svc { min-height: 420px; cursor: pointer; text-align: left; }

.tabs-wrap { margin-top: clamp(60px, 9vw, 110px); }
.tablist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 760px; margin-inline: auto; }
.tab {
  position: relative; padding: 1rem 1.2rem; border-radius: 999px; background: #fff;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; color: var(--ink-soft);
  box-shadow: 0 6px 20px -12px rgba(40,34,110,.35);
  transition: background .4s var(--ease-out), color .3s, transform .4s var(--ease-bounce);
}
.tab:hover { transform: translateY(-2px); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--lime); color: var(--ink); font-weight: 800; }
.panels { margin-top: clamp(28px, 4vw, 44px); }
.panel { display: grid; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: #d3e2f6; }
.panel[hidden] { display: none; }
.panel-left { padding: clamp(32px, 5vw, 70px); display: grid; place-items: center; text-align: center; }
.panel-left p { font-family: var(--sans); font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.45; max-width: 22ch; }
.panel-right { background: #c4daf4; padding: clamp(16px, 2.6vw, 34px); }
.panel-card { background: #f4f8fe; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-lg); padding: clamp(24px, 3vw, 40px); height: 100%; display: grid; gap: 1.6rem; align-content: start; }
.panel-card div { animation: panelIn .7s var(--ease-out) both; }
.panel-card div:nth-child(2) { animation-delay: .08s; }
.panel-card div:nth-child(3) { animation-delay: .16s; }
.panel-card b { display: block; font-weight: 800; }
.panel-card p { color: var(--ink-soft); }
.panel-left p { animation: panelIn .8s var(--ease-out) both; }

/* ===== AKRAGES ERP ===== */
.erp-hero {
  position: relative; min-height: 88vh; min-height: 88svh; display: grid; place-items: center; text-align: center; overflow: hidden;
  padding-top: var(--nav-h);
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(124,198,255,.9), transparent 70%),
    radial-gradient(50% 60% at 75% 60%, rgba(123,100,235,.95), transparent 70%),
    linear-gradient(180deg, #d9d2fb, #8f86ec);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.erp-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.erp-title {
  position: relative; z-index: 2; padding: clamp(18px, 2.6vw, 30px) clamp(30px, 5vw, 70px); border-radius: 28px;
  border: 2px solid rgba(255,255,255,.8); box-shadow: 0 20px 60px -20px rgba(40,34,110,.45);
}
.erp-title h1 { font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5.6rem); color: #fff; text-shadow: 0 4px 30px rgba(58,50,153,.35); }
.erp-sub { position: relative; z-index: 2; margin-top: 1.4rem; color: #fff; font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.erp-intro { max-width: 58ch; margin-inline: auto; text-align: center; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.5; }
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 70px); }
.module {
  position: relative; border-radius: var(--r-md); padding: 22px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 10px 30px -18px rgba(40,34,110,.4);
  transition: transform .5s var(--ease-out), background .4s, box-shadow .5s;
  overflow: hidden;
}
.module::before { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, var(--violet), var(--blue)); opacity: 0; transition: opacity .5s; z-index: -1; }
.module { isolation: isolate; }
.module:hover { transform: translateY(-6px); color: #fff; box-shadow: 0 24px 50px -20px rgba(58,50,153,.6); }
.module:hover::before { opacity: 1; }
.module svg { width: 34px; height: 34px; color: var(--violet-2); transition: color .4s, transform .6s var(--ease-bounce); }
.module:hover svg { color: var(--lime); transform: rotate(-10deg) scale(1.1); }
.module h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.module.wide { grid-column: span 2; background: var(--ink); color: #fff; }
.module.wide svg { color: var(--lime); }

.mock-wrap { position: relative; margin-top: clamp(60px, 9vw, 120px); }
.mock {
  position: relative; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -40px rgba(40,34,110,.55);
  display: grid; grid-template-columns: 1fr; font-size: .85rem;
  transform: perspective(1600px) rotateX(8deg); transform-origin: 50% 100%;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f2f1fb; border-bottom: 1px solid #e7e5f6; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e1def4; }
.mock-bar i:nth-child(1) { background: #f39a9a; } .mock-bar i:nth-child(2) { background: #f3d68a; } .mock-bar i:nth-child(3) { background: #a7dc9a; }
.mock-bar span { margin-left: 12px; font-family: var(--display); font-weight: 600; color: var(--muted); font-size: .78rem; }
.mock-body { display: grid; grid-template-columns: 1fr; }
.mock-side { display: none; background: var(--ink); color: rgba(255,255,255,.7); padding: 18px 14px; gap: 4px; font-family: var(--display); font-weight: 500; }
.mock-side b { color: #fff; font-weight: 800; font-size: 1rem; margin-bottom: 10px; display: block; }
.mock-side span { display: block; padding: 8px 10px; border-radius: 8px; }
.mock-side span.on { background: rgba(255,255,255,.12); color: #fff; }
.mock-main { padding: 18px; display: grid; gap: 14px; background: #f8f8fd; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 4px 14px -8px rgba(40,34,110,.25); }
.kpi small { color: var(--muted); font-weight: 600; font-size: .7rem; display: block; }
.kpi strong { font-family: var(--display); font-weight: 800; font-size: clamp(1rem, 2vw, 1.45rem); }
.kpi em { font-style: normal; font-size: .7rem; font-weight: 700; color: #3aa76d; }
.charts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.chart { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 4px 14px -8px rgba(40,34,110,.25); }
.chart h4 { font-family: var(--display); font-size: .78rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 10px; letter-spacing: 0; }
.bars { display: flex; align-items: flex-end; gap: 6%; height: 120px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--violet), var(--blue)); height: var(--h); transform-origin: 50% 100%; transform: scaleY(.05); transition: transform 1.2s var(--ease-out); }
.bars i:nth-child(even) { background: linear-gradient(var(--lime), var(--lime-2)); }
.mock.is-visible .bars i { transform: scaleY(1); }
.bars i:nth-child(2) { transition-delay: .06s; } .bars i:nth-child(3) { transition-delay: .12s; } .bars i:nth-child(4) { transition-delay: .18s; }
.bars i:nth-child(5) { transition-delay: .24s; } .bars i:nth-child(6) { transition-delay: .3s; } .bars i:nth-child(7) { transition-delay: .36s; } .bars i:nth-child(8) { transition-delay: .42s; }
.line-chart path.stroke { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease-out) .3s; }
.mock.is-visible .line-chart path.stroke { stroke-dashoffset: 0; }
.phone {
  display: none; position: absolute; right: -2%; bottom: -12%; width: 200px; aspect-ratio: 9/18.5; border-radius: 34px; padding: 10px;
  background: var(--ink); box-shadow: 0 40px 80px -30px rgba(21,19,43,.7);
  animation: floaty 6s var(--ease-soft) infinite alternate;
}
.phone-screen { height: 100%; border-radius: 26px; background: linear-gradient(170deg, #efeaff, #fff 50%); padding: 26px 12px 12px; display: grid; gap: 8px; align-content: start; font-size: .72rem; }
.phone-screen b { font-family: var(--display); font-size: .95rem; }
.phone-row { background: #fff; border-radius: 12px; padding: 9px 10px; box-shadow: 0 4px 10px -6px rgba(40,34,110,.3); display: flex; justify-content: space-between; font-weight: 700; }
.phone-row em { font-style: normal; color: var(--violet-2); }
.phone-cta { margin-top: 4px; background: var(--lime); border-radius: 12px; padding: 10px; text-align: center; font-family: var(--display); font-weight: 700; }
.mock-note { margin-top: 18px; text-align: center; font-size: .82rem; color: var(--muted); }

.erp-statement { text-align: center; }
.erp-statement h2 { font-weight: 800; font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.12; max-width: 24ch; margin-inline: auto; }

/* ===== CONTACTO ===== */
.contact { position: relative; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--nav-h) + 50px); padding-bottom: 80px; }
.tubes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* Tubes run under the footer wave (the white footer covers them) and the svg doesn't clip at its viewBox,
   so no tube ends in a hard straight edge */
.tubes { bottom: calc(-1 * clamp(40px, 8vw, 100px) - 60px); }
.tubes svg { position: absolute; overflow: visible; max-width: none; }
.tubes-defs { width: 0; height: 0; }
.tubes-bottom { left: 0; width: 100%; bottom: 0; height: clamp(140px, 18vw, 300px); }
.tubes-bottom .tube { stroke-width: clamp(46px, 6.5vw, 110px); }
.tubes-bottom .tube-shine { stroke-width: clamp(8px, 1.2vw, 20px); }
.tubes-loop { left: 0; bottom: clamp(60px, 10vw, 150px); width: clamp(150px, 20vw, 360px); height: auto; aspect-ratio: 420 / 620; }
.tubes-arc { right: 0; top: 4%; height: 88%; width: clamp(110px, 16vw, 300px); }
.tube { fill: none; stroke-linecap: round; }
.tube-a { animation: tubeFloat 16s var(--ease-soft) infinite alternate; transform-origin: 30% 50%; }
.tube-b { animation: tubeFloat 20s var(--ease-soft) infinite alternate-reverse; transform-origin: 70% 40%; }
.tube-draw { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 3.2s var(--ease-out) .3s forwards; }
.contact-grid { display: grid; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-intro h1 { font-weight: 800; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; }
.contact-intro > p { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 30ch; }
.steps { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 12px; max-width: 360px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 18px; font-weight: 700; }
.steps li b { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; font-family: var(--display); background: var(--ink); color: #fff; }
.steps li:nth-child(2) b { background: var(--violet); }
.steps li:nth-child(3) b { background: var(--lime); color: var(--ink); }
.form-card {
  border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px);
  background: rgba(255,255,255,.92); box-shadow: 0 40px 90px -40px rgba(40,34,110,.5), 0 0 0 10px rgba(255,255,255,.35);
}
.form { display: grid; grid-template-columns: 1fr; gap: 18px 22px; }
.field { display: grid; gap: 8px; position: relative; }
.field label { font-size: 1.05rem; padding-left: 10px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; border: 2px solid transparent; outline: none;
  background: #e2e2e6; border-radius: 999px; padding: 1rem 1.3rem; font-size: 1rem;
  transition: background .3s, border-color .3s, box-shadow .4s var(--ease-out);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315132b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 18px; padding-right: 3rem; }
.field textarea { border-radius: 34px; min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { background: #fff; border-color: var(--violet); box-shadow: 0 0 0 6px rgba(123,112,227,.15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e06a8a; background: #fff3f6; }
.field .err { font-size: .82rem; color: #c43d63; padding-left: 12px; min-height: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot small { color: var(--muted); max-width: 34ch; }
.form-foot small a { text-decoration: underline; }
.btn-send { --bg-btn: var(--lime); --fg-btn: var(--ink); padding: 1.1rem 2.4rem; font-size: 1.05rem; }
.form-ok { display: none; text-align: center; padding: 30px 0; }
.form-ok svg { width: 74px; height: 74px; margin: 0 auto 16px; color: var(--violet-2); }
.form-ok svg path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.form-card.is-sent .form { display: none; }
.form-card.is-sent .form-ok { display: block; }
.form-card.is-sent .form-ok svg path { animation: drawShort .8s var(--ease-out) .2s forwards; }
.form-ok h2 { font-weight: 800; font-size: 2rem; }
.form-ok p { color: var(--ink-soft); margin-top: .5rem; }

/* ===== LEGAL ===== */
.legal-page { padding-top: calc(var(--nav-h) + 60px); }
.legal-page h1 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.legal-page section { margin-top: 3rem; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); scroll-margin-top: 110px; }
.legal-page h2 { font-weight: 700; font-size: 1.6rem; margin-bottom: .8rem; }
.legal-page p { color: var(--ink-soft); max-width: 70ch; }

/* ---------- 8. Effects ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }   /* defensive: never hide split text */
html.no-js .reveal { opacity: 1; transform: none; }

/* Clip box padded on every side (and cancelled with negative margins) so descenders (g, y, p)
   and glyphs that overhang the tight letter-spacing are never cut */
.split-ready .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .08em .22em; margin: -.14em -.08em -.22em; }
.split-ready .wi { display: inline-block; transform: translateY(130%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.split-ready.is-in .wi { transform: none; }

.scrub-ready .sw { opacity: .16; }

[data-tilt] { transition: transform .7s var(--ease-out); will-change: transform; }
[data-tilt].is-tilting { transition: transform .12s linear; }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(123,112,227,.18); } 50% { box-shadow: 0 0 0 9px rgba(123,112,227,0); } }
@keyframes gradShift { to { background-position: 220% 0; } }
@keyframes float1 { to { transform: translate(-12vw, 14vh) scale(1.15); } }
@keyframes float2 { to { transform: translate(14vw, -10vh) scale(1.2); } }
@keyframes float3 { to { transform: translate(-16vw, -18vh) scale(.9); } }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); } 40% { transform: translate(4%,-6%); } 60% { transform: translate(-3%,5%); } 80% { transform: translate(6%,2%); } 100% { transform: translate(0,0); } }
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-101%); visibility: hidden; } }
@keyframes curtainIn { from { transform: translateY(101%); visibility: visible; } to { transform: translateY(0); visibility: visible; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
@keyframes barIn { from { transform: scale(0, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floaty { from { transform: translateY(-8px) rotate(-1.5deg); } to { transform: translateY(10px) rotate(1.5deg); } }
@keyframes spin { to { --angle: 360deg; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tubeFloat { from { transform: rotate(-3deg) translate(0, 0); } to { transform: rotate(4deg) translate(2%, -3%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawShort { to { stroke-dashoffset: 0; } }

/* ---------- 8b. Fixes & extras ---------- */
.footer-big-track, .tape-track { gap: 0; }
.footer-big-track > span { margin-right: .4em; }
.tape-track > * { margin-right: .6em; }
/* "INFORMÁTICOS" ≈ 7.45em wide: size the title from its column so it never overflows */
.hero-inner { container-type: inline-size; }
.hero-title { font-size: clamp(1.9rem, 4.6vw, 5.4rem); }
@supports (width: 1cqi) {
  .hero-title { font-size: min(12.8cqi, 6rem); }
}
.hero-title .line { padding-top: .14em; margin-top: -.14em; }
.center-head { text-align: center; max-width: 900px; margin-inline: auto; }
.center-head .kicker { margin-bottom: 1rem; }
.hs-head .kicker, .section .container > .kicker { margin-bottom: 1rem; }

.split-ready .grad-text { background: none; animation: none; color: inherit; -webkit-background-clip: border-box; background-clip: border-box; }
.split-ready .grad-text .wi {
  padding-right: .08em; margin-right: -.08em; /* gradient must also paint the overhang of the last letter */
  background: linear-gradient(100deg, var(--violet-2), var(--blue) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Conic border done with a mask so the glass stays clean */
.pack { padding: 0; background: none; animation: none; }
.pack::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px; z-index: 1; pointer-events: none;
  background: conic-gradient(from var(--angle), rgba(255,255,255,.95), rgba(123,112,227,.95) 25%, rgba(79,212,242,.95) 45%, rgba(255,255,255,.95) 60%, rgba(223,229,107,1) 80%, rgba(255,255,255,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
.pack-in { border-radius: inherit; }

.svc-cta { --c1: #1c1940; --c2: #3a3299; color: #fff; }
.svc-cta .svc-go { background: var(--lime); color: var(--ink); }
.svc-cta-big { font-family: var(--display); font-weight: 300; font-size: clamp(5rem, 9vw, 8rem); line-height: 1; color: var(--lime); align-self: center; transition: transform .7s var(--ease-bounce); }
.svc-cta:hover .svc-cta-big { transform: translateX(16px) rotate(-45deg); }

.globe::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(123,112,227,.55), rgba(123,112,227,.15) 55%, transparent 72%); filter: blur(10px); }
.globe canvas { position: relative; }

.globe-badge { z-index: 2; }
.quote-hero .kicker, .contact-intro .kicker { margin-bottom: 1.4rem; }
.erp-hero > div { position: relative; z-index: 2; }
.erp-hero canvas { z-index: 1; }
.module p { font-size: .9rem; opacity: .75; margin-top: .25rem; line-height: 1.4; }
.module.reveal.is-visible { transition: transform .5s var(--ease-out), background .4s, box-shadow .5s, color .4s, opacity 1s; }
.svc-grid > div > .svc { height: 100%; }
.svc-hero .svc-intro { margin-top: clamp(-40px, -3vw, -10px); }
.legal-page { min-height: 70vh; }

/* ---------- 9. Responsive ---------- */
@media (min-width: 540px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field.full, .form-foot { grid-column: 1 / -1; }
  .modules { grid-template-columns: repeat(3, 1fr); }
  .module.wide { grid-column: span 3; }
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .packs { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .tablist { gap: 12px; }
  .panel { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .footer-row { grid-template-columns: auto auto 1fr; gap: 40px; }
  .legal { justify-self: end; }
  .charts { grid-template-columns: 1.4fr 1fr; }
  .mock-body { grid-template-columns: 180px 1fr; }
  .mock-side { display: grid; align-content: start; }
  .phone { display: block; }
  .tl-line { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 2px; }
  .tl-fill { transform-origin: 0 50%; transform: scaleX(0); }
  .tl-items { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .tl-item { padding-left: 0; padding-top: 44px; }
  .tl-item::before { left: 0; top: 3px; }
}
@media (min-width: 960px) {
  :root { --nav-h: 96px; }
  .nav-links, .nav-cta { display: flex; }
  .nav-burger, .menu { display: none; }
  .hero-inner { max-width: 54%; }
  .hero-chips { display: block; }
  .statement-grid { grid-template-columns: 1.5fr 1fr; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: .8fr 1.2fr; }
  .modules { grid-template-columns: repeat(4, 1fr); }
  .module.wide { grid-column: span 1; }
  .module:nth-child(1) { grid-column: span 2; }
  .hs-track { display: flex; gap: 26px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .hs-track .svc { width: clamp(340px, 30vw, 420px); flex: none; min-height: 520px; }
  .hs-track .svc:nth-child(even) { margin-top: 60px; }
  .hs.is-pinned { overflow: hidden; }
}
@media (max-width: 959px) {
  .hero-canvas { opacity: .55; }
  .hero { align-items: flex-end; padding-bottom: 150px; }
  .scroll-hint { bottom: 22px; gap: 8px; }
  .scroll-hint i { height: 34px; }
  .hs-track { grid-template-columns: 1fr; }
}
/* Touch devices: drop the costly layers that make mobile scrolling stutter */
@media (hover: none), (max-width: 959px) {
  .blob { filter: none; animation: none !important; will-change: auto; }
  .grain { animation: none; inset: 0; }
  .nav { transition: none; }
  .nav.is-scrolled .nav-inner { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.88); }
}
@media (min-width: 720px) and (max-width: 959px) {
  .hs-track { grid-template-columns: 1fr 1fr; }
}

/* ---------- 10. Reduced motion — only intrusive effects ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .blob { animation: none !important; }
  .tube-a, .tube-b { animation: none; }
}
