/* global.css: estilos GLOBALES de todo el sitio (los que comparten todas las secciones).
   IDs: cada bloque lleva arriba un comentario con su ID (global, categoría y número) para buscarlo con Ctrl+F o desde la consola.
   El número es correlativo por categoría y no se recicla ni se renumera: para sumar una regla nueva usá el número siguiente de su categoría.
   Los @media van en su propia categoría con sufijo (-laptop, -tablet, -mobile, -reducido).
   Categorías: base, grano, top, pie, movimiento-reducido.
   Cada sección suma su estilo adicional en su propio archivo (por ejemplo css/mes-a-mes.css), cargado después de este. */

/* global/base/01 */
:root {
  --bg: #000;
  --s1: #121713;
  --tx: #e9ede9;
  --tx2: #9aa69e;
  --mu: #5c685f;
  --bd: rgba(233,237,233,.12);
  --ink: #141621;
  --red: #DC2626;
  --org: #F59E0B;
  --pnk: #FF005C;
  --grn: #22C55E;
  --blu: #2563EB;
  --vio: #8B5CF6;
  --disp: 'Bungee','Arial Black',sans-serif;
  --body: 'Space Grotesk',system-ui,sans-serif;
  --g: clamp(1.25rem,4vw,3.5rem);
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
}

/* global/base/02 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top,0px);
}

/* global/base/03 */
*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

/* global/base/04 */
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}

/* global/base/05 */
a {
  color: inherit;
  text-decoration: none;
}

/* global/base/06 */
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* global/base/07 */
:focus-visible {
  outline: 3px solid var(--org);
  outline-offset: 3px;
}

/* global/base/08 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),url("../assets/imgs/bgmain.webp") center/cover no-repeat,#000;
}

/* global/base/09 */
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* global/base/10 */
main {
  flex: 1 0 auto;
}

/* global/grano/01 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .1;
  mix-blend-mode: screen;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px;
}

/* global/top/01 */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  min-height: 46px;
  padding: env(safe-area-inset-top,0px) var(--g) 0;
  background: rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* global/top/02 */
.brand {
  font-weight: 700;
}

/* global/top/03 */
.top nav {
  display: flex;
  gap: clamp(1rem,2.5vw,2rem);
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx2);
}

/* global/top/04 */
.top nav a:hover {
  color: var(--tx);
}
/* global/pie/01 */
.foot2 {
  padding: 2rem var(--g);
  border-top: 1px solid var(--bd);
  color: var(--tx2);
  font-size: .8rem;
}

/* global/pie/02 */
.foot2 {
  padding: 1rem var(--g);
  text-align: center;
}

/* global/movimiento-reducido/01 */
@media (prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    transition: none!important;
  }
}
