/* ═══════════════════════════════════════════════════════════
   JANTIA CORPORATION
   Sistema visual construido sobre los colores del logotipo:
   ámbar #F0A848 · azul profundo #003060 · turquesa #18A890
   ═══════════════════════════════════════════════════════════ */

:root {
  /* —— Color —— */
  --ink:        #04101B;
  --ink-2:      #06182A;
  --ink-3:      #081F33;
  --navy:       #003060;
  --amber:      #F0A848;
  --amber-dim:  #C4832F;
  --teal:       #18A890;
  --text:       #ECF2F8;
  --muted:      #8AA0B4;
  --muted-2:    #5C7488;
  --line:       rgba(236, 242, 248, .10);
  --line-soft:  rgba(236, 242, 248, .06);
  --glass:      rgba(236, 242, 248, .035);

  /* —— Tipografía —— */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --serif:   "Instrument Serif", Georgia, serif;

  /* —— Escala fluida —— */
  --fs-hero:  clamp(2.6rem, 1.2rem + 6vw, 6rem);
  --fs-h2:    clamp(2rem, 1.35rem + 2.8vw, 3.5rem);
  --fs-h3:    clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
  --fs-body:  clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-sm:    .875rem;
  --fs-xs:    .75rem;

  /* —— Layout —— */
  --shell:    1240px;
  --gutter:   clamp(1.25rem, .8rem + 2vw, 2.5rem);
  --sec-y:    clamp(5rem, 3rem + 8vw, 10rem);
  --r-sm:     10px;
  --r:        18px;
  --r-lg:     28px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ─────────── Reset ─────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.65;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

h1 em, h2 em, .quote em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--amber);
}

p { margin: 0; }

::selection { background: var(--amber); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────── Utilidades ─────────── */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -120px; left: 1rem;
  z-index: 300;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  padding: .7rem 1.1rem;
  border-radius: var(--r-sm);
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Grano + foco de luz */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.spotlight {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  margin: -300px 0 0 -300px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(240, 168, 72, .10) 0%, transparent 62%);
  transition: opacity .5s var(--ease);
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 250;
  width: 100%; height: 2px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

/* ─────────── Header ─────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background-color .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(4, 16, 27, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo img {
  width: 40px; height: 40px;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.logo:hover img { transform: rotate(-8deg) scale(1.06); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
}
.logo__sub {
  font-size: .625rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav { display: flex; gap: 2rem; }
.nav a {
  position: relative;
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-current { color: var(--text); }
.nav a.is-current::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: .75rem; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 11px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Drawer móvil */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 190;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
  background: var(--ink);
  border-top: 1px solid var(--line-soft);
  animation: drawerIn .45s var(--ease);
}
@keyframes drawerIn { from { opacity: 0; transform: translateY(-12px); } }

/* El atributo hidden debe ganar al display:flex de arriba */
.drawer[hidden] { display: none; }

.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -.03em;
  padding: .55em 0;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__idx {
  font-family: var(--body);
  font-size: .6875rem;
  letter-spacing: .2em;
  color: var(--amber);
}
.drawer__foot {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  padding-top: 2rem;
}

