/* ============================================================================
   Es Bassol Nou — Reset + estilos base
   Reset moderno ligero, tipografía base, títulos display, utilidades de
   contenedor y rejilla vertical. Mobile-first.
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Scroll camuflado con la paleta (Firefox / Chromium 121+) */
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 42, 38, 0.3) var(--c-cream);
}

/* Scroll camuflado (WebKit: Chrome, Edge, Safari) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-cream); }
::-webkit-scrollbar-thumb {
  background: rgba(43, 42, 38, 0.28);
  border-radius: 8px;
  border: 3px solid var(--c-cream);
}
::-webkit-scrollbar-thumb:hover { background: rgba(43, 42, 38, 0.45); }

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas { display: block; max-width: 100%; height: auto; }

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

a { color: inherit; text-decoration: none; }

ul,
ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* --- Titulares (Louize) --------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

/* --- Utilidades de texto -------------------------------------------------- */
.u-display   { font-family: var(--font-display); font-weight: 400; }
.u-serif     { font-family: var(--font-display); }
.u-sans      { font-family: var(--font-body); }

.u-label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.u-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--muted);
}

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

/* --- Contenedor ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }

/* Las líneas verticales de los mockups son solo GUÍAS de maquetación (para
   posicionar textos/fotos), NO un elemento de diseño → no se renderizan. */
.has-vgrid { position: relative; }

/* Evita scroll horizontal accidental por elementos solapados */
body { overflow-x: hidden; }
