/* INNBOX — sistema visual (dirección INNBOX10) */
:root {
  --black: #1a1a1a;
  --bg: #1a1a1a;
  --deep: #141514;
  --green: #47a88c;
  --cyan: #8ff5df;
  --mint: #8ff5df;
  --gold: #ede47a;
  --olive: #b9ad5e;
  --white: #fff;
  --ink-2: rgba(255, 255, 255, .72);
  --ink-3: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .1);
  --hair: rgba(185, 173, 94, .16);
  --surface: #212221;
  --surface-2: #282928;
  --grad: linear-gradient(90deg, #47a88c, #8fd9b0 55%, #ede47a);
  --grad-x: linear-gradient(135deg, #3d6f62, #5fc6aa 40%, #8ff5df 62%, #e3ec8c);
  --grad-diag: var(--grad-x);
  --f-title: "Kanit", system-ui, sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .17; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 256px 256px; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(96px, 14vw, 180px); position: relative; }
.section--deep { background: radial-gradient(60% 50% at 0% 100%, rgba(71, 168, 140, .1), transparent), var(--deep); isolation: isolate; overflow: hidden; }
.section--tight { padding-block: clamp(64px, 9vw, 112px); }

/* Tipografía */
h1, h2, h3, h4 { font-family: var(--f-title); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.01em; text-transform: uppercase; }
h1 { font-size: clamp(46px, 8.4vw, 112px); }
h2 { font-size: clamp(36px, 5.6vw, 76px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.2; }
h4 { font-size: 18px; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-2); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stack > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 40px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 28px;
  border-radius: 4px; border: 0;
  font: 600 15px/1 var(--f-title); letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--gold); color: var(--black); }
.btn--primary:hover { background: #f4ed9f; }
.btn--secondary { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn--secondary:hover { background: rgba(255,255,255,.08); }
.btn--light { background: var(--white); color: var(--black); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .4s, backdrop-filter .4s;
}
.header.is-scrolled { background: rgba(26, 26, 26, .82); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); }
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; line-height: 0; }
.logo img { display: block; width: auto; height: 26px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a, .nav__drop > button { font: 500 15px/1 var(--f-body); color: var(--ink-2); transition: color .25s; background: none; border: 0; padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav__links a:hover, .nav__drop > button:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__drop { position: relative; }
.nav__drop svg { width: 15px; height: 15px; transition: transform .3s; }
.nav__drop[data-open] svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0;
  width: 340px; padding: 10px; margin: 0; list-style: none;
  background: rgba(10, 18, 16, .96); backdrop-filter: blur(18px);
  border-radius: 4px; background-color: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .3s var(--ease);
}
.nav__drop[data-open] .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: flex; gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: 4px; color: var(--white); }
.nav__menu a:hover { background: rgba(255, 255, 255, .06); }
.burger { display: none; width: 46px; height: 46px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .08); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }
.mnav { display: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mnav {
    display: block; position: fixed; inset: 76px 0 0; z-index: 49;
    background: var(--black); padding: 24px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: .35s var(--ease);
  }
  .mnav[data-open] { opacity: 1; visibility: visible; }
  .mnav a { display: block; padding: 16px 0; font: 600 26px/1.2 var(--f-title); text-transform: uppercase; border-bottom: 1px solid var(--line); }
  .mnav .mnav__sub a { font: 500 17px/1.3 var(--f-body); text-transform: none; padding: 12px 0 12px 16px; color: var(--ink-2); }
  .mnav .btn { margin-top: 28px; width: 100%; justify-content: center; border: 0; }
}

