/* ════════ css/reset.css ════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ════ JERARQUÍA TIPOGRÁFICA GLOBAL ════ */
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  color: var(--text);
  margin: 0;
}
h1, h2 { font-family: var(--font-title1); }
h3 { font-family: var(--font-title2); }
h4, h5, h6 { font-family: var(--font-title3); }

/* Grano sutil para textura editorial */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

#app { position: relative; z-index: 2; }

/* ════ RESET DE ENLACES GLOBALES ════ */
a {
  color: inherit;
  text-decoration: none;
}
/* Estilo para links dentro de párrafos y listas (ej. correos y privacidad) */
p a, li a, .privacy-section a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
p a:hover, li a:hover, .privacy-section a:hover {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-deep);
}

/* Focus visible para accesibilidad */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}