@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-tight-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-tight-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-tight-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600-normal.woff2') format('woff2'); }

:root {
  --tinta: #0E1A2B;
  --tinta-2: #1B2A41;
  --papel: #F5F3EE;
  --papel-2: #E9E6DE;
  --acento: #1F6F8B;      /* sobre papel: contraste AA */
  --acento-claro: #7FC4DB; /* sobre tinta */
  --gris: #4A5566;        /* sobre papel: contraste AA */
  --linea: rgba(14, 26, 43, .14);
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --cuerpo: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --alto-header: 64px;
  --alto-aviso: 38px;
}

*, *::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;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--cuerpo);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.eyebrow {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acento);
  font-weight: 600;
  margin: 0 0 18px;
}
.titulo-xl {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0;
}
.titulo-xl em { color: var(--acento); }
.lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; margin: 0; letter-spacing: -.01em; }
.texto { color: var(--gris); margin: 0; max-width: 60ch; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--tinta);
  background: var(--tinta);
  color: var(--papel);
  font: 600 15px/1 var(--cuerpo);
  text-decoration: none;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--acento); border-color: var(--acento); }
.btn-linea { background: transparent; color: var(--tinta); }
.btn-linea:hover { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.btn-header { min-height: 40px; padding: 0 20px; font-size: 14px; }

/* Aviso de demostración (barra superior) */
.aviso-demo {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--alto-aviso);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--tinta-2);
  color: #DCE6EE;
  font-size: 13px;
  text-align: center;
}
.aviso-demo p { margin: 0; line-height: 1.3; }

/* Header fijo */
.header {
  position: fixed;
  top: var(--alto-aviso); left: 0; right: 0;
  z-index: 50;
  background: rgba(245, 243, 238, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.header-in {
  height: var(--alto-header);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.logo-txt {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .02em;
}
.logo-txt small {
  font-family: var(--cuerpo);
  font-weight: 500;
  font-size: 11px;
  margin-left: 4px;
  letter-spacing: .12em;
  color: var(--acento);
  vertical-align: top;
  position: relative;
  top: 4px;
}
.menu {
  display: flex;
  gap: 28px;
  margin-left: auto;
  white-space: nowrap;
}
.menu a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.menu a:hover { background-size: 100% 1px; }
.hamb {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.hamb span { display: block; width: 24px; height: 2px; background: var(--tinta); transition: transform .3s var(--ease), opacity .3s; }
.hamb[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.hamb[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-movil {
  display: none;
  flex-direction: column;
  padding: 8px var(--pad) 24px;
  background: var(--papel);
  border-top: 1px solid var(--linea);
}
.menu-movil a { font-family: var(--display); font-size: 28px; font-weight: 700; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--linea); }
.menu-movil.abierto { display: flex; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--alto-aviso) + var(--alto-header) + 56px) var(--pad) 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-titulo {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 10.4vw, 168px);
  line-height: .92;
  letter-spacing: -.045em;
  margin: 0 0 36px;
  max-width: 14ch;
}
.hero-titulo em { color: var(--acento); }
.hero-sub { font-size: clamp(18px, 1.8vw, 22px); max-width: 52ch; color: var(--gris); margin: 0 0 36px; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-linea {
  position: absolute;
  left: var(--pad); right: var(--pad);
  bottom: 28px;
  height: 1px;
  background: var(--linea);
  transform-origin: left center;
}

/* Marquesina */
.marquesina {
  overflow: hidden;
  background: var(--tinta);
  color: var(--papel);
  padding: 22px 0;
  white-space: nowrap;
}
.marquesina-pista {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -.02em;
  animation: marquesina 38s linear infinite;
  will-change: transform;
}
.marquesina-pista i { width: 10px; height: 10px; border-radius: 50%; background: var(--acento-claro); display: inline-block; }
@keyframes marquesina { to { transform: translateX(-50%); } }

/* Secciones */
.seccion { padding: clamp(96px, 14vw, 180px) var(--pad); }
.seccion-cab { margin-bottom: 48px; }
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--linea);
  padding-top: 40px;
}

/* Horizontal fijada */
.horizontal { position: relative; background: var(--papel-2); }
.horizontal-fija {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 48px;
}
.horizontal-cab { padding: 0 var(--pad); margin-bottom: 40px; }
.horizontal-pista {
  display: flex;
  gap: 24px;
  padding: 0 var(--pad);
  width: max-content;
}
.tarjeta {
  width: min(440px, 80vw);
  min-height: 340px;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 6px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tarjeta .num { font-family: var(--display); font-weight: 700; color: var(--acento); font-size: 15px; letter-spacing: .08em; }
.tarjeta .ico { width: 36px; height: 36px; color: var(--tinta); }
.tarjeta h3 { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; margin: auto 0 0; }
.tarjeta p { margin: 0; color: var(--gris); }

/* Datos */
.datos-lista { margin: 0; border-top: 1px solid var(--linea); }
.datos-lista > div {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--linea);
}
.datos-lista dt { color: var(--gris); font-size: 15px; font-weight: 500; }
.datos-lista dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.01em; }

/* Contacto */
.contacto { background: var(--tinta); color: var(--papel); }
.contacto .eyebrow { color: var(--acento-claro); }
.contacto .titulo-xl em { color: var(--acento-claro); }
.contacto .texto { color: #B9C4D1; margin-top: 28px; }
.contacto .lead { color: var(--papel); }

/* Pie */
.footer { background: var(--tinta-2); color: #DCE6EE; padding: 48px var(--pad) 56px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; align-items: flex-start; }
.footer-marca .logo-txt { color: var(--papel); }
.footer-marca p { margin: 10px 0 0; font-size: 14px; color: #B9C4D1; }
.footer-aviso { max-width: 46ch; font-size: 14px; }
.footer-aviso p { margin: 0; }

/* Revelado inicial (JS quita la clase cuando corre) */
.js .reveal-pendiente { opacity: 0; }

/* Cursor personalizado (solo puntero fino) */
.cursor { display: none; }

@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    margin: -18px 0 0 -18px;
    border: 1px solid var(--acento);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    mix-blend-mode: difference;
  }
  .cursor-punto {
    position: absolute;
    left: 50%; top: 50%;
    width: 4px; height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: var(--acento);
  }
  html.js, html.js a, html.js button { cursor: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .menu { display: none; }
  .btn-header { display: none; }
  .hamb { display: flex; }
  .header-in { gap: 16px; }
  .menu-movil { display: flex; }
  .menu-movil:not(.abierto) { display: none; }
  .nosotros-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .aviso-demo { font-size: 12px; height: auto; min-height: var(--alto-aviso); padding: 6px 14px; }
  :root { --alto-aviso: 44px; }
  .hero { padding-bottom: 96px; }
  .datos-lista > div { grid-template-columns: 1fr; gap: 6px; }
  .tarjeta { min-height: 300px; padding: 28px; }
  .hero-acciones .btn { flex: 1 1 100%; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .marquesina-pista { animation: none; }
  .cursor { display: none !important; }
  html.js, html.js a, html.js button { cursor: auto !important; }
  .js .reveal-pendiente { opacity: 1 !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