/* Hero */
.hero { min-height: 100svh; padding: 132px 0 80px; position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.hero > .wrap, .page-hero > .wrap, .section--deep > .wrap { position: relative; z-index: 1; }
.hero__title { text-transform: uppercase; line-height: .92; }
h1.hero__title { margin: 0; font-family: inherit; font-weight: inherit; font-size: inherit; letter-spacing: normal; }
.hero__l1 { display: block; white-space: nowrap; font-size: clamp(21px, 3.6vw, 52px); letter-spacing: -.005em; }
.hero__l2 { display: block; font-size: clamp(46px, 7.5vw, 108px); letter-spacing: -.02em; line-height: .95; margin-top: .06em; }
.hero__row { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy .lead { margin-top: 30px; }
.hero__copy .btn-row { margin-top: 36px; }
.hero__visual { position: relative; width: 100%; max-width: 400px; max-height: 72svh; aspect-ratio: 470 / 700; justify-self: end; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 220px 220px 26px 26px; }
.hero__glow { position: absolute; inset: 10% 0 20%; background: radial-gradient(closest-side, rgba(143, 245, 223, .26), transparent); filter: blur(40px); z-index: -1; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(185, 173, 94, .45); pointer-events: none; }
@media (max-width: 860px) {
  .hero { padding-top: 116px; }
  .hero__row { grid-template-columns: 1fr; }
  .hero__visual { order: -1; justify-self: center; max-width: 280px; }
}

.see { display: inline-flex; align-items: center; gap: 12px; font: 600 15px/1 var(--f-title); letter-spacing: .06em; text-transform: uppercase; color: var(--white); padding: 16px 20px; border: 1px solid var(--line); border-radius: 4px; transition: border-color .3s, color .3s, gap .4s var(--ease), background-color .3s; }
.see svg { width: 18px; height: 18px; }
.see:hover { border-color: var(--mint); color: var(--mint); background-color: rgba(143, 245, 223, .04); gap: 18px; }

/* Formas de fondo */
.shape { position: absolute; pointer-events: none; z-index: -1; will-change: transform; }
.shape--sphere { border-radius: 50%; background: radial-gradient(circle at 58% 32%, #d8c36c 0%, #a9b06d 22%, #5f9b7f 50%, #2f7466 75%, transparent 76%); }
.shape--half { border-radius: 999px 999px 0 0; background: var(--grad-x); opacity: .9; }
.shape--quarter { border-radius: 100% 0 0 0; background: linear-gradient(135deg, #8ff5df, #5fc6aa 58%, #b9ad5e); }
.topo { display: none; }
.frame { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: linear-gradient(var(--hair), var(--hair)) 0 120px / 100% 1px no-repeat, linear-gradient(var(--hair), var(--hair)) 0 calc(100% - 80px) / 100% 1px no-repeat, linear-gradient(var(--hair), var(--hair)) max(var(--gutter), calc(50% - 600px)) 0 / 1px 100% no-repeat; }
.frame--left { transform: scaleX(-1); }
.frame i { position: absolute; left: max(var(--gutter), calc(50% - 600px)); top: 119px; width: 10px; height: 10px; background: var(--mint); box-shadow: 0 calc(100svh - 200px) 0 var(--mint); }
.dots-arc { position: absolute; z-index: 0; top: 8%; right: 0; width: min(80vw, 1000px); height: 150px; fill: var(--olive); opacity: .48; pointer-events: none; }
.dots-arc circle:nth-child(3n) { fill: var(--green); }
.band { position: absolute; z-index: 2; inset: 0 auto 0 0; width: clamp(18px, 3vw, 48px); pointer-events: none; background: linear-gradient(180deg,#5a5532,#b9ad5e 20%,#4f4a2c 45%,#2f5e52 60%,#4a8c7a); }

/* Bloque nosotros */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.collage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; }
.collage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; filter: grayscale(1) contrast(1.05); opacity: .9; }
.collage img:nth-child(3n + 1) { aspect-ratio: 4 / 5; }
.collage { perspective: 900px; }
.collage .tile { position: relative; display: block; border-radius: 4px; overflow: hidden; will-change: transform; }
.collage .tile:nth-child(3n + 1) img { aspect-ratio: 4 / 5; }
.collage .tile b, .collage .tile i { position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit; }
.collage .tile b { background: var(--black); }
.collage .tile i { box-shadow: inset 0 0 0 2px rgba(143, 245, 223, .8); background: linear-gradient(135deg, rgba(143, 245, 223, .18), transparent 45%, rgba(237, 228, 122, .2)); }
.xmark { width: min(100%, 520px); justify-self: center; }
.xmark svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 900px) { .xmark { width: min(100%, 360px); } }
.collage__year { position: absolute; right: -6px; bottom: -34px; font: 800 clamp(64px, 9vw, 120px)/1 var(--f-title); letter-spacing: -.02em; }
.year-mark { font: 800 clamp(60px, 9vw, 120px)/.9 var(--f-title); margin-top: 8px; }
.ejes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 72px; }
.eje { background: var(--surface); border-radius: var(--radius); padding: 30px 26px 26px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; transition: background-color .4s; }
.eje:hover { background: var(--surface-2); }
.eje strong { font: 700 15px/1 var(--f-title); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 760px) { .ejes { grid-template-columns: 1fr 1fr; } }

/* Formas de eje */
.sh { display: block; flex: none; width: 46px; height: 46px; background: var(--grad-x); }
.sh--circle { border-radius: 50%; }
.sh--square { border-radius: 0; }
.sh--half { height: 23px; border-radius: 46px 46px 0 0; }
.sh--tri { clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.sh--x { clip-path: polygon(0 8%, 8% 0, 50% 39%, 92% 0, 100% 8%, 61% 50%, 100% 92%, 92% 100%, 50% 61%, 8% 100%, 0 92%, 39% 50%); background: var(--grad-x); }
.corners { position: relative; }
.corners::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--mint),var(--mint)) left top/18px 1px no-repeat, linear-gradient(var(--mint),var(--mint)) left top/1px 18px no-repeat, linear-gradient(var(--mint),var(--mint)) right top/18px 1px no-repeat, linear-gradient(var(--mint),var(--mint)) right top/1px 18px no-repeat, linear-gradient(var(--mint),var(--mint)) left bottom/18px 1px no-repeat, linear-gradient(var(--mint),var(--mint)) left bottom/1px 18px no-repeat, linear-gradient(var(--mint),var(--mint)) right bottom/18px 1px no-repeat, linear-gradient(var(--mint),var(--mint)) right bottom/1px 18px no-repeat; }

/* Indicadores */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 72px); margin-top: clamp(56px, 7vw, 96px); }
.stat { container-type: inline-size; }
.stat__n { font: 800 clamp(48px, 7vw, 104px)/1.15 var(--f-title); font-size: min(clamp(48px, 7vw, 104px), 25cqi); letter-spacing: -.02em; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin-top: 10px; color: var(--ink-2); font-size: clamp(15px, 1.3vw, 18px); }
/* Odómetro (anim.js): cada carácter vive en una ventana de 1.15em; los dígitos ruedan en columna */
.stat__n.is-odo { background: none; color: var(--white); display: flex; }
.odo-c { display: block; height: 1.15em; overflow: hidden; }
.odo-col { display: block; will-change: transform; }
.odo-col > span, .odo-c > .odo-s { display: block; height: 1.15em; }
.odo-g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 44px 20px; } .stat__n { font-size: clamp(30px, 10vw, 44px); } .stat p { font-size: 14px; } }
@supports (font-size: 1cqi) { @media (max-width: 760px) { .stat__n { font-size: min(clamp(30px, 10vw, 44px), 25cqi); } } }

