/* =====================================================================
   Estilos locales: el sistema funciona aunque se corte internet en el local.
   (Mismas clases tipo Tailwind que usa index.html, escritas a mano.)
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; border: 0 solid #E7E5E4; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.5; }
h1, h2, h3, h4, p { margin: 0; font-size: inherit; font-weight: inherit; }
button, input, select { font: inherit; color: inherit; margin: 0; }
button { background: none; cursor: pointer; padding: 0; }
table { border-collapse: collapse; }
img, svg { display: block; max-width: 100%; }
hr { border-top: 1px dashed #000; margin: 4px 0; }
input[type=checkbox], input[type=radio] { accent-color: #EA580C; width: 1rem; height: 1rem; flex-shrink: 0; margin-top: .2rem; }

/* Layout */
.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.gap-x-3 { column-gap: .75rem; } .gap-y-1\.5 { row-gap: .375rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.divide-y > * + * { border-top-width: 1px; }
.divide-stone-100 > * + * { border-color: #F5F5F4; }

/* Posición */
.fixed { position: fixed; } .sticky { position: sticky; }
.inset-0 { inset: 0; } .top-0 { top: 0; } .bottom-4 { bottom: 1rem; } .left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.z-30 { z-index: 30; } .z-50 { z-index: 50; } .z-\[60\] { z-index: 60; }

/* Tamaños */
.w-full { width: 100%; } .h-full { height: 100%; } .min-h-screen { min-height: 100vh; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; } .w-14 { width: 3.5rem; } .h-14 { height: 3.5rem; }
.w-16 { width: 4rem; } .w-20 { width: 5rem; } .w-28 { width: 7rem; } .w-32 { width: 8rem; } .h-5 { height: 1.25rem; }
.min-w-0 { min-width: 0; } .min-w-\[200px\] { min-width: 200px; }
.max-w-sm { max-width: 24rem; } .max-w-md { max-width: 28rem; } .max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; } .max-w-2xl { max-width: 42rem; }
.max-w-\[1500px\] { max-width: 1500px; } .max-w-\[220px\] { max-width: 220px; }
.max-h-64 { max-height: 16rem; } .max-h-72 { max-height: 18rem; } .max-h-80 { max-height: 20rem; } .max-h-96 { max-height: 24rem; }
.overflow-auto { overflow: auto; } .overflow-hidden { overflow: hidden; }

/* Espaciado */
.p-3 { padding: .75rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.px-1 { padding-left: .25rem; padding-right: .25rem; } .px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-2\.5 { padding-left: .625rem; padding-right: .625rem; } .px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; } .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-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-1 { padding-top: .25rem; } .pt-2 { padding-top: .5rem; } .pb-2 { padding-bottom: .5rem; }
.mx-auto { margin-left: auto; margin-right: auto; } .my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.ml-1 { margin-left: .25rem; } .ml-auto { margin-left: auto; } .mr-2 { margin-right: .5rem; } .mr-auto { margin-right: auto; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .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; }

/* Texto */
.text-xs { font-size: .75rem; line-height: 1rem; } .text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; } .text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; } .text-4xl { font-size: 2.25rem; line-height: 2.5rem; } .text-5xl { font-size: 3rem; line-height: 1; }
.text-\[11px\] { font-size: 11px; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.text-left { text-align: left; } .text-center { text-align: center; } .text-right { text-align: right; }
.leading-none { line-height: 1; } .leading-relaxed { line-height: 1.6; }
.tracking-\[\.5em\] { letter-spacing: .5em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.underline { text-decoration: underline; } .no-underline { text-decoration: none; } .line-through { text-decoration: line-through; }
.opacity-50 { opacity: .5; } .opacity-60 { opacity: .6; }
.cursor-pointer { cursor: pointer; }

/* Colores de texto */
.text-white { color: #fff; } .text-black { color: #000; }
.text-stone-300 { color: #D6D3D1; } .text-stone-400 { color: #A8A29E; } .text-stone-500 { color: #78716C; } .text-stone-600 { color: #57534E; }
.text-orange-300 { color: #FDBA74; } .text-orange-600 { color: #EA580C; }
.text-green-700 { color: #15803D; } .text-green-800 { color: #166534; }
.text-red-600 { color: #DC2626; } .text-red-700 { color: #B91C1C; } .text-red-800 { color: #991B1B; }
.text-amber-700 { color: #B45309; } .text-amber-800 { color: #92400E; }
.text-blue-700 { color: #1D4ED8; }

/* Fondos */
.bg-black\/50 { background: rgba(0, 0, 0, .5); }
.bg-stone-50 { background: #FAFAF9; } .bg-stone-100 { background: #F5F5F4; } .bg-stone-500 { background: #78716C; }
.bg-stone-700 { background: #44403C; } .bg-stone-900 { background: #1C1917; }
.bg-orange-50 { background: #FFF7ED; } .bg-orange-500 { background: #F97316; } .bg-orange-600 { background: #EA580C; }
.bg-green-100 { background: #DCFCE7; } .bg-green-600 { background: #16A34A; }
.bg-red-50 { background: #FEF2F2; } .bg-red-100 { background: #FEE2E2; } .bg-red-500 { background: #EF4444; } .bg-red-600 { background: #DC2626; }
.bg-amber-50 { background: #FFFBEB; } .bg-amber-100 { background: #FEF3C7; } .bg-amber-400 { background: #FBBF24; } .bg-amber-500 { background: #F59E0B; }

/* Bordes y sombras */
.border { border-width: 1px; } .border-t { border-top-width: 1px; }
.border-stone-200 { border-color: #E7E5E4; } .border-red-300 { border-color: #FCA5A5; } .border-amber-300 { border-color: #FCD34D; }
.rounded { border-radius: .25rem; } .rounded-lg { border-radius: .5rem; } .rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; } .rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px 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); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }

/* Hover */
.hover\:bg-orange-50:hover { background: #FFF7ED; }
.hover\:text-white:hover { color: #fff; } .hover\:text-black:hover { color: #000; }
.hover\:text-red-600:hover { color: #DC2626; } .hover\:underline:hover { text-decoration: underline; }

/* Pantallas medianas y grandes */
@media (min-width: 768px) {
  .md\:p-5 { padding: 1.25rem; }
  .md\:items-center { align-items: center; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@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; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* Colores de la marca */
.bg-naranja { background: #E8772E; } .bg-azul { background: #2A688D; } .text-naranja { color: #C9601D; }
.hover\:bg-orange-50:hover { background: #FDF1E8; }
