/* ==========================================================================
   Talleres Juma — reset.css
   Reset base + variables de marca (única fuente de verdad de color/tipo)
   ========================================================================== */

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

:root {
  /* -- Color: tomado directo del logo (azul noche, blanco, rojo carmesí) -- */
  --navy-deep:    #060c2b;
  --navy:         #0d1a52;
  --navy-mid:     #16297a;
  --blue:         #2247c9;
  --blue-bright:  #3b63ec;
  --red:          #d1121f;
  --red-bright:   #ef2430;
  --white:        #ffffff;
  --ice:          #eef1fb;
  --steel:        #8b96c2;
  --steel-dim:    #4a5590;

  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-hi: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.12);
  --border-hi: rgba(255, 255, 255, 0.24);
  --border-red: rgba(209, 18, 31, 0.5);

  /* -- Tipografía -- */
  --font-display: 'Oswald', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* -- Ritmo -- */
  --container-w: 1180px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* -- Movimiento -- */
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
  --dur-fast: 0.28s;

  /* -- Sombra y luz: sombras compuestas en varias capas para dar
        sensación real de profundidad, no un único blur plano -- */
  --shadow-soft: 0 8px 20px -10px rgba(3, 6, 20, 0.55);
  --shadow-lift: 0 20px 40px -18px rgba(6, 12, 43, 0.7);
  --shadow-deep:
    0 2px 3px rgba(3, 6, 20, 0.4),
    0 16px 30px -12px rgba(3, 6, 20, 0.55),
    0 40px 70px -30px rgba(3, 6, 20, 0.75);
  --glow-red: 0 0 0 1px rgba(209,18,31,0.35), 0 12px 30px -10px rgba(209,18,31,0.45);
  --glow-red-lg: 0 0 0 1px rgba(239,36,48,0.4), 0 18px 46px -12px rgba(239,36,48,0.55);
  --glow-blue-soft: 0 0 60px -16px rgba(59, 99, 236, 0.45);
  --ring-focus: 0 0 0 1px var(--navy-deep), 0 0 0 4px rgba(239,36,48,0.45);

  /* -- Textura: ruido sutil en SVG, reutilizable sobre fondos oscuros -- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--blue) var(--navy-deep);
  scrollbar-width: thin;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy-deep);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--white);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

p { margin: 0; }

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

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

svg { display: block; }

::selection {
  background: var(--red);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--navy-deep);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

code {
  font-family: var(--font-mono);
  background: var(--surface-strong);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

/* ---------- Scrollbar de marca (WebKit) ---------- */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--navy-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue), var(--red));
  border-radius: 10px;
  border: 2px solid var(--navy-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--blue-bright), var(--red-bright));
}