/* Líneas */
.lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; }
.line-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; min-height: 420px; display: flex; flex-direction: column;
  transition: transform .6s var(--ease), background-color .5s;
}
.line-card__link { display: flex; flex: 1; flex-direction: column; color: inherit; }
.line-card__contact { display: inline-flex; margin-top: 16px; padding: 10px 0; color: var(--cyan); font: 600 13px/1.3 var(--f-title); }
.line-card::before { content: ""; position: absolute; inset: auto -30% -50% -30%; height: 80%; background: radial-gradient(closest-side, rgba(143, 245, 223, .2), transparent); opacity: 0; transition: opacity .6s; z-index: -1; }
.line-card:hover { transform: translateY(-6px); background: var(--surface-2); border-color: rgba(143,245,223,.4); }
.line-card:hover::before { opacity: 1; }
.line-card h3 { margin-top: 10px; font-size: 24px; }
.line-card p { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.line-card ul { list-style: none; padding: 0; margin: 20px 0 0; font-size: 14px; color: var(--ink-2); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .5s; }
.line-card ul li { padding: 7px 0; border-top: 1px solid var(--line); }
.line-card:hover ul, .line-card:focus-within ul { max-height: 260px; opacity: 1; }
.line-card__go { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--f-title); letter-spacing: .06em; text-transform: uppercase; }
.line-card__go svg { width: 18px; transition: transform .4s var(--ease); }
.line-card:hover .line-card__go svg { transform: translateX(5px); }
@media (max-width: 1080px) { .lines { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .lines { grid-template-columns: 1fr; } .line-card { min-height: 0; } .line-card ul { max-height: none; opacity: 1; } }
@media (hover: none) { .line-card ul { max-height: none; opacity: 1; } }

/* INNBOX 10 */
[data-innbox10] { display: none; }
.is-launched [data-innbox10] { display: revert; }
.x10 { text-align: center; }
.x10 .wrap { padding-block: clamp(30px, 6vw, 72px); }
.x10__x { position: absolute; width: clamp(48px, 9vw, 120px); height: clamp(48px, 9vw, 120px); left: 8%; top: 50%; translate: 0 -50%; }
.x10__mark { font: 800 clamp(80px, 16vw, 220px)/.9 var(--f-title); }


/* Casos */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip { min-height: 42px; padding: 0 20px; border-radius: 4px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink-2); font: 500 14px/1 var(--f-body); cursor: pointer; transition: .3s; }
.chip:hover { color: var(--white); background: rgba(255, 255, 255, .12); }
.chip[aria-pressed="true"] { background: var(--white); color: var(--black); }
.carousel { margin-top: 40px; display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 84%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.carousel::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; min-height: 380px; }
.case[hidden] { display: none; }
.line-card .sh + h3 { margin-top: 34px; }
.tags-note { margin-top: 21px; max-width: 54ch; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.case__type { margin-top: 13px; font-size: 13px; color: var(--ink-3); }
.case h3 + .case__meta { margin-top: 13px; }
.case__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 13px; font-size: 13px; color: var(--ink-3); }
.case__date { display: inline-block; flex: 0 1 auto; max-width: 100%; padding: 6px 13px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--gold); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.case h3 { margin-top: 22px; }
.case > h3:first-child { margin-top: 0; }
.case p { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.case__fig { margin-top: auto; padding-top: 28px; }
.case__fig b { display: block; font: 800 clamp(22px, 2.8vw, 34px)/1.05 var(--f-title); overflow-wrap: anywhere; }
.case__fig span { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.carousel-nav { display: flex; gap: 10px; margin-top: 28px; }
.round { width: 52px; height: 52px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .08); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .3s; }
.round:hover { background: rgba(255, 255, 255, .16); }
.round svg { width: 20px; height: 20px; }

/* Ecosistema */
.actors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.actor { padding: 14px 24px; border-radius: 4px; background: var(--surface-2); font: 500 16px/1 var(--f-body); }
.marquee { margin-top: 64px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 200px; height: 96px; padding: 0 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: 600 17px/1.2 var(--f-title); color: var(--ink-2); text-align: center; }
.marquee__track .partner-logo { width: 200px; padding: 12px 22px; }
.partner-logo img { display: block; width: auto; max-width: 100%; max-height: 62px; object-fit: contain; }
.marquee + .marquee .marquee__track { animation-direction: reverse; }
.marquee + .marquee { margin-top: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.networks { margin-top: 72px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.networks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.networks li { padding: 16px 0; border-top: 1px solid var(--line); font: 500 17px/1.3 var(--f-body); }
@media (max-width: 760px) { .networks { grid-template-columns: 1fr; } .networks ul { grid-template-columns: 1fr; } }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.cdata { list-style: none; margin: 40px 0 0; padding: 0; }
.cdata li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.cdata svg { flex: none; width: 22px; height: 22px; color: var(--cyan); margin-top: 2px; }
.cdata a:hover { color: var(--cyan); }
.social { display: flex; gap: 10px; margin-top: 28px; }
.social a { width: 48px; height: 48px; border-radius: 4px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; transition: background-color .3s; }
.social a:hover { background: rgba(255, 255, 255, .18); }
.social svg { width: 20px; height: 20px; }

.form { background: var(--deep); border: 1px solid var(--line); border-radius: 4px; padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 14px/1.2 var(--f-body); color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(0, 0, 0, .28);
  font-size: 16px; transition: border-color .25s, background-color .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field select option { background: var(--surface); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(143, 245, 223, .6); background: rgba(0, 0, 0, .35); }
.field [aria-invalid="true"] { border-color: #ff9b8a; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.check a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form__msg { font-size: 15px; }
.form__msg[data-state="ok"] { color: var(--cyan); }
.form__msg[data-state="error"] { color: #ffb4a6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__done { grid-column: 1 / -1; text-align: left; padding: 20px 0; }
.form__done h3 { font-size: 30px; }
.form__done p { margin-top: 14px; color: var(--ink-2); }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

/* Páginas internas */
.page-hero { padding: clamp(150px, 20vw, 220px) 0 clamp(72px, 10vw, 120px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .lead { margin-top: 30px; max-width: 54ch; }
.page-hero__shape { position: absolute; right: max(var(--gutter), calc(50% - 600px)); top: 50%; translate: 0 -40%; z-index: -1; opacity: .3; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tag { padding: 10px 18px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--white); }
.line-contact { margin-top: 26px; }
@media (max-width: 760px) { .br-lg { display: none; } }
@media (max-width: 760px) {
  .page-hero__shape { top: auto; bottom: -40px; right: 20px; translate: 0; opacity: .3; }
  .page-hero__shape .sh { width: 150px !important; height: 150px !important; }
  .page-hero__shape .sh--half { height: 75px !important; }
  .page-hero__shape .sh--tri { width: 150px !important; }
}
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.service b { font: 700 16px/1 var(--f-title); color: var(--gold); }
.service h3 { margin-top: 26px; }
.service p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 26px 22px; font: 600 18px/1.25 var(--f-title); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 14px; color: var(--cyan); margin-bottom: 26px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
.odoo-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.odoo-steps h3 { font-size: 20px; }
.odoo-steps p { margin-top: 12px; color: var(--ink-2); font: 400 14px/1.55 var(--f-body); }
@media (max-width: 760px) { .odoo-steps { grid-template-columns: 1fr; } }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 55px; }
.figs div { background: var(--surface); border-radius: var(--radius); padding: 34px 26px; container-type: inline-size; }
.figs b { display: block; font: 800 clamp(19px, 3.4vw, 46px)/1 var(--f-title); overflow-wrap: anywhere; }
@supports (font-size: 1cqi) { .figs b { font-size: clamp(19px, min(3.4vw, 22cqi), 46px); } }
.figs span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figs div { padding: 22px 16px; } }
.names { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.names span { padding: 14px 22px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); font: 600 16px/1.2 var(--f-title); color: var(--ink-2); }
.cta-band { background: transparent; border: 0; border-radius: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(30px, 4vw, 54px); max-width: 18ch; }

/* Transformación digital */
.route { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; align-items: start; }
.route ol { list-style: none; margin: 0; padding: 0; }
.route li button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 12px 14px; border: 0; border-radius: 4px; background: none; cursor: pointer; text-align: left; font: 600 16px/1.3 var(--f-title); color: var(--ink-2); transition: .3s; }
.route li button:hover { color: var(--white); }
.route li button[aria-selected="true"] { background: rgba(0, 0, 0, .18); color: var(--white); }
.route li i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 14px/1 var(--f-title); font-style: normal; background: rgba(71, 168, 140, .25); color: var(--white); transition: .3s; }
.route li button[aria-selected="true"] i { background: var(--gold); color: var(--black); }
.route__panel { position: sticky; top: 110px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(28px, 4vw, 44px); min-height: 280px; }
.route__panel small { font: 600 13px/1 var(--f-title); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.route__panel h3 { margin-top: 18px; font-size: clamp(26px, 3vw, 36px); }
.route__panel p { margin-top: 16px; color: var(--ink-2); }
.bar { margin-top: 32px; height: 4px; background: rgba(255, 255, 255, .1); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--grad); transition: width .6s var(--ease); }
@media (max-width: 860px) { .route { grid-template-columns: 1fr; } .route__panel { position: static; } }
.modules { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.module { min-height: 50px; padding: 0 22px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--white); font: 600 15px/1 var(--f-title); cursor: pointer; transition: .3s var(--ease); }
.module:hover { background: var(--surface-2); }
.module[aria-pressed="true"] { background: var(--cyan); color: var(--black); box-shadow: 0 0 24px rgba(143, 245, 223, .24); }
.modules-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-top: 88px; }
.modules-head output { color: var(--ink-2); }
.modules-head output b { font: 800 24px/1 var(--f-title); color: var(--cyan); }
.twin { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
.twin canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.use { background: var(--deep); border: 1px solid var(--line); border-radius: 4px; padding: 26px 22px; }
.use h4 { font: 600 17px/1.3 var(--f-title); }
.use p { margin-top: 12px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.use::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-bottom: 22px; box-shadow: 0 0 14px rgba(237, 228, 122, .45); }
@media (max-width: 900px) { .uses { grid-template-columns: 1fr 1fr; } }

/* Texto legal */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 56px; text-transform: none; }
.prose p, .prose li { color: var(--ink-2); margin-top: 16px; }
.prose a { color: var(--cyan); text-decoration: underline; }

/* Footer */
.footer { padding: 88px 0 40px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.footer h4 { font: 600 14px/1 var(--f-title); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 6px 0; color: var(--ink-2); font-size: 15px; }
.footer li a:hover { color: var(--white); }
.footer__base { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-3); }
.footer__base a:hover { color: var(--white); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 4px; background: var(--deep); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transition: transform .4s var(--ease), background-color .3s; }
.wa:hover { transform: translateY(-3px); background: var(--surface-2); }
.wa svg { width: 26px; height: 26px; }

/* Animaciones: GSAP define los estados iniciales (anim.js); sin JS todo queda visible */
.split-line { overflow: hidden; display: block; padding-bottom: .04em; }

/* Transición entre páginas: 5 franjas de la paleta */
.wipe { position: fixed; inset: 0; z-index: 1000; pointer-events: none; animation: wipe-safety 0s 3s forwards; }
.wipe i { position: absolute; inset: 0; transform-origin: top; will-change: transform; }
.wipe i:nth-child(1) { background: #111; } .wipe i:nth-child(2) { background: var(--surface); } .wipe i:nth-child(3) { background: var(--green); }
.wipe i:nth-child(4) { background: var(--cyan); } .wipe i:nth-child(5) { background: var(--gold); }
@keyframes wipe-safety { to { visibility: hidden; } }
.no-js .wipe { display: none; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }
.section-head .lead { max-width: 38ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .wipe { display: none; }
  .hero__visual img { filter: none; }
  .hero__glow { opacity: 1; }
}

.case-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .case-grid--home { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .case-grid--home { grid-template-columns: 1fr; } }

/* Casos: página */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; margin-top: 40px; }
.case-grid .case { min-height: 360px; }
.case-grid .case--mini { min-height: 0; }
@media (max-width: 760px) { .case { padding: 24px; } .case-grid .case { min-height: 0; } .carousel { grid-auto-columns: 100%; } }


/* Footer: logo grande */
.footer__mark { margin: 72px 0 0; user-select: none; position: relative; overflow: visible; }
.footer__mark > img { display: block; width: 100%; height: auto; }
.footer__piece { position: absolute; inset: 0; background: center / 100% 100% no-repeat; pointer-events: none; }
.footer__piece--1 { background-image: url("/assets/img/logo-letras/letra-1.png"); transform-origin: 4.2% 55%; }
.footer__piece--2 { background-image: url("/assets/img/logo-letras/letra-2.png"); transform-origin: 17.1% 55%; }
.footer__piece--3 { background-image: url("/assets/img/logo-letras/letra-3.png"); transform-origin: 36.7% 55%; }
.footer__piece--4 { background-image: url("/assets/img/logo-letras/letra-4.png"); transform-origin: 55.6% 55%; }
.footer__piece--5 { background-image: url("/assets/img/logo-letras/letra-5.png"); transform-origin: 73.4% 55%; }
.footer__piece--6 { background-image: url("/assets/img/logo-letras/letra-6.png"); transform-origin: 91.7% 55%; }
.footer__xwash { position: absolute; inset: 0; opacity: 0; background: var(--grad-x); -webkit-mask: url("/assets/img/logo-letras/letra-6.png") center / 100% 100% no-repeat; mask: url("/assets/img/logo-letras/letra-6.png") center / 100% 100% no-repeat; pointer-events: none; }

.ch-mask { padding-bottom: .14em; margin-bottom: -.14em; }

@media (min-width: 1100px) { .page-hero { padding-left: clamp(18px, 3vw, 48px); } }
@media (max-width: 1099px) { .band { display: none; } }
@media (max-width: 760px) {
  .x10__x { left: 2%; top: 8%; translate: 0; width: 44px; height: 44px; }
  .dots-arc { top: 3%; width: 100%; height: 100px; }
}
.route__panel, .form, .twin { position: relative; }
.route__panel::after, .form::after, .twin::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--mint),var(--mint)) left top/18px 1px no-repeat, linear-gradient(var(--mint),var(--mint)) left top/1px 18px no-repeat, linear-gradient(var(--mint),var(--mint)) right top/18px 1px no-repeat, linear-gradient(var(--mint),var(--mint)) right top/1px 18px no-repeat, linear-gradient(var(--mint),var(--mint)) left bottom/18px 1px no-repeat, linear-gradient(var(--mint),var(--mint)) left bottom/1px 18px no-repeat, linear-gradient(var(--mint),var(--mint)) right bottom/18px 1px no-repeat, linear-gradient(var(--mint),var(--mint)) right bottom/1px 18px no-repeat; }

