/* ═══════════ FUENTES LOCALES ═══════════ */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ═══════════ TOKENS ═══════════ */
:root {
  --ink: #0E0F12;
  --ink-2: #16181D;
  --paper: #F3F0E8;
  --paper-2: #E7E2D6;
  --muted: #4B4F58;        /* sobre paper: 7.9:1 */
  --muted-dark: #A7ADB8;   /* sobre ink: 8.1:1 */
  --accent: #8A5A12;       /* sobre paper: 5.9:1 (texto) */
  --accent-dark: #D9A441;  /* sobre ink: 8.6:1 */
  --line: rgba(14, 15, 18, .16);
  --line-dark: rgba(243, 240, 232, .18);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ═══════════ BASE ═══════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 8px 14px;
}
.skip-link:focus { top: 12px; }

.only-desktop { display: inline; }
.only-mobile { display: none; }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }

.kicker {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--accent); margin: 0 0 1.2rem;
}

/* ═══════════ TIPOGRAFÍA MONUMENTAL ═══════════ */
.section-title, .enfoque__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  line-height: .98; letter-spacing: -.035em; margin: 0;
}

/* ═══════════ BOTONES ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.35rem; border: 1px solid currentColor;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border-radius: 0; white-space: nowrap; cursor: pointer;
  background: transparent; transition: background .3s var(--ease), color .3s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ═══════════ ENCABEZADO ═══════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
}
.demo-bar {
  border-bottom: 1px solid var(--line-dark);
  font-size: .78rem; line-height: 1.4; color: var(--muted-dark);
}
.demo-bar__text {
  margin: 0; padding: .55rem var(--pad);
  display: flex; align-items: center; gap: .6rem; justify-content: center; flex-wrap: wrap;
  text-align: center;
}
.demo-bar__note { color: var(--accent-dark); }

.nav {
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem var(--pad);
}
.nav__brand {
  display: flex; flex-direction: column; text-decoration: none; line-height: 1;
  margin-right: auto; white-space: nowrap;
}
.nav__brand-top {
  font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.nav__brand-bottom {
  font-size: .7rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent-dark); margin-top: .3rem;
}
.nav__menu ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 1.8rem;
}
.nav__menu a {
  text-decoration: none; font-size: .9rem; white-space: nowrap;
  color: var(--paper); opacity: .85; position: relative; padding: .25rem 0;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__menu a:hover { opacity: 1; }
.nav__menu a:hover::after { transform: scaleX(1); }
.nav__cta {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
  padding: .7rem 1.1rem; font-size: .88rem;
}
.nav__cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--ink); }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--paper);
  width: 44px; height: 44px; place-items: center; cursor: pointer; padding: 0;
}
.nav__toggle .ico { width: 22px; height: 22px; }
.menu-movil {
  border-top: 1px solid var(--line-dark); padding: .5rem var(--pad) 1.2rem;
}
.menu-movil ul { list-style: none; margin: 0; padding: 0; }
.menu-movil a {
  display: block; padding: .8rem 0; text-decoration: none; font-size: 1.05rem;
  border-bottom: 1px solid var(--line-dark);
}
.menu-movil[hidden] { display: none; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h, 150px) + 2rem) var(--pad) 3rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); color: var(--paper); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__shape { width: 100%; height: 100%; }
.shape-a { fill: var(--accent-dark); opacity: .28; }
.shape-b { fill: none; stroke: var(--paper); stroke-opacity: .18; stroke-width: 1.2; }
.shape-line { fill: none; stroke: var(--accent-dark); stroke-width: 1.5; opacity: .6; }
.hero__inner { position: relative; width: 100%; max-width: var(--max); margin-inline: auto; }
.hero__kicker { color: var(--accent-dark); }
.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(4.2rem, 17vw, 17rem);
  line-height: .86; letter-spacing: -.05em; margin: 0;
}
.hero__title em { font-style: normal; color: var(--accent-dark); }
.hero__foot {
  margin-top: clamp(2rem, 5vw, 4rem);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap;
}
.hero__lede { font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 0; max-width: 28ch; color: var(--paper); }
.hero .btn--ghost { color: var(--paper); border-color: var(--paper); background: var(--ink); }
.hero .btn--ghost:hover { background: var(--paper); color: var(--ink); }

/* ═══════════ MARQUESINA ═══════════ */
.marquee {
  background: var(--accent-dark); color: var(--ink); overflow: hidden;
  border-block: 1px solid var(--ink);
}
.marquee__track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content;
  padding: 1.1rem 0; animation: marquee 38s linear infinite;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap;
}
.marquee__track i {
  width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ EMPRESA ═══════════ */
.empresa { padding: clamp(5rem, 12vw, 10rem) 0; }
.empresa__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.lead { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; margin: 0 0 2.5rem; max-width: 40ch; }
.datos { margin: 0; border-top: 1px solid var(--ink); }
.datos__row {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.datos dt {
  display: flex; align-items: center; gap: .55rem;
  font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
}
.datos dd { margin: 0; font-weight: 600; }

/* ═══════════ FORMACIÓN · HORIZONTAL ═══════════ */
.formacion { background: var(--paper-2); position: relative; }
.formacion__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.formacion__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.formacion__track {
  display: flex; gap: clamp(1.2rem, 2.5vw, 2rem);
  padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2));
  will-change: transform;
}
.panel {
  flex: none; width: clamp(280px, 30vw, 430px); min-height: clamp(340px, 52vh, 460px);
  background: var(--paper); border: 1px solid var(--line);
  position: relative; overflow: hidden; padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.panel__art { position: absolute; inset: 0; z-index: 0; }
.panel__art svg { width: 100%; height: 100%; }
.art-bg { fill: var(--paper-2); }
.art-a { fill: var(--accent); opacity: .85; }
.art-b { fill: var(--ink); opacity: .9; }
.art-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.art-line-circle { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 6; }
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, var(--paper) 42%, rgba(243, 240, 232, .0) 80%);
}
.panel > *:not(.panel__art):not(.panel__num) { position: relative; z-index: 2; }
.panel__num {
  position: absolute; top: 1.4rem; left: 1.6rem; z-index: 2;
  font-family: var(--f-display); font-weight: 800; font-size: .95rem; color: var(--ink);
  background: var(--paper); padding: .2rem .5rem;
}
.panel h3 {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.02; letter-spacing: -.02em; margin: 0 0 .7rem;
}
.panel p { margin: 0; color: var(--muted); max-width: 32ch; }

