/* =========================
   Base / Reset / Variables
   ========================= */
:root{
  --zc-dark: #022A3D;
  --zc-yellow: #FADB02;
  --zc-white: #ffffff;

  --radius-sm: .3125rem; /* 5px */
  --radius-md: .5rem;    /* 8px */
  --radius-lg: 40px;

  --shadow-soft: 0 6px 18px rgba(0,0,0,.12);
}

/* Reset mínimo y caja consistente */
*,
*::before,
*::after{ box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}



body{
  margin: 0;
  color: var(--zc-dark);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.4;
    -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Medios responsivos */
img, svg, video{ display:block; max-width:100%; height:auto; }


.container{ width:min(1200px, 92%); margin-inline:auto; }

/* Medios responsivos */
img,
svg,
video,
canvas,
iframe{
  display: block;
  max-width: 100%;
}

/* Evita imágenes/videos deformados */
img,
svg,
video{
  height: auto;
}

/* Formularios y elementos interactivos */
button,
input,
textarea,
select{
  font: inherit;
}

/* Evita que textos/líneas largas rompan layouts */
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span{
  overflow-wrap: break-word;
}

/* Contenedores de grid/flex no deben empujar el viewport */
.grid,
[class*="__grid"],
.flex,
[class*="__flex"]{
  min-width: 0;
}

.container{
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Mejor comportamiento táctil en mobile */
a,
button{
  touch-action: manipulation;
}

/* Viewport más estable en mobile */
:where(.hero, .hero--historia, .closing-hero){
  min-height: 100vh;
  min-height: 100svh;
}

@media (max-width: 900px){
  [style*="transform"],
  .howitworks__right{
    will-change: auto;
  }
}

[class*="track"],
[class*="slider"]{
  overscroll-behavior-x: contain;
}