/* ==========================================================================
   Kraft 3D Studio — base: reset, tipografía y maquetación
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--alto-header) + var(--e-4));
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--blanco);
  color: var(--navy);
  font-family: var(--f-texto);
  font-weight: var(--peso-texto);
  font-size: var(--t-base);
  line-height: var(--lh-texto);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
table { border-collapse: collapse; }

/* --- Tipografía ---------------------------------------------------------- */

h1, h2, h3, h4,
.titulo-3xl, .titulo-2xl, .titulo-xl, .titulo-lg, .titulo-md {
  margin: 0;
  font-family: var(--f-titulo);
  font-weight: 500;
  line-height: var(--lh-titulo);
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1, .titulo-2xl { font-size: var(--t-2xl); }
h2, .titulo-xl  { font-size: var(--t-xl); }
h3, .titulo-lg  { font-size: var(--t-lg); line-height: 1; }
h4, .titulo-md  { font-size: var(--t-md); line-height: 1.1; }
.titulo-3xl     { font-size: var(--t-3xl); line-height: .88; }

.regular { font-weight: 400; }

/* Títulos grandes en Lexend (mayúsculas); los títulos chicos (h3, h4, fichas, precios) quedan en Nohemi Medium.
   Para volver a Nohemi en los títulos grandes, borra la línea font-family. */
h1, h2, .titulo-3xl, .titulo-2xl, .titulo-xl {
  font-family: var(--f-texto);
  font-weight: 500;
  letter-spacing: -.02em;
}
.medium { font-weight: 500; }

.etiqueta {
  font-family: var(--f-texto);
  font-size: var(--t-xs);
  line-height: 1.2;
  letter-spacing: var(--ls-etiqueta);
  text-transform: uppercase;
}

.lead {
  font-size: var(--t-md);
  line-height: 1.45;
  max-width: 48ch;
}

.texto-sec { color: var(--navy-70); }
.prosa { max-width: var(--ancho-texto); }
.prosa > * + * { margin-top: var(--e-4); }
.prosa h2, .prosa h3 { margin-top: var(--e-7); }
.prosa ul, .prosa ol { padding-left: 1.25em; }
.prosa li + li { margin-top: var(--e-2); }

/* Enlaces dentro de texto */
.prosa a, .enlace {
  color: var(--azul);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.prosa a:hover, .enlace:hover { text-decoration-thickness: 2px; }

/* Texto aún no definido: se ve en la web hasta que se complete */
.pendiente {
  background: #FFF3C4;
  color: var(--navy);
  padding: 0 .25em;
  border-radius: 3px;
}

/* --- Foco visible y accesibilidad --------------------------------------- */

:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}
.fondo-azul :focus-visible,
.fondo-navy :focus-visible,
.menu-movil :focus-visible,
.pie :focus-visible { outline-color: var(--celeste); }

.solo-lector {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.saltar {
  position: fixed;
  top: var(--e-3); left: var(--e-3);
  z-index: 100;
  padding: var(--e-3) var(--e-4);
  background: var(--navy);
  color: var(--blanco);
  border-radius: var(--radio-sm);
  transform: translateY(-200%);
}
.saltar:focus { transform: none; }

/* --- Maquetación --------------------------------------------------------- */

.contenedor {
  width: 100%;
  max-width: calc(var(--ancho-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.seccion { padding-block: var(--e-9); }
.seccion--compacta { padding-block: var(--e-8); }

.fondo-blanco  { background: var(--blanco);  color: var(--navy); }
.fondo-celeste { background: var(--celeste); color: var(--navy); }
.fondo-navy    { background: var(--navy);    color: var(--celeste); }
.fondo-azul    { background: var(--azul);    color: var(--blanco); }
.fondo-navy .texto-sec { color: var(--celeste-70); }
.fondo-azul .texto-sec { color: rgb(255 255 255 / .82); }

.pila > * + * { margin-top: var(--pila, var(--e-4)); }

.grilla {
  display: grid;
  gap: var(--grilla-gap, var(--e-5));
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grilla-min, 260px)), 1fr));
}

.encabezado-seccion {
  display: grid;
  gap: var(--e-4);
  margin-bottom: var(--e-7);
}
@media (min-width: 960px) {
  .encabezado-seccion--lado {
    grid-template-columns: 1fr minmax(0, 28rem);
    align-items: end;
  }
}

main { display: block; }

/* --- Movimiento reducido ------------------------------------------------- */
/* Sin animaciones: la página se ve completa y estática. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