/* ─────────── Botones ─────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  padding: 1rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn--sm { padding: .7rem 1.2rem; font-size: .8125rem; }
.btn--full { width: 100%; }

.btn--solid { background: var(--amber); color: var(--ink); font-weight: 600; }
.btn--solid:hover { background: #ffc06a; transform: translateY(-2px); }

.btn--ghost { border-color: var(--line); color: var(--text); background: var(--glass); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ─────────── Etiquetas ─────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 999px;
  padding: .5rem 1rem;
  backdrop-filter: blur(8px);
}
.tag__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(24, 168, 144, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(24, 168, 144, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 168, 144, 0); }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.eyebrow span {
  font-family: var(--display);
  font-weight: 600;
  color: var(--amber);
}
.eyebrow::after {
  content: "";
  flex: 0 0 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 22%, rgba(0, 48, 96, .55) 0%, transparent 70%),
    radial-gradient(45% 45% at 12% 78%, rgba(24, 168, 144, .18) 0%, transparent 70%),
    radial-gradient(38% 38% at 62% 88%, rgba(240, 168, 72, .10) 0%, transparent 70%);
}

.hero__inner { position: relative; }

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: .98;
  margin: 1.75rem 0;
  max-width: 16ch;
}
.hero__title .line { display: block; overflow: hidden; }

.hero__lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .4vw, 1.1875rem);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin: 2.5rem 0 4rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.stat {
  background: rgba(4, 16, 27, .55);
  backdrop-filter: blur(10px);
  padding: 1.4rem 1.5rem;
}
.stat dt {
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.stat dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.num__suffix { color: var(--amber); }

.hero__proof {
  margin-top: 1.25rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.hero__proof a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.hero__proof a:hover { color: var(--amber); border-color: var(--amber); }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue__line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--amber), transparent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ─────────── Ticker ─────────── */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 1.5rem 0;
  border-block: 1px solid var(--line-soft);
  background: var(--ink-2);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: slide 42s linear infinite;
}
.ticker__track span {
  font-family: var(--display);
  font-size: clamp(1.1rem, .9rem + 1vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -.03em;
  color: rgba(236, 242, 248, .34);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.ticker:hover .ticker__track span { color: rgba(236, 242, 248, .55); }
.ticker__track i { color: var(--amber); font-size: .7rem; font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ─────────── Secciones ─────────── */
.section {
  position: relative;
  z-index: 2;
  padding-block: var(--sec-y);
}
.section--alt { background: var(--ink-2); }
.section--quote { background: var(--ink-2); }

.head { max-width: 62ch; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.head--row {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: end;
  max-width: none;
}
.head__lead {
  color: var(--muted);
  max-width: 52ch;
  margin-top: 1.5rem;
}
.head--row .head__lead { margin-top: 0; padding-bottom: .5rem; }

/* ─────────── Pilares ─────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.pillar {
  background: var(--ink);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  transition: background-color .45s var(--ease);
}
.pillar:hover { background: var(--ink-3); }
.pillar__idx {
  display: block;
  font-family: var(--display);
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  color: var(--amber);
  margin-bottom: 2.5rem;
}
.pillar h3 { margin-bottom: 1rem; }
.pillar > p { color: var(--muted); }

.mini-list { margin-top: 1.75rem; display: grid; gap: .6rem; }
.mini-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid var(--teal);
}

/* ─────────── Portfolio ─────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem 1.1rem;
  cursor: pointer;
  transition: all .35s var(--ease);
}
.chip span {
  font-size: .625rem;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--muted); color: var(--text); }
.chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--ink);
  font-weight: 500;
}
.chip.is-active span { color: var(--amber-dim); }

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}

.co {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .45s var(--ease), transform .45s var(--ease), background-color .45s var(--ease);
}
.co::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 0% 0%, rgba(240, 168, 72, .10), transparent 55%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.co:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: rgba(236, 242, 248, .05);
}
.co:hover::before { opacity: 1; }
.co.is-hidden { display: none; }

.co__mark {
  position: relative;
  flex: 0 0 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.04em;
  color: var(--ink);
}
.co__mark[data-mark="tech"]      { background: linear-gradient(140deg, var(--amber), #C4832F); }
.co__mark[data-mark="consumo"]   { background: linear-gradient(140deg, var(--teal), #0C6B72); color: #04101B; }
.co__mark[data-mark="formacion"] { background: linear-gradient(140deg, #4B8FD1, var(--navy)); color: #ECF2F8; }

/* Tarjetas con logotipo real de la marca */
/* Especificidad doble para ganar a .co__mark[data-mark="..."] */
.co__mark.co__mark--logo {
  background: rgba(236, 242, 248, .06);
  border: 1px solid var(--line);
  padding: .55rem;
}
.co__mark--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Placa clara: para logos con color de marca que no admiten inversion */
.co__mark.co__mark--light,
.modal__mark.modal__mark--light {
  background: #F4F7FA;
  border-color: rgba(4, 16, 27, .12);
}
/* A sangre: el arte ya es cuadrado y oscuro */
.co__mark.co__mark--full,
.modal__mark.modal__mark--full { padding: 0; background: transparent; }
.co__mark--full img,
.modal__mark--full img { border-radius: 13px; }

/* El logo de la tienda es negro monocromo: se invierte para el fondo oscuro */
.co__mark--invert img,
.modal__mark--invert img { filter: invert(1); }

.co__body { position: relative; flex: 1; min-width: 0; }
.co__sector {
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}
.co__body h3 { font-size: 1.125rem; margin-bottom: .2rem; }
.co__desc { font-size: var(--fs-sm); color: var(--muted); }

.co__more {
  position: relative;
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: all .35s var(--ease);
}
.co:hover .co__more { border-color: var(--amber); color: var(--amber); }
.co__more::after { content: ""; position: absolute; inset: -1.25rem; }

.portfolio__note {
  margin-top: 2rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 60ch;
}

/* ─────────── Método ─────────── */
.method {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.method__sticky {
  position: sticky;
  top: calc(var(--header-h) + 4rem);
}
.method__viz {
  position: relative;
  width: 200px; height: 200px;
  display: grid;
  place-items: center;
}
.method__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}
.method__ring:nth-child(2) { inset: 24px; border-color: rgba(24, 168, 144, .28); animation-duration: 16s; animation-direction: reverse; }
.method__ring:nth-child(3) { inset: 48px; border-color: rgba(240, 168, 72, .34); animation-duration: 11s; }
.method__ring::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
}
.method__ring:nth-child(2)::after { background: var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }

.method__step {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.method__label {
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
}

.steps { display: grid; }
.step {
  padding: clamp(2rem, 1.5rem + 2vw, 3.25rem) 0;
  border-top: 1px solid var(--line-soft);
  transition: opacity .5s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step__idx {
  font-family: var(--display);
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: 1rem;
  transition: color .4s var(--ease);
}
.step.is-active .step__idx { color: var(--amber); }
.step h3 { margin-bottom: .875rem; }
.step p:last-child { color: var(--muted); max-width: 58ch; }

/* ─────────── Bento verticales ─────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.tile {
  position: relative;
  min-height: 300px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  isolation: isolate;
}
.tile--lg { grid-column: span 2; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(.55) brightness(.62);
  transition: transform .8s var(--ease), filter .8s var(--ease);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 16, 27, .2) 20%, rgba(4, 16, 27, .92) 100%);
}
.tile:hover img { transform: scale(1.06); filter: saturate(.85) brightness(.7); }

.tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.tile__kicker {
  display: inline-block;
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--teal);
  border-radius: 999px;
  padding: .25rem .7rem;
  margin-bottom: .75rem;
}
.tile__body h3 { margin-bottom: .4rem; }

/* Las fichas del bento son enlaces a su vertical */
.tile { display: block; text-decoration: none; }
.tile:hover { text-decoration: none; }
.tile__kicker--obj { background: var(--amber); }

.tile__go {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .9rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.tile:hover .tile__go,
.tile:focus-visible .tile__go { opacity: 1; transform: none; }
.tile__go svg { transition: transform .3s var(--ease); }
.tile:hover .tile__go svg { transform: translateX(3px); }

/* Banda de llamada bajo el bento */
.vcta--band { margin-top: 1rem; }
.vcta--band h3 { font-size: clamp(1.2rem, 1.05rem + .8vw, 1.6rem); margin-bottom: .45rem; }
.vcta--band p { color: var(--muted); font-size: var(--fs-sm); max-width: 62ch; }
.tile__body p { font-size: var(--fs-sm); color: rgba(236, 242, 248, .72); }

/* ─────────── Cita + principios ─────────── */
.quote { margin: 0 0 clamp(3rem, 2rem + 3vw, 5rem); }
.quote p {
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.1rem + 3vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.1;
  max-width: 20ch;
  text-wrap: balance;
}
.quote footer {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  width: max-content;
}
.quote__name { font-weight: 500; font-size: var(--fs-sm); }
.quote__role { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .06em; }

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.principles li {
  background: var(--ink-2);
  padding: 1.75rem 1.5rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.principles span {
  display: block;
  font-family: var(--display);
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

/* ─────────── Timeline ─────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  position: relative;
  padding-top: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), var(--teal), transparent);
}
.tl { position: relative; }
.tl::before {
  content: "";
  position: absolute;
  top: -2.5rem; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--amber);
  transform: translateY(-4px);
}
.tl__year {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.04em;
  margin-bottom: .75rem;
  font-variant-numeric: tabular-nums;
}
.tl h3 { font-size: 1rem; margin-bottom: .5rem; }
.tl p:last-child { font-size: var(--fs-sm); color: var(--muted); }

/* ─────────── Contacto ─────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.contact__data {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.contact__data li {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: baseline;
  background: var(--ink-2);
  padding: 1rem 1.25rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.contact__k {
  flex: 0 0 90px;
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__data a { color: var(--text); transition: color .3s var(--ease); }
.contact__data a:hover { color: var(--amber); }

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}
.field { display: grid; gap: .5rem; }
.field label {
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(4, 16, 27, .6);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .9rem 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field ::placeholder { color: rgba(138, 160, 180, .55); }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--ink-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(240, 168, 72, .14);
}
.field .is-invalid { border-color: #E2696A; }

.form__status { font-size: var(--fs-sm); color: var(--muted); min-height: 1.4em; }
.form__status.is-error { color: #E2696A; }
.form__status.is-ok { color: var(--teal); }

.form__fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  padding: 1rem;
  background: rgba(24, 168, 144, .08);
  border: 1px solid rgba(24, 168, 144, .3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
}
.form__fallback[hidden] { display: none; }
.form__fallback a { color: var(--text); }
.form__copy {
  background: var(--teal);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: .55rem 1rem;
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.form__copy:hover { background: #22c4a8; }

/* ─────────── Footer ─────────── */
.footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 6rem);
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  padding-bottom: 4rem;
}
.footer__brand img { width: 46px; height: 46px; object-fit: contain; margin-bottom: 1.25rem; }
.footer__brand p { color: var(--muted); font-size: var(--fs-sm); max-width: 40ch; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer__cols div { display: flex; flex-direction: column; gap: .6rem; }
.footer__title {
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .4rem;
}
.footer__cols a {
  font-size: var(--fs-sm);
  color: var(--muted);
  width: max-content;
  transition: color .3s var(--ease);
}
.footer__cols a:hover { color: var(--amber); }

.footer__word {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4rem, 17vw, 16rem);
  line-height: .8;
  letter-spacing: -.05em;
  text-align: center;
  margin: 0;
  background: linear-gradient(180deg, rgba(236, 242, 248, .09), transparent 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ─────────── Modal ─────────── */
.modal {
  width: min(100% - 2rem, 540px);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}
.modal::backdrop { background: rgba(2, 8, 14, .78); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .4s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.modal__close {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.modal__close:hover { border-color: var(--amber); color: var(--amber); }

.modal__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.modal__mark {
  flex: 0 0 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.modal__mark[data-mark="tech"]      { background: linear-gradient(140deg, var(--amber), #C4832F); }
.modal__mark[data-mark="consumo"]   { background: linear-gradient(140deg, var(--teal), #0C6B72); }
.modal__mark[data-mark="formacion"] { background: linear-gradient(140deg, #4B8FD1, var(--navy)); color: #ECF2F8; }
.modal__mark.modal__mark--logo {
  background: rgba(236, 242, 248, .06);
  border: 1px solid var(--line);
  padding: .55rem;
}
.modal__mark--logo img { width: 100%; height: 100%; object-fit: contain; }

.modal__sector {
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.modal h2 { font-size: 1.5rem; }
.modal__desc { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1.5rem; }

.modal__site {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--amber);
  border-bottom: 1px solid rgba(240, 168, 72, .35);
  padding-bottom: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.modal__site:hover { color: #ffc06a; border-color: #ffc06a; }
.modal__site svg { transition: transform .3s var(--ease); }
.modal__site:hover svg { transform: translate(2px, -2px); }

.modal__meta {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.modal__meta > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink-3);
  padding: .75rem 1rem;
  font-size: var(--fs-sm);
}
.modal__meta dt { color: var(--muted); }
.modal__meta dd { margin: 0; text-align: right; }

/* ─────────── WhatsApp ─────────── */
.wa {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #1F2C38;
  border: 1px solid var(--line);
  color: #25D366;
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.wa:hover { transform: scale(1.08); background: #25D366; color: #04101B; }

/* ─────────── Reveal ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ─────────── Páginas legales ─────────── */
.page {
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem));
  padding-bottom: var(--sec-y);
  position: relative;
  z-index: 2;
}
.page h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  font-weight: 500;
  margin-bottom: 1rem;
}
.page__meta { color: var(--muted); font-size: var(--fs-sm); }
.prose { max-width: 70ch; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.prose h2 {
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  margin: 3rem 0 1rem;
}
.prose p, .prose li { color: var(--muted); }
.prose p { margin-bottom: 1rem; }
.prose ul { list-style: none; display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid var(--teal);
}
.prose a { color: var(--amber); }
.prose a:hover { text-decoration: underline; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: var(--fs-sm);
}
.prose th, .prose td {
  text-align: left;
  padding: .8rem 1rem;
  border: 1px solid var(--line-soft);
  color: var(--muted);
}
.prose th { color: var(--text); background: var(--ink-2); font-family: var(--display); font-weight: 500; }



/* ─────────── Responsive ─────────── */
@media (max-width: 1080px) {
  .method { grid-template-columns: 1fr; }
  .method__sticky { position: static; display: flex; align-items: center; gap: 2rem; margin-bottom: 1rem; }
  .method__viz { width: 120px; height: 120px; flex: 0 0 120px; }
  .method__step { font-size: 1.75rem; }
  .method__label { margin-top: 0; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__actions .btn { display: none; }
  .head--row { grid-template-columns: 1fr; align-items: start; }
  .head--row .head__lead { padding-bottom: 0; }
  .pillars { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--lg { grid-column: span 2; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
  .contact { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .hero { min-height: auto; padding-bottom: 4rem; }
  .hero__title { max-width: none; }
  .scroll-cue { display: none; }
  .bento, .principles { grid-template-columns: 1fr; }
  .tile--lg { grid-column: span 1; }
  .tile { min-height: 240px; }
  .timeline { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 2rem; }
  .hero__cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .spotlight { display: none; }
}
