/* ══════════════════════════════════════════════════════════════
   base.css — Reemplaza a cdn.tailwindcss.com (2026-10-29).

   El portal usaba Tailwind por CDN solo por dos cosas: su reset
   (preflight) y 27 utilidades sueltas. Las dos están aquí escritas a
   mano, así que ya no depende de una CDN externa para maquetar y no
   hace falta ningún paso de compilación.

   Orden: este archivo va ANTES de portal-layout.css, que manda sobre él.

   ⚠️ Si agregas una clase de Tailwind nueva en el HTML, defínela aquí:
   no hay nada que la genere sola. Lista de lo usado hoy, al final.
   ══════════════════════════════════════════════════════════════ */

/* ── Reset (subconjunto del preflight de Tailwind v3) ─────────────
   Sin esto el <body> recupera su margen de 8px, los botones vuelven
   a tener el borde del navegador y los <h1>/<p> sus márgenes. */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

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

body {
  margin: 0;
  line-height: inherit;
}

hr { height: 0; color: inherit; border-top-width: 1px; }

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }

p, figure, blockquote, dl, dd, pre { margin: 0; }

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

b, strong { font-weight: bolder; }

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

small { font-size: 80%; }

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

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

button, select { text-transform: none; }

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}

:-moz-focusring { outline: auto; }

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; }

summary { display: list-item; }

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

textarea { resize: vertical; }

input::placeholder,
textarea::placeholder { opacity: 1; color: #9ca3af; }

img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }

img, video { max-width: 100%; height: auto; }

[hidden] { display: none; }

fieldset { margin: 0; padding: 0; }
legend { padding: 0; }

/* ── Utilidades usadas por el portal ──────────────────────────────
   Las 27 que aparecen hoy en el HTML y en el JS. Mismos valores que
   Tailwind v3 (1 unidad = 0.25rem). */

/* Disposición */
.flex             { display: flex; }
.grid             { display: grid; }
.hidden           { display: none; }
.fixed            { position: fixed; }
.inset-0          { inset: 0; }
.flex-1           { flex: 1 1 0%; }
.items-center     { align-items: center; }
.items-start      { align-items: flex-start; }
.justify-center   { justify-content: center; }
.gap-4            { gap: 1rem; }
.grid-cols-1      { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Tamaño */
.w-full           { width: 100%; }
.min-h-screen     { min-height: 100vh; }

/* Espaciado */
.p-4              { padding: 1rem; }
.p-6              { padding: 1.5rem; }
.mb-4             { margin-bottom: 1rem; }
.mb-6             { margin-bottom: 1.5rem; }
.mx-auto          { margin-left: auto; margin-right: auto; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* Otros */
.text-center      { text-align: center; }
.overflow-hidden  { overflow: hidden; }

/* Variantes por ancho (los mismos cortes de Tailwind) */
@media (min-width: 640px) {
  .sm\:p-8 { padding: 2rem; }
}
@media (min-width: 768px) {
  .md\:p-6 { padding: 1.5rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2  { grid-column: span 2 / span 2; }
  .lg\:col-span-3  { grid-column: span 3 / span 3; }
}
