/* ═══════════════════════════════════════════════════════════════════════════
   PARAMITA · FUNDACIÓN SAKYA
   paramita-reset.css — Normalización de navegadores
   ───────────────────────────────────────────────────────────────────────────
   Base neutra sobre la que se aplican las decisiones del sistema.
   Este archivo NO impone estética — solo corrige inconsistencias entre
   navegadores.

   Basado en modern-normalize v3 con las adiciones específicas para el
   contexto de Paramita (font-inherit en form controls, media responsive
   por defecto, focus-visible ready).

   ORDEN DE CARGA
   ──────────────
   Este archivo se carga PRIMERO, antes de cualquier token o componente.
   El @layer reset lo hace ganar contra cualquier otra capa aunque cambie
   el orden de <link>.

   REGLA
   ─────
   Este archivo casi nunca cambia. Cualquier decisión estética o de
   proyecto va en paramita-base.css, no aquí.
   ═══════════════════════════════════════════════════════════════════════════ */

@layer reset {

  /* ─────────────────────────────────────────────────────────────────────
     1 · MODELO DE CAJA UNIVERSAL
     El width incluye padding y border. Decisión unánime desde hace 15 años
     que los navegadores siguen sin adoptar por defecto.
     ───────────────────────────────────────────────────────────────────── */

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


  /* ─────────────────────────────────────────────────────────────────────
     2 · HTML — RAÍZ DEL DOCUMENTO
     text-size-adjust evita que iOS/Android aumenten el texto al rotar.
     tab-size normaliza el ancho del carácter tab entre navegadores.
     ───────────────────────────────────────────────────────────────────── */

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.15;
  }


  /* ─────────────────────────────────────────────────────────────────────
     3 · BODY — MARGEN CERO
     Los navegadores aplican margin: 8px por defecto. Prácticamente ningún
     diseño lo quiere. paramita-base.css define el margen si lo necesita.
     ───────────────────────────────────────────────────────────────────── */

  body {
    margin: 0;
  }


  /* ─────────────────────────────────────────────────────────────────────
     4 · HERENCIA DE FUENTES EN FORM CONTROLS
     button, input, textarea, select NO heredan la tipografía del padre por
     defecto — cada navegador impone su fuente del sistema. Corregirlo aquí
     evita que cada componente de formulario repita la declaración.
     ───────────────────────────────────────────────────────────────────── */

  button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
  }


  /* ─────────────────────────────────────────────────────────────────────
     5 · ELEMENTOS DE BLOQUE COMUNES
     ───────────────────────────────────────────────────────────────────── */

  hr {
    height: 0;
    color: inherit;
  }

  figure {
    margin: 0;
  }

  main {
    display: block;
  }


  /* ─────────────────────────────────────────────────────────────────────
     6 · ENLACES — FONDO TRANSPARENTE
     IE aún ponía background implícito en enlaces. Se declara para
     comportamiento consistente. Colores y decoraciones van en base.
     ───────────────────────────────────────────────────────────────────── */

  a {
    background-color: transparent;
  }


  /* ─────────────────────────────────────────────────────────────────────
     7 · TEXTO SEMÁNTICO — CORRECCIONES
     ───────────────────────────────────────────────────────────────────── */

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono',
                 Menlo, monospace;
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub { bottom: -0.25em; }
  sup { top: -0.5em; }


  /* ─────────────────────────────────────────────────────────────────────
     8 · TABLAS
     ───────────────────────────────────────────────────────────────────── */

  table {
    border-collapse: collapse;
    border-color: currentColor;
    text-indent: 0;
  }


  /* ─────────────────────────────────────────────────────────────────────
     9 · FORMULARIOS — RESET COMPLETO
     ───────────────────────────────────────────────────────────────────── */

  button, [type='button'], [type='reset'], [type='submit'] {
    -webkit-appearance: button;
    cursor: pointer;
  }

  ::-moz-focus-inner {
    border-style: none;
    padding: 0;
  }
  :-moz-focusring {
    outline: 1px dotted ButtonText;
  }

  legend {
    padding: 0;
  }

  progress {
    vertical-align: baseline;
  }

  ::-webkit-inner-spin-button,
  ::-webkit-outer-spin-button {
    height: auto;
  }

  [type='search'] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
  }

  textarea {
    overflow: auto;
    resize: vertical;
  }


  /* ─────────────────────────────────────────────────────────────────────
     10 · ELEMENTOS INTERACTIVOS DE HTML5
     ───────────────────────────────────────────────────────────────────── */

  summary {
    display: list-item;
    cursor: pointer;
  }


  /* ─────────────────────────────────────────────────────────────────────
     11 · MEDIA — RESPONSIVE POR DEFECTO
     El comportamiento por defecto (imagen fluida sin desbordar) es lo que
     todos los sitios modernos hacen manualmente. Global evita repetición.
     ───────────────────────────────────────────────────────────────────── */

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


  /* ─────────────────────────────────────────────────────────────────────
     12 · LISTAS SIN SEMÁNTICA
     Las listas con role="list" (menús, tarjetas) quedan sin bullets.
     Safari elimina el rol semántico con list-style:none; el role="list"
     lo restaura para lectores de pantalla.
     ───────────────────────────────────────────────────────────────────── */

  ul[role='list'], ol[role='list'] {
    list-style: none;
    padding: 0;
    margin: 0;
  }


  /* ─────────────────────────────────────────────────────────────────────
     13 · ATRIBUTOS OCULTOS
     ───────────────────────────────────────────────────────────────────── */

  [hidden] {
    display: none;
  }

}

/* ═══════════════════════════════════════════════════════════════════════════
   FIN de paramita-reset.css
   ═══════════════════════════════════════════════════════════════════════════ */
