:root {
  --pure-black: #0A0704;
  --soft-black: #120D08;
  --halloween-primary: #FF9D2E;
  --halloween-vivid: #FFC15E;
  --halloween-muted: #D9A441;
  --ghostly-white: #FBF6EA;
  --ashen-grey: #EADFC5;
  /* Improved readability */
  --blood-red: #E52020;
  --border-glow: rgba(255, 157, 46, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.14);
  --transition-premium: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  --transition-haunted: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  /* Season defaults */
  --season-accent: #FFC15E;
  --season-bg1: rgba(255, 157, 46, 0.18);
  --season-bg2: rgba(255, 157, 46, 0.06);
  --season-bg3: rgba(255, 157, 46, 0.02);
  --season-accent-soft: rgba(255, 157, 46, 0.12);
  --season-glow: rgba(255, 157, 46, 0.35);
  --season-dark: #120D08;
  --season-dark-soft: #1C1409;
  --season-strong: #FBF6EA;
  /* Safe area variables for mobile notches and home indicators */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--pure-black);
  color: var(--ashen-grey);
  line-height: 1.7;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Salvaguarda global: ninguna imagen se desborda de su contenedor en ningún
   dispositivo (PC, tablet, celular). Los componentes con alta/relación fija
   usan object-fit para no deformarse. */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: 'Cinzel Decorative', cursive;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--halloween-vivid);
  text-transform: uppercase;
}
