/* ============================================================================
   RESET MÍNIMO — Silvanus base
   Inspirado en modern-css-reset + Andy Bell, adaptado a la línea Silvanus
   Cargar ANTES de tokens.css
   ============================================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100vh;
  min-height: 100svh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

ul, ol {
  list-style: none;
}

/* Cuando hay focus visible solo con teclado, mostrar outline accesible */
:focus-visible {
  outline: 2px solid var(--color-accent, #CC1822);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* Selection coherente con la marca */
::selection {
  background-color: var(--color-red-beto, #CC1822);
  color: var(--color-cream, #FAF5EC);
}

/* Anti-Grammarly preventivo: ocultar SOLO los custom elements que Grammarly
   inyecta, NUNCA atacar [data-gramm*] porque el body lleva esos atributos
   intencionalmente para desactivar la extensión. */
grammarly-extension,
grammarly-desktop-integration,
grammarly-popups,
grammarly-mirror,
grammarly-card,
[data-grammarly-shadow-root="true"] { display: none !important; }
