/* =========================================================================
   Estilos del Comité Estamos Unidos.

   Reemplaza a cdn.tailwindcss.com, que no era una hoja de estilos sino un
   compilador que se descargaba al teléfono y armaba el CSS ahí mismo. Mientras
   eso pasaba, la página se veía cruda: el logo a tamaño real y el texto sin
   formato.

   Esto es CSS ya compilado. Contiene exactamente las clases que usan
   index.html y admin.html, nada más. Si agregas una clase de Tailwind nueva
   en el HTML, hay que agregarla también aquí.
   ========================================================================= */

/* --- Base (equivalente al preflight de Tailwind) ------------------------ */

*, ::before, ::after { box-sizing: border-box; border: 0 solid #e5e7eb; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  line-height: 1.5;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background-color: #F3F4F6;
}

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

/* Esta regla es la que impide que una imagen se dispare a su tamaño real. */
img, svg { display: block; vertical-align: middle; max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background-color: transparent; background-image: none; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: inherit; }

/* --- Colores del comité ------------------------------------------------- */

:root {
  --comite-blue: #0A2540;
  --comite-green: #285A43;
  --comite-gray: #878A8D;
  --comite-light-bg: #F3F4F6;
}

/* --- Utilidades propias ------------------------------------------------- */

.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Display y layout --------------------------------------------------- */

.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: .5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* --- Posición ----------------------------------------------------------- */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.bottom-0 { bottom: 0; }
.left-2 { left: .5rem; }
.left-1\/2 { left: 50%; }
.-right-6 { right: -1.5rem; }
.-top-6 { top: -1.5rem; }

.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }
.z-\[100\] { z-index: 100; }

/* --- Tamaños ------------------------------------------------------------ */

.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }

.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-full { width: 100%; }
.w-1\/3 { width: 33.333333%; }
.w-2\/3 { width: 66.666667%; }
.w-\[90\%\] { width: 90%; }

.min-w-0 { min-width: 0; }
.max-w-full { max-width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-h-\[90vh\] { max-height: 90vh; }

/* --- Márgenes y padding ------------------------------------------------- */

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.ml-1 { margin-left: .25rem; }
.ml-auto { margin-left: auto; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.p-0 { padding: 0; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.pt-1 { padding-top: .25rem; }
.pt-2 { padding-top: .5rem; }
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-24 { padding-bottom: 6rem; }

/* --- Tipografía --------------------------------------------------------- */

.text-\[10px\] { font-size: 10px; line-height: 1.4; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-9xl { font-size: 8rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.leading-tight { line-height: 1.25; }
.tracking-wide { letter-spacing: .025em; }
.tracking-wider { letter-spacing: .05em; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.whitespace-pre-line { white-space: pre-line; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Colores de texto --------------------------------------------------- */

.text-white { color: #fff; }
.text-white\/10 { color: rgba(255, 255, 255, .1); }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-blue-100 { color: #dbeafe; }
.text-blue-200 { color: #bfdbfe; }
.text-blue-600 { color: #2563eb; }
.text-green-100 { color: #dcfce7; }
.text-green-600 { color: #16a34a; }
.text-red-100 { color: #fee2e2; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-yellow-600 { color: #ca8a04; }
.text-purple-600 { color: #9333ea; }
.text-comite-blue { color: var(--comite-blue); }
.text-comite-green { color: var(--comite-green); }

/* --- Fondos ------------------------------------------------------------- */

.bg-white { background-color: #fff; }
.bg-white\/20 { background-color: rgba(255, 255, 255, .2); }
.bg-black\/60 { background-color: rgba(0, 0, 0, .6); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-50\/50 { background-color: rgba(239, 246, 255, .5); }
.bg-blue-100 { background-color: #dbeafe; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-600 { background-color: #16a34a; }
.bg-green-700 { background-color: #15803d; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-600 { background-color: #dc2626; }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-comite-blue { background-color: var(--comite-blue); }
.bg-comite-light-bg { background-color: var(--comite-light-bg); }

/* --- Bordes ------------------------------------------------------------- */

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

.border-gray-50 { border-color: #f9fafb; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-100 { border-color: #dbeafe; }
.border-red-500 { border-color: #ef4444; }
.border-comite-blue { border-color: var(--comite-blue); }

.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-2xl { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }

/* --- Sombras ------------------------------------------------------------ */

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); }

/* --- Overflow, opacidad, varios ----------------------------------------- */

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }
.object-cover { object-fit: cover; }
.box-border { box-sizing: border-box; }
.resize-none { resize: none; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.pointer-events-none { pointer-events: none; }

.opacity-0 { opacity: 0; }
.opacity-90 { opacity: .9; }
.opacity-100 { opacity: 1; }

/* --- Transiciones y transformaciones ------------------------------------ */

.transition {
  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: 150ms;
}
.duration-300 { transition-duration: 300ms; }

.transform,
.-translate-x-1\/2,
.-translate-y-12,
.translate-y-0,
.active\:scale-95 {
  transform: translate(var(--tw-tx, 0), var(--tw-ty, 0)) scale(var(--tw-sc, 1));
}
.-translate-x-1\/2 { --tw-tx: -50%; }
.-translate-y-12 { --tw-ty: -3rem; }
.translate-y-0 { --tw-ty: 0px; }
.active\:scale-95:active { --tw-sc: .95; }

/* --- Estados ------------------------------------------------------------ */

.hover\:bg-blue-900:hover { background-color: #1e3a8a; }
.hover\:text-comite-blue:hover { color: var(--comite-blue); }
.focus\:border-comite-blue:focus { border-color: var(--comite-blue); }

/* Un foco visible, que Tailwind por defecto no da con outline-none. */
.outline-none:focus-visible { outline: 2px solid var(--comite-blue); outline-offset: 1px; }

/* --- Pantallas medianas en adelante (≥640px) ---------------------------- */

@media (min-width: 640px) {
  .sm\:items-center { align-items: center; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:rounded-2xl { border-radius: 1rem; }
}

/* --- Preferencia de movimiento reducido --------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