/* Ajustes del mapa de textos: lectura y ritmo en pantallas angostas. */
.eje p { margin-top: 21px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) {
  .page-hero--service { display: flex; flex-direction: column; }
  .page-hero--service .page-hero__shape { position: relative; order: 2; inset: auto; translate: none; align-self: flex-end; margin: 34px var(--gutter) 0; transform: none !important; }
  .section { padding-top: 55px; padding-bottom: 55px; }
  .section--tight { padding-top: 34px; padding-bottom: 34px; }
  .eje { padding: 21px 13px; }
  .steps { grid-template-columns: 1fr; }
}


/* Ritmo Fibonacci y ecosistema tecnológico */
:root { --s-8: 8px; --s-13: 13px; --s-21: 21px; --s-34: 34px; --s-55: 55px; }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-13); margin-top: var(--s-34); }
.partner { background: var(--surface); border-radius: var(--radius); padding: var(--s-34) var(--s-21); display: flex; flex-direction: column; gap: var(--s-13); min-height: 190px; }
.partner img { height: 44px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; margin-bottom: var(--s-8); }
.partner strong { font: 700 18px/1.2 var(--f-title); }
.partner p { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) { .case p { line-height: 1.65; } .figs { gap: var(--s-8); } }

/* Trayectoria: línea con bola que rebota (referencia: estrategia INNBOX10, «Fases hacia el 25») */
.traj { position: relative; margin-top: var(--s-55); padding-top: 110px; }
.traj__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-21); position: relative; z-index: 1; }
.traj__line { position: absolute; left: 0; right: 0; top: 127px; height: 2px; background: var(--grad); transform-origin: 0 50%; }
.traj__node { position: relative; display: block; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--black); }
.traj__node i { position: absolute; inset: 7px; border-radius: 50%; background: var(--green); }
.traj__node b { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
.traj__item--key .traj__node { border-color: var(--gold); }
.traj__item--key .traj__node i { background: var(--gold); }
.traj__year { margin-top: var(--s-34); font-size: clamp(28px, 2.6vw, 40px); }
.traj__title { margin-top: var(--s-13); color: var(--gold); font: 600 16px/1.3 var(--f-body); }
.traj__text { margin-top: var(--s-8); color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.traj__case { display: inline-block; margin-top: var(--s-13); color: var(--cyan); font: 600 13px/1.3 var(--f-title); }
.traj__next { margin-top: var(--s-55); color: var(--ink-2); max-width: 54ch; }
.traj__ball { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffbd6, var(--gold) 45%, #cfc45c); box-shadow: 0 0 18px rgba(237, 228, 122, .5); z-index: 4; opacity: 0; pointer-events: none; }
.traj__trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
@media (max-width: 760px) {
  .traj { padding-top: 0; padding-left: 55px; }
  .traj__list { grid-template-columns: 1fr; gap: var(--s-34); }
  .traj__item { position: relative; }
  .traj__node { top: 4px; }
  .traj__line { left: 17px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, #47a88c, #8fd9b0 55%, #ede47a); transform-origin: 50% 0; }
  .traj__node { position: absolute; left: -55px; top: 0; }
  .traj__year { margin-top: 0; }
}

/* Héroes internos: cuarto de esfera y órbita en la esquina (lámina "Fases hacia el 25") */
@media (min-width: 1100px) {
  .page-hero::before { content: ""; position: absolute; top: 0; right: 0; z-index: -1; width: clamp(200px, 20vw, 320px); aspect-ratio: 1.45; border-radius: 100% 0 0 0; background: radial-gradient(120% 120% at 0% 100%, #8ff5df, #5fc6aa 40%, #3f8a77 62%, #b9ad5e); opacity: .9; pointer-events: none; }
  .page-hero::after { content: ""; position: absolute; top: calc(-1 * clamp(160px, 16vw, 260px)); right: calc(-1 * clamp(60px, 6vw, 100px)); z-index: -1; width: clamp(420px, 34vw, 560px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(185, 173, 94, .35); pointer-events: none; }
}

/* Celulares angostos: palabras largas del H1 (p. ej. TRANSFORMACIÓN) sin cortarse */
@media (max-width: 420px) { .page-hero h1 { font-size: clamp(28px, 9.4vw, 46px); } }
