/* ==========================================================================
   Cinapsys — hoja de estilos
   Tokens → base → componentes → secciones → utilidades
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------ */
:root {
  --navy: #061437;
  --navy-800: #0a1f55;
  --blue: #013aad;
  --blue-600: #0b4fd6;
  --blue-100: #e8effc;
  --cyan: #39d3eb;
  --cyan-700: #0f9fb8;
  --cyan-100: #dcf6fb;
  --ink: #0f1b3d;
  --slate: #475275;
  --muted: #7b86a4;
  --line: #e2e8f3;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --ok: #00a86b;
  --error: #d6336c;

  --font-display: "Raleway", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 14px 44px -14px rgba(6, 20, 55, 0.22);
  --shadow-sm: 0 6px 18px -8px rgba(6, 20, 55, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Fuentes (autoalojadas, latin) -------------------------------- */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cyan); color: var(--navy); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .lead { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--cyan); border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--slate); line-height: 1.55; }
.accent { color: var(--cyan-700); }
em { font-style: normal; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

/* ---------- Botones ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em; line-height: 1;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 79, 214, 0.75); }
.btn--primary:hover { background: var(--blue); box-shadow: 0 16px 30px -12px rgba(11, 79, 214, 0.8); }
.btn--cyan { background: var(--cyan); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(57, 211, 235, 0.7); }
.btn--cyan:hover { background: #5ddff3; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--outline { background: transparent; color: var(--blue-600); border-color: var(--blue-100); }
.btn--outline:hover { border-color: var(--blue-600); background: var(--blue-100); }
.btn--whatsapp { background: #25d366; color: #063b1f; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.7); }
.btn--whatsapp:hover { background: #3ae07a; }
.btn--sm { padding: 11px 18px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; color: var(--blue-600); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; position: relative; height: 40px; width: 150px; }
.brand img { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity 0.3s; }
.brand__dark { opacity: 0; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: rgba(255, 255, 255, 0.86); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; padding: 10px 14px; border-radius: 999px; transition: background-color 0.2s, color 0.2s; }
.nav a:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; color: #fff; }
.nav .btn { margin-left: 10px; color: var(--navy); }
.nav .btn:hover { color: var(--navy); background: #5ddff3; }
.nav__toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 12px; color: #fff; }
.nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }

.header.is-scrolled { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -16px rgba(6, 20, 55, 0.25); }
.header.is-scrolled .brand__light { opacity: 0; }
.header.is-scrolled .brand__dark { opacity: 1; }
.header.is-scrolled .nav a { color: var(--ink); }
.header.is-scrolled .nav a:hover { background: var(--blue-100); color: var(--blue); }
.header.is-scrolled .nav .btn { background: var(--blue-600); color: #fff; }
.header.is-scrolled .nav .btn:hover { background: var(--blue); }
.header.is-scrolled .nav__toggle { color: var(--ink); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 32px; background: #fff; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.3s var(--ease); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { color: var(--ink) !important; font-size: 1.2rem; padding: 14px 16px; border-radius: 12px; }
  .nav .btn { margin: 14px 0 0; justify-content: center; background: var(--blue-600) !important; color: #fff !important; }
  /* backdrop-filter crea un bloque contenedor para el nav fijo: sin esto el menú queda recortado a la altura del header. */
  .header.is-open { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header.is-open .brand__light { opacity: 0; }
  .header.is-open .brand__dark { opacity: 1; }
  .header.is-open .nav__toggle { color: var(--ink); }
  .header.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .header.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, #0f4fd0 0%, transparent 55%),
              radial-gradient(80% 70% at 0% 100%, #0d8bb7 0%, transparent 55%),
              linear-gradient(160deg, #061437 0%, #052b7a 55%, #0a1f55 100%);
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 70% 45%, rgba(57, 211, 235, 0.22) 0%, transparent 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .eyebrow { color: var(--cyan); }
.hero .eyebrow::before { background: var(--cyan); }
.hero h1 { color: #fff; margin-bottom: 22px; max-width: 12ch; }
.hero h1 em { color: var(--cyan); position: relative; white-space: nowrap; }
.hero .lead { color: rgba(255, 255, 255, 0.84); max-width: 54ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 26px; color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.hero__visual { position: relative; aspect-ratio: 1 / 0.86; min-height: 320px; }

.hexes { position: absolute; inset: 0; animation: float 9s ease-in-out infinite; }
.hexes__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hexes__svg .hex { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 2; stroke-linejoin: round; }
.hexes__svg .hex--b { stroke: rgba(255, 255, 255, 0.55); }
.hexes__svg .hex-ghost { fill: none; stroke: rgba(57, 211, 235, 0.35); stroke-width: 1; stroke-dasharray: 6 10; animation: dash 30s linear infinite; }
.hexes__svg .lens-edge { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(57, 211, 235, 0.8)); }
.hexes__lens {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 40% at 45% 40%, rgba(57, 211, 235, 0.55) 0%, rgba(57, 211, 235, 0) 70%),
    radial-gradient(50% 50% at 60% 65%, rgba(11, 79, 214, 0.9) 0%, rgba(11, 79, 214, 0) 70%),
    linear-gradient(135deg, rgba(57, 211, 235, 0.25), rgba(1, 58, 173, 0.55));
  background-size: 200% 200%;
  animation: aurora 10s ease-in-out infinite alternate;
  backdrop-filter: brightness(1.7) saturate(1.5) contrast(1.1);
  -webkit-backdrop-filter: brightness(1.7) saturate(1.5) contrast(1.1);
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%);
}
.hexes__lens::after { content: ""; position: absolute; inset: 0; background: radial-gradient(30% 30% at 50% 50%, rgba(255, 255, 255, 0.75), transparent 70%); mix-blend-mode: screen; animation: pulse 4s ease-in-out infinite; }
.hexes__chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 0.82rem; font-weight: 600; color: #fff; box-shadow: var(--shadow); white-space: nowrap; }
.hexes__chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(57, 211, 235, 0.25); }
.hexes__chip--a { left: 2%; top: 8%; animation: float 7s ease-in-out infinite reverse; }
.hexes__chip--b { right: 0; bottom: 12%; animation: float 8s ease-in-out 1s infinite; }
.hexes__chip--c { left: 8%; bottom: 2%; animation: float 6.5s ease-in-out 0.5s infinite reverse; }
.hexes__chip--b i { background: #00c875; box-shadow: 0 0 0 4px rgba(0, 200, 117, 0.25); }
.hexes__chip--c i { background: #fdab3d; box-shadow: 0 0 0 4px rgba(253, 171, 61, 0.25); }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: rgba(255, 255, 255, 0.55); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll::after { content: ""; width: 1px; height: 36px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent); animation: scrollHint 2s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes dash { to { stroke-dashoffset: -320; } }
@keyframes aurora { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 32px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero__visual { max-width: 460px; margin-inline: auto; width: 100%; aspect-ratio: 1 / 0.9; min-height: 0; }
  .hero__scroll { display: none; }
}

/* ---------- Clientes ----------------------------------------------------- */
.clients { padding: 40px 0 44px; border-bottom: 1px solid var(--line); background: #fff; }
.clients__label { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; gap: clamp(48px, 7vw, 96px); align-items: center; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > li { display: flex; align-items: center; height: var(--h, 32px); color: var(--c, #8f98ad); transition: color 0.3s; }
.marquee__track > li:hover { color: var(--blue); }
.marquee__track svg { height: 100%; width: auto; }
.marquee__track svg.logo--sm { height: 70%; }
.logo-mask { display: inline-block; height: 100%; aspect-ratio: var(--ar, 2 / 1); background-color: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pilares (qué hacemos) --------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px 30px; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s; overflow: hidden; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfdcf5; }
.card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--blue-600)); opacity: 0; transition: opacity 0.3s; }
.card:hover::before { opacity: 1; }
.card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan-100), var(--blue-100)); color: var(--blue-600); margin-bottom: 22px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); margin-bottom: 18px; }
.card .link-arrow { margin-top: auto; align-self: flex-start; }
.card__num { position: absolute; right: 24px; top: 20px; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--blue-100); line-height: 1; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- monday.com ---------------------------------------------------- */
.partner-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 22px; }
.partner-badge img { height: 22px; width: auto; }
.partner-badge--dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.partner-badge--dark img { filter: brightness(0) invert(1); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split .section__head { margin-bottom: 28px; }
.checks { display: grid; gap: 12px; margin: 26px 0 30px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--cyan-700); margin-top: 2px; }
.checks strong { color: var(--ink); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* Tablero simulado */
.board-wrap { position: relative; }
.board { background: #fff; border-radius: 20px; box-shadow: 0 30px 70px -30px rgba(6, 20, 55, 0.45), 0 0 0 1px var(--line); padding: 18px 18px 14px; font-size: 0.8rem; color: var(--ink); overflow: hidden; }
.board__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.board__title { font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.board__title small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 0.72rem; }
.board__avatars { display: flex; }
.board__avatars i, .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--c, #579bfc); border: 2px solid #fff; display: inline-grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; font-size: 0.62rem; }
.board__avatars i + i { margin-left: -8px; }
.board__group { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--g); margin: 12px 0 6px; font-size: 0.86rem; }
.board__group::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--g); }
.board__cols, .board__row { display: grid; grid-template-columns: 1.6fr 0.55fr 1fr 0.7fr 0.8fr; gap: 8px; align-items: center; }
.board__cols { color: var(--muted); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 10px 6px; }
.board__row { padding: 7px 10px; border-left: 4px solid var(--g); border-radius: 8px; margin-bottom: 4px; background: #fff; transition: background-color 0.3s; }
.board__row:hover { background: var(--bg-soft); }
.board__cell--name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.board__cell--date { color: var(--slate); }
.pill { display: block; text-align: center; padding: 6px 6px; border-radius: 6px; background: #c4c4c4; color: #fff; font-weight: 600; font-size: 0.72rem; transition: background-color 0.5s var(--ease), transform 0.3s var(--ease); white-space: nowrap; }
.pill.is-bump { transform: scale(1.06); }
.pill[data-s="pendiente"] { background: #c4c4c4; }
.pill[data-s="proceso"] { background: #fdab3d; }
.pill[data-s="listo"] { background: #00c875; }
.pill[data-s="detenido"] { background: #e2445c; }
.bar { display: block; height: 8px; border-radius: 4px; background: #eef1f7; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 40%); background: linear-gradient(90deg, var(--cyan), var(--blue-600)); border-radius: 4px; transition: width 0.8s var(--ease); }
.board__toast { position: absolute; right: -14px; bottom: -22px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--navy); color: #fff; border-radius: 14px; box-shadow: var(--shadow); font-size: 0.8rem; max-width: 300px; transform: translateY(16px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.4s; }
.board__toast.is-on { transform: none; opacity: 1; }
.board__toast svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.board__toast strong { color: var(--cyan); }
@media (max-width: 900px) { .board__toast { right: 8px; bottom: -20px; max-width: 86%; } .board__cols, .board__row { grid-template-columns: 1.5fr 0.5fr 1fr 0.9fr; } .board__cell:nth-child(5), .board__cols span:nth-child(5) { display: none; } }

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--ink); padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--bg-soft); margin-bottom: 18px; }
.product__tag i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.product h3 { font-size: 1.25rem; }
.product p { color: var(--slate); }
.product ul { margin: 6px 0 22px; display: grid; gap: 8px; color: var(--slate); font-size: 0.95rem; }
.product li { padding-left: 20px; position: relative; }
.product li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: 0.8; }
.product .link-arrow { margin-top: auto; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.service { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.service svg { width: 26px; height: 26px; flex: none; color: var(--blue-600); margin-top: 2px; }
.service h4 { margin: 0 0 6px; font-size: 1.02rem; }
.service p { margin: 0; color: var(--slate); font-size: 0.95rem; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* ---------- Make --------------------------------------------------------- */
.make { background: var(--navy); color: #fff; overflow: hidden; }
.make::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 80% 20%, rgba(107, 52, 196, 0.35), transparent 60%), radial-gradient(50% 50% at 10% 90%, rgba(57, 211, 235, 0.18), transparent 60%); pointer-events: none; }
.make h2, .make h3 { color: #fff; }
.make .lead, .make .checks li { color: rgba(255, 255, 255, 0.8); }
.make .checks strong { color: #fff; }
.make .eyebrow { color: #c99cff; }
.make .eyebrow::before { background: #c99cff; }
.make .checks svg { color: #c99cff; }
.flow { width: 100%; height: auto; overflow: visible; }
.flow .node { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.25); stroke-width: 1.5; }
.flow .node--core { fill: #6b34c4; stroke: #c99cff; }
.flow .label { font-family: var(--font-body); font-size: 11px; font-weight: 600; fill: #fff; text-anchor: middle; }
.flow .sub { font-size: 9px; fill: rgba(255, 255, 255, 0.6); font-weight: 500; }
.flow .wire { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 2; }
.flow .wire--flow { stroke: var(--cyan); stroke-dasharray: 6 14; stroke-linecap: round; animation: flow 1.6s linear infinite; }
.flow .wire--flow.p2 { animation-delay: -0.5s; stroke: #c99cff; }
.flow .wire--flow.p3 { animation-delay: -1s; }
.flow .ring { fill: none; stroke: #c99cff; stroke-width: 1; opacity: 0.6; transform-origin: 300px 180px; animation: ringPulse 3s ease-out infinite; }
.flow .ring.r2 { animation-delay: 1s; }
.flow .ring.r3 { animation-delay: 2s; }
.flow .sat { animation: float 7s ease-in-out infinite; }
.flow .sat.s2 { animation-delay: -2s; } .flow .sat.s3 { animation-delay: -4s; } .flow .sat.s4 { animation-delay: -1s; } .flow .sat.s5 { animation-delay: -3s; }
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes ringPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.4); opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.86rem; color: rgba(255, 255, 255, 0.9); }
.make .btn--primary { background: #fff; color: var(--navy); box-shadow: 0 10px 24px -10px rgba(255, 255, 255, 0.5); }
.make .btn--primary:hover { background: var(--cyan); }

/* ---------- Proceso ------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 3px; background: var(--line); border-radius: 2px; z-index: 0; }
.steps::after { content: ""; position: absolute; left: 0; top: 27px; height: 3px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--blue-600)); border-radius: 2px; transition: width 2.4s var(--ease); z-index: 0; }
.steps.is-visible::after { width: 100%; }
.step { position: relative; z-index: 1; padding-top: 76px; }
.step__dot { position: absolute; left: 0; top: 4px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); color: var(--blue-600); font-family: var(--font-display); font-weight: 800; transition: border-color 0.5s, background-color 0.5s, color 0.5s, transform 0.5s var(--ease); transition-delay: var(--d, 0s); }
.steps.is-visible .step__dot { border-color: var(--blue-600); background: var(--blue-600); color: #fff; transform: scale(1.06); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 0.97rem; margin: 0; }
.step__meta { display: inline-block; margin-top: 12px; font-size: 0.78rem; font-weight: 600; color: var(--cyan-700); background: var(--cyan-100); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 24px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .steps::after { left: 24px; top: 0; width: 3px; height: 0; transition: height 2.4s var(--ease); }
  .steps.is-visible::after { width: 3px; height: 100%; }
  .step { padding: 0 0 0 72px; }
  .step__dot { top: -2px; }
}

/* ---------- Por qué ------------------------------------------------------ */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why__item { padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.why__item svg { width: 30px; height: 30px; color: var(--cyan-700); margin-bottom: 16px; }
.why__item h3 { font-size: 1.1rem; }
.why__item p { margin: 0; color: var(--slate); font-size: 0.95rem; }
@media (max-width: 1000px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* ---------- Banda CTA --------------------------------------------------- */
.band { position: relative; color: #fff; overflow: hidden; background: linear-gradient(120deg, #0b8fb8 0%, #013aad 50%, #061437 100%); }
.band__chart { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; pointer-events: none; }
.band__chart path { fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.5; stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.band.is-visible .band__chart path { animation: draw 3s var(--ease) forwards; }
.band.is-visible .band__chart path:nth-child(2) { animation-delay: 0.3s; }
.band.is-visible .band__chart path:nth-child(3) { animation-delay: 0.6s; }
.band__ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 14px); opacity: 0.6; }
.band__inner { position: relative; text-align: center; max-width: 820px; margin-inline: auto; }
.band h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.band h2 .boxed { display: inline-block; padding: 0.02em 0.3em; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 0.3em; color: var(--cyan); }
.band .lead { color: rgba(255, 255, 255, 0.82); margin-bottom: 30px; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Contacto ----------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__info .section__head { margin-bottom: 28px; }
.contact__links { display: grid; gap: 14px; margin: 26px 0 30px; }
.contact__links li a { display: flex; align-items: center; gap: 14px; color: var(--ink); padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border-color 0.2s, transform 0.3s var(--ease), box-shadow 0.3s; }
.contact__links li a:hover { text-decoration: none; border-color: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact__links svg { width: 22px; height: 22px; color: var(--blue-600); flex: none; }
.contact__links span { display: block; font-size: 0.78rem; color: var(--muted); }
.contact__links strong { font-weight: 600; }
.contact__note { padding: 18px 20px; border-radius: 14px; background: var(--blue-100); color: var(--slate); font-size: 0.95rem; }
.contact__note strong { color: var(--ink); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { margin-bottom: 16px; }
.form__field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form__optional { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); font: inherit; font-size: 1rem; color: var(--ink); transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(11, 79, 214, 0.12); }
.form textarea { resize: vertical; min-height: 110px; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23475275' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form .is-invalid { border-color: var(--error); }
.form__hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--slate); margin: 6px 0 22px; }
.form__check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--blue-600); }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { font-size: 0.92rem; font-weight: 500; min-height: 1.4em; }
.form__status.is-error { color: var(--error); }
.form__status.is-ok { color: var(--ok); }
.form__success { display: none; text-align: center; padding: 24px 8px; }
.form__success svg { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 14px; }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__success { display: block; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ------------------------------------------------------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 64px 0 28px; font-size: 0.93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 44px; }
.footer__brand img { width: 160px; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: rgba(255, 255, 255, 0.8); }
.footer a:hover { color: var(--cyan); }
.footer address { font-style: normal; line-height: 1.7; }
.footer__social { display: flex; gap: 10px; margin-top: 14px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: #fff; transition: background-color 0.2s; }
.footer__social a:hover { background: var(--blue-600); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.footer__bottom a { color: rgba(255, 255, 255, 0.6); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ------------------------------------------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.8); transition: transform 0.3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ringPulseSm 2.4s ease-out infinite; }
@keyframes ringPulseSm { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Páginas secundarias (aviso, 404) ----------------------------- */
.page { padding: calc(var(--header-h) + 56px) 0 var(--section); }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page p, .page li { color: var(--slate); }
.page ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.page .notice { padding: 16px 20px; border-radius: 12px; background: #fff6d6; border: 1px solid #f3dd8a; color: #6b5300; margin-bottom: 28px; }
.header--solid { background: #fff; box-shadow: 0 1px 0 var(--line); }
.header--solid .brand__light { opacity: 0; }
.header--solid .brand__dark { opacity: 1; }
.header--solid .nav a { color: var(--ink); }
.header--solid .nav .btn { background: var(--blue-600); color: #fff; }
.header--solid .nav__toggle { color: var(--ink); }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(4rem, 12vw, 9rem); color: var(--blue-100); line-height: 1; margin: 0; }

/* ---------- Movimiento reducido ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .steps.is-visible::after { width: 100%; }
  .hexes__lens { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Firma */
.footer__credit { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.75); }
.footer__credit a { color: #fff; }
