/* Base: tipografía local, tokens, reinicio, botones y encabezado. */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-latin-800-normal.woff2') format('woff2'); }

:root {
  --marino: #142D46;
  --azul: #356A97;
  --azul-hover: #2A5A84;
  --blanco: #FFFFFF;
  --fondo: #EDF3F7;
  --fondo-suave: #F6F9FB;
  --texto: #233849;
  --suave: #566B7C;
  --linea: rgba(20, 45, 70, 0.14);
  --linea-fuerte: rgba(20, 45, 70, 0.28);
  --borde-control: #74879A;
  --foco: #1B6FD1;
  --fuente: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --ancho: 1240px;
  --alto-aviso: 40px;
  --alto-cabecera: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-cabecera) + 12px); }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.5;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }

.contenedor { width: 100%; max-width: calc(var(--ancho) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--marino); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.saltar:focus { top: 12px; }

/* Elementos que solo funcionan con JavaScript */
html:not(.js) .solo-js { display: none !important; }

.icono { width: 1.1em; height: 1.1em; flex: none; }
.icono--grande { width: 44px; height: 44px; }

.sobretitulo { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--suave); margin-bottom: 14px; }
.sobretitulo--claro { color: rgba(255, 255, 255, 0.78); }

h1, h2, h3 { color: var(--marino); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.boton .icono { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.boton:hover .icono { transform: translate(2px, -2px); }
.boton--solido { background: var(--azul); color: #fff; }
.boton--solido:hover { background: var(--marino); }
.boton--contorno { background: transparent; color: var(--azul); border-color: var(--azul); }
.boton--contorno:hover { background: var(--azul); color: #fff; }
.boton--blanco { background: #fff; color: var(--marino); }
.boton--blanco:hover { background: var(--fondo); }
.boton--chico { min-height: 44px; padding: 0 20px; font-size: 0.875rem; }
.boton:active { transform: scale(0.985); }

.enlace-flecha, .enlace-sub {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0;
  color: var(--azul); font-weight: 600; font-size: 1rem; text-decoration: none;
  background: none; border: 0; border-bottom: 1.5px solid transparent;
}
.enlace-flecha:hover, .enlace-sub:hover { color: var(--marino); }
.enlace-sub { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: rgba(53, 106, 151, 0.5); }
.enlace-sub:hover { text-decoration-color: currentColor; }
.enlace-sub .icono, .enlace-flecha .icono { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.enlace-sub:hover .icono { transform: translate(2px, -2px); }
.enlace-flecha:hover .icono { transform: translateY(2px); }

/* Aviso y cabecera */
.aviso-demo { background: var(--fondo); font-size: 0.8125rem; color: var(--texto); }
.aviso-demo__fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--alto-aviso); }
.aviso-demo__lugar { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.aviso-demo__lugar .icono { color: var(--marino); }

.cabecera { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--alto-cabecera); }

.marca { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--marino); min-height: 44px; }
.marca__nv { width: 64px; height: 42px; color: var(--marino); }
.marca__texto { display: flex; flex-direction: column; line-height: 1.15; }
.marca__nombre { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.marca__rol { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--azul); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav a:not(.boton) { text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--texto); min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.nav a:not(.boton)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:not(.boton):hover::after { transform: scaleX(1); }
.nav__cta { min-height: 54px; padding: 0 30px; font-size: 1rem; font-weight: 700; }

.menu-boton { width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--linea-fuerte); background: #fff; color: var(--marino); align-items: center; justify-content: center; }
.menu-boton .icono { width: 22px; height: 22px; }

@media (max-width: 899px) {
  :root { --alto-cabecera: 68px; }
  .marca__nv { width: 48px; height: 32px; }
  .marca__nombre { font-size: 1.0625rem; }
  .js .menu-boton { display: inline-flex; }
  .nav { flex-wrap: wrap; gap: 4px 20px; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--linea);
    box-shadow: 0 12px 24px -16px rgba(20, 45, 70, 0.25);
  }
  .js .nav.abierto { display: flex; }
  .js .nav a:not(.boton) { font-size: 1rem; padding: 10px 0; border-bottom: 1px solid var(--linea); }
  .js .nav a:not(.boton)::after { display: none; }
  .js .nav .nav__cta { margin-top: 16px; }
  .cabecera__fila { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; padding-bottom: 12px; }
}

@media (max-width: 520px) {
  .aviso-demo { font-size: 0.6875rem; }
  .aviso-demo__fila { gap: 8px; }
  .aviso-demo__lugar { display: none; }
  .aviso-demo p:first-child { text-align: center; width: 100%; }
}

/* Movimiento sutil */
.anim [data-revela] { opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.anim [data-revela].visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .anim [data-revela] { opacity: 1; transform: none; }
}

@media (max-width: 380px) {
  .boton { padding: 0 20px; white-space: normal; text-align: center; }
}