/* ═══════════ ENFOQUE ═══════════ */
.enfoque { padding: clamp(5rem, 12vw, 10rem) 0; }
.enfoque__grid { display: grid; gap: 2.2rem; }
.enfoque__title { max-width: 16ch; }
.enfoque__list {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.enfoque__list li {
  background: var(--paper); padding: 2rem 1.6rem; font-size: 1.05rem; line-height: 1.5;
}
.enfoque__list li span {
  display: block; font-family: var(--f-display); font-weight: 800; font-size: 2.4rem;
  color: var(--accent); line-height: 1; margin-bottom: 1rem;
}

/* ═══════════ CONTACTO ═══════════ */
.contacto { background: var(--ink); color: var(--paper); padding: clamp(5rem, 12vw, 10rem) 0; }
.contacto__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start;
}
.contacto .kicker { color: var(--accent-dark); }
.contacto__text { color: var(--muted-dark); max-width: 42ch; margin: 1.6rem 0; }
.contacto__ciudad {
  display: flex; align-items: center; gap: .6rem; margin: 0; color: var(--paper); font-weight: 600;
}
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .85rem; letter-spacing: .04em; color: var(--muted-dark); }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark);
  padding: .65rem 0; color: var(--paper); border-radius: 0; resize: vertical; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent-dark); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.form__submit { justify-self: start; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.form__submit:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.form__status { margin: 0; min-height: 1.4em; color: var(--accent-dark); font-size: .92rem; }

/* ═══════════ PIE ═══════════ */
.footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-dark); padding-top: 3.5rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; align-items: start;
  padding-bottom: 3rem;
}
.footer__brand { display: flex; flex-direction: column; line-height: 1; }
.footer__name {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: -.03em; text-transform: uppercase;
}
.footer__name--sub { color: var(--accent-dark); font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: .3em; margin-top: .4rem; }
.footer__info p { margin: 0 0 .3rem; color: var(--muted-dark); }
.footer__nav { display: grid; gap: .6rem; }
.footer__nav a { text-decoration: none; color: var(--paper); }
.footer__nav a:hover { color: var(--accent-dark); }
.footer__demo {
  border-top: 1px solid var(--line-dark); padding-block: 1.2rem 1.6rem;
  font-size: .8rem; color: var(--muted-dark);
}
.footer__demo p { margin: 0; }

/* ═══════════ REVELADOS (sin JS, todo visible) ═══════════ */
.js [data-reveal] { will-change: transform, opacity; }

/* ═══════════ CURSOR (solo puntero fino) ═══════════ */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js.has-cursor, html.js.has-cursor * { cursor: none !important; }
  .cursor {
    display: block; position: fixed; left: 0; top: 0; pointer-events: none; z-index: 200;
  }
  .cursor__dot {
    position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-dark); transform: translate3d(-100px, -100px, 0);
  }
  .cursor__ring {
    position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--paper); transform: translate3d(-100px, -100px, 0);
    transition: width .35s var(--ease), height .35s var(--ease), left .35s var(--ease), top .35s var(--ease), background .35s var(--ease);
  }
  .cursor.is-link .cursor__ring { width: 64px; height: 64px; left: -32px; top: -32px; background: rgba(217, 164, 65, .15); }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .nav { gap: 1rem; }
}
@media (max-width: 900px) {
  .empresa__grid, .contacto__grid { grid-template-columns: 1fr; }
  .enfoque__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .panel { width: min(78vw, 360px); }
}
@media (max-width: 600px) {
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  .demo-bar__text { font-size: .72rem; justify-content: flex-start; text-align: left; }
  .demo-bar__text .ico { display: none; }
  .demo-bar__note { display: block; width: 100%; }
  .datos__row { grid-template-columns: 1fr; gap: .3rem; }
  .btn { white-space: normal; }
  .hero__foot { align-items: stretch; }
  .hero .btn--ghost { width: 100%; justify-content: center; }
}

/* ═══════════ MOVIMIENTO REDUCIDO ═══════════ */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .grain { display: none; }
  .cursor { display: none !important; }
  html.lenis, html.lenis body { height: auto; }
}
