/* =========================
   BASE STYLES – SINTEGRAD
   ========================= */

/* Reset estructural */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ==========================================================
   CONTRATO GLOBAL (ALTURAS + CAPAS)
   Apple-style: pocas reglas, pero soberanas.
   ========================================================== */

:root {
    /* Alturas fijas (single source of truth) */
    --nav-h-mobile: 56px;
    --nav-h-desktop: 64px;

    /* Jerarquía de capas */
    --z-base: 0;
    --z-content: 1;
    --z-float: 40;      /* CTA flotante (debajo del nav) */
    --z-nav: 50;        /* nav fijo */
    --z-offcanvas: 60;  /* panel móvil + scrim */
    --z-modal: 70;

    /* Safe areas (iOS) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    scroll-behavior: smooth;
}

/* Offset global por NAV FIXED (crítico) */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Desktop por defecto (>=1024) */
    padding-top: var(--nav-h-desktop);
}

/* Mobile override */
@media (max-width: 1023px) {
    body {
        padding-top: calc(var(--nav-h-mobile) + var(--safe-top));
    }
}

/* Evita scroll cuando menú móvil está abierto */
body.no-scroll {
    overflow: hidden;
}

/* Anclas: evita que el nav tape los IDs */
[id] {
    scroll-margin-top: calc(var(--nav-h-desktop) + 16px);
}
@media (max-width: 1023px) {
    [id] {
        scroll-margin-top: calc(var(--nav-h-mobile) + var(--safe-top) + 16px);
    }
}

/* Medios */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* Tipografía base */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: inherit;
}

p {
    margin: 0;
}

/* Enlaces */
a {
    color: inherit;
    text-decoration: none;
}

/* Listas */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Formularios (neutral) */
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
}

/* Accesibilidad */
:focus-visible {
    outline: 2px solid #00A2FF;
    outline-offset: 2px;
}

/* ==========================================================
   IMPORTS DE COMPONENTES
   ========================================================== */

@import url("./components.css");


/* ── Visually hidden (accesibilidad / SEO) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
