/* Definir fuente Inter localmente */
@font-face {
  font-family: 'Inter';
  src: url('https://app.dmaderahabana.store/src/fonts/Inter-Regular.woff2') format('woff2'),
       url('https://app.dmaderahabana.store/src/fonts/Inter-Regular.woff') format('woff'),
       url('https://app.dmaderahabana.store/src/fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('https://app.dmaderahabana.store/src/fonts/Inter-Medium.woff2') format('woff2'),
       url('https://app.dmaderahabana.store/src/fonts/Inter-Medium.woff') format('woff'),
       url('https://app.dmaderahabana.store/src/fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('https://app.dmaderahabana.store/src/fonts/Inter-Bold.woff2') format('woff2'),
       url('https://app.dmaderahabana.store/src/fonts/Inter-Bold.woff') format('woff'),
       url('https://app.dmaderahabana.store/src/fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('https://app.dmaderahabana.store/src/fonts/Inter-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('https://app.dmaderahabana.store/src/fonts/Inter-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('https://app.dmaderahabana.store/src/fonts/InterVariable.woff2') format('woff2'),
       url('https://app.dmaderahabana.store/src/fonts/InterVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('https://app.dmaderahabana.store/src/fonts/InterVariable-Italic.woff2') format('woff2'),
       url('https://app.dmaderahabana.store/src/fonts/InterVariable-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/*HEADER*/
/* Ocultar nav en pantallas peque�as */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu {
        display: flex;
    }
}

/* Mostrar en pantallas grandes */
@media (min-width: 769px) {
    .main-nav {
        display: flex;
    }
    .mobile-menu {
        display: none;
    }
}

/* Men� m�vil desplegable */
.mobile-menu-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 40;
    max-height: 70vh;
    overflow-y: auto;
}

/*HEADER*/


/* Reseteo b�sico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  color: #111827;
  background-color: #f6f7f8;
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  body {
    color: #ffffff;
    background-color: #101922;
  }
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Encabezados */
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.875rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
.text-lg { font-size: 1.125rem; font-weight: 700; }
.text-base { font-size: 1rem; }
.text-xl { font-size: 1.25rem; font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* Colores */
.text-primary { color: #1173d4; }
.text-primary-80 { color: rgba(17, 115, 212, 0.8); }
.text-background-dark { color: #111827; }
.text-background-dark-80 { color: rgba(17, 39, 55, 0.8); }
.text-background-dark-60 { color: rgba(17, 39, 55, 0.6); }
.text-background-light { color: #ffffff; }
.text-background-light-80 { color: rgba(255, 255, 255, 0.8); }
.text-background-light-60 { color: rgba(255, 255, 255, 0.6); }
.text-gray-900 { color: #111827; }
.text-gray-800 { color: #1f2937; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-gray-200 { color: #e5e7eb; }
.text-green-700 { color: #15803d; }
.text-red-600 { color: #dc2626; }
.bg-primary { background-color: #1173d4; }
.bg-primary-90 { background-color: #0f65b8; }
.bg-background-light { background-color: #f6f7f8; }
.bg-background-dark { background-color: #101922; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-red-100 { background-color: #fee2e2; }
.bg-green-100 { background-color: #dcfce7; }
.border-background-light-dark-10 { border-color: rgba(17, 39, 55, 0.1); }
.border-background-dark-light-10 { border-color: rgba(255, 255, 255, 0.1); }
.border-background-light-dark-20 { border-color: rgba(17, 39, 55, 0.2); }
.border-background-dark-light-20 { border-color: rgba(255, 255, 255, 0.2); }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-600 { border-color: #4b5563; }
.border-gray-700 { border-color: #374151; }
.border-gray-700-50 { border-color: rgba(55, 65, 81, 0.5); }
.border-transparent { border-color: transparent; }
.ring-background-dark-20 { box-shadow: 0 0 0 1px rgba(17, 39, 55, 0.2); }
.ring-background-light-20 { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.focus-ring-primary { box-shadow: 0 0 0 2px rgba(17, 115, 212, 0.2); }

/* Modo oscuro - Colores */
@media (prefers-color-scheme: dark) {
  .text-gray-900 { color: #ffffff; }
  .text-gray-800 { color: #d1d5db; }
  .text-gray-700 { color: #d1d5db; }
  .text-gray-600 { color: #9ca3af; }
  .text-gray-500 { color: #9ca3af; }
  .text-gray-400 { color: #d1d5db; }
  .text-gray-200 { color: #9ca3af; }
  
  .text-background-light { color: #111827; }
  .text-background-light-80 { color: rgba(17, 39, 55, 0.8); }
  .text-background-light-60 { color: rgba(17, 39, 55, 0.6); }
  
  
  .text-background-dark { color: #ffffff; }
  .text-background-dark-80 { color: rgba(255, 255, 255, 0.8); }
  .text-background-dark-60 { color: rgba(255, 255, 255, 0.6); }
  
  .bg-background-light { background-color: #101922; }
  .bg-gray-100 { background-color: #374151; }
  .bg-gray-200 { background-color: #4b5563; }
  .bg-white { background-color: #1f2937; }
  .bg-gray-800 { background-color: #1f2937; }
  .border-gray-200 { border-color: #4b5563; }
  .border-gray-300 { border-color: #4b5563; }
  .border-gray-600 { border-color: #374151; }
  .bg-primary-10 { background-color: rgba(17, 115, 212, 0.2); }
  .bg-primary-20 { background-color: rgba(17, 115, 212, 0.3); }
}

.aling-rigth-custom {text-align: right;}
.aling-left-custom {text-align: left;}
.aling-center-custom {text-align: center;}

/* Espaciado */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16{ padding-top: 4rem; padding-bottom: 4rem; }
.pt-4 { padding-top: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

/* Flexbox y Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:justify-end { justify-content: flex-end; }
  .sm\:w-auto { width: auto; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:col-span-2 { grid-column: span 2; }  
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}
.min-h-screen { min-height: 100vh; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 896px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.overflow-y-auto { overflow-y: auto; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.h-16 { height: 4rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.w-10 { width: 2.5rem; }
.relative { position: relative; }
.block { display: block; }
.hidden { display: none; }
.opacity-50 { opacity: 0.5; }


/* Formularios */
.form-group { margin-bottom: 1rem; }
.form-control {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #111827;
  height: 2.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: all 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: #1173d4;
  box-shadow: 0 0 0 2px rgba(17, 115, 212, 0.2);
}
.form-control.is-invalid {
  border-color: #dc2626;
}
.form-control:disabled {
  background-color: #f3f4f6;
  color: #6b7280;
}
.form-control::placeholder {
  color: rgba(17, 39, 55, 0.5);
}
@media (prefers-color-scheme: dark) {
  .form-control {
    background-color: #1f2937;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
  }
  .form-control.is-invalid {
    border-color: #f87171;
  }
  .form-control:disabled {
    background-color: #374151;
    color: #9ca3af;
  }
  .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
}
select.form-control {
  padding-right: 2.5rem;
  height: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em;
}
textarea.form-control {
  resize: vertical;
  height: auto;
}

/* Estilo para input file y vista previa */
.form-file { display: none; }
.profile-picture-container {
  position: relative;
  width: 8rem;
  height: 8rem;
  border-radius: 9999px;
  background-color: rgba(17, 39, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-picture-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}
@media (max-width: 640px) {
  .profile-picture-container {
    width: 6rem;
    height: 6rem;
  }
  .profile-picture-container svg {
    width: 3rem;
    height: 3rem;
  }
}
.profile-picture-button {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  background-color: #1173d4;
  color: #ffffff;
  border-radius: 9999px;
  padding: 0.50rem 1rem;
  transition: all 0.2s;
}
.profile-picture-button:hover {
  background-color: #0f65b8;
}
@media (prefers-color-scheme: dark) {
  .profile-picture-container {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Botones */
.btn {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background-color: #1173d4;
  color: #ffffff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background-color: #0f65b8;
}
.btn-secondary {
  background-color: #e5e7eb;
  color: #111827;
  border: 1px solid rgba(17, 39, 55, 0.2);
}
.btn-secondary:hover {
  background-color: rgba(229, 231, 235, 0.8);
}
.btn-form-cancel {
  background-color: #e5e7eb;
  color: #374151;
  border: 1px solid #d1d5db;
}
.btn-form-cancel:hover {
  background-color: #d1d5db;
}
.btn-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 10rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-form-primary {
  background-color: #1173d4;
  color: #ffffff;
  border: 1px solid transparent;
}
.btn-form-primary:hover {
  background-color: #0f65b8;
}
@media (min-width: 640px) {
  .btn-form {
    width: auto;
  }
}
@media (prefers-color-scheme: dark) {
  .btn-secondary {
    background-color: #374151;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .btn-secondary:hover {
    background-color: rgba(55, 65, 81, 0.8);
  }
  .btn-form-cancel {
    background-color: #4b5563;
    color: #d1d5db;
    border: 1px solid #4b5563;
  }
  .btn-form-cancel:hover {
    background-color: #6b7280;
  }
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rounded-full { border-radius: 9999px; }

.btn-warning {
    @apply bg-amber-500 text-white hover:bg-amber-600 focus:ring-amber-500;
}
.btn-warning.btn-sm {
    @apply px-2 py-1 text-xs;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}
.btn-danger {
    background-color: #ef4444;
    color: white;
}
.btn-danger:hover {
    background-color: #dc2626;
}



/* Alertas */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.alert-error {
  background-color: #fee2e2;
  color: #dc2626;
}
.alert-error ul {
  list-style: disc;
  margin-left: 1.25rem;
}
.alert-success {
  background-color: #dcfce7;
  color: #15803d;
}

/* Encabezado */
header {
  border-bottom: 1px solid #e5e7eb;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2.5rem;
  border-bottom: 1px solid #e5e7eb;
}
@media (prefers-color-scheme: dark) {
  header, .header {
    border-bottom-color: #4b5563;
  }
}
.nav-link {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
}
.nav-link:hover {
  color: #111827;
}
.nav-link.active {
  color: #1173d4;
  background-color: rgba(17, 115, 212, 0.1);
}
@media (prefers-color-scheme: dark) {
  .nav-link {
    color: #9ca3af;
  }
  .nav-link:hover {
    color: #ffffff;
  }
  .nav-link.active {
    color: #1173d4;
    background-color: rgba(17, 115, 212, 0.3);
  }
}
.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  color: #6b7280;
}
.icon-button:hover {
  background-color: #e5e7eb;
}
@media (prefers-color-scheme: dark) {
  .icon-button {
    background-color: #374151;
    color: #9ca3af;
  }
  .icon-button:hover {
    background-color: #4b5563;
  }
}

/* PESTA�AS */
.tab-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    background-color: #ffffff;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.tab-button:hover {
    color: #1173d4;
    border-bottom-color: #1173d4;
}
.tab-button.active {
    color: #1173d4;
    border-bottom-color: #1173d4;
    font-weight: 700;
}
.tab-content {
    margin-top: 1.5rem;
}

/* SUB PESTA�AS 0*/
.tab0-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    background-color: #ffffff;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.tab0-button:hover {
    color: #1173d4;
    border-bottom-color: #1173d4;
}
.tab0-button.active {
    color: #1173d4;
    border-bottom-color: #1173d4;
    font-weight: 700;
}
.tab0-content {
    margin-top: 1.5rem;
}

/* Tablas */
.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  overflow: hidden;
}
.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb; /* border-gray-200 */
}
.table th {
  background-color: #fafafa;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #111827; /* text-gray-900 */
}
.table td {
  background-color: #ffffff;
  font-size: 0.875rem;
  color: #374151;
}
.table tr:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}
@media (prefers-color-scheme: dark) {
  .table {
    border-color: #a7b0bd;
  }
  .table th {
    background-color: #9aacc785;
	font-weight: 700;
    color: #111827; /* text-gray-900 */
  }
  .table td {
    background-color: #101922;
	font-weight: 700;
    color: #e9e0e0;
  }
  .table tr:not(:last-child) {
    border-bottom: 1px solid #4b5563;
  }
}

.table td {
    color: #374151; /* text-gray-700 */
}

.table th.w-12, .table td.w-12 {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
}

th { background-color: #1173d4; color: white; }
tr:nth-child(even) { background-color: #f8f9fa; }




/* Subida de archivos */
.file-upload {
  padding: 2.5rem 1.5rem;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  .file-upload {
    border-color: #4b5563;
  }
}

/* iconos SVG */
.icon { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.icon-large { width: 2.5rem; height: 2.5rem; }

/* Errores y utilidades */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.border { border-width: 1px; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.error-message { display: block; margin-top: 0.25rem; }
.transition-colors { transition: color 0.2s, background-color 0.2s; }
.tracking-tight { letter-spacing: -0.025em; }
.text-center { text-align: center; }
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

.filter-container { margin-bottom: 1.5rem; }

/* Estilos para widgets */
.card {
  padding: 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.card-content {
    pointer-events: auto;
}

.card-content a {
    pointer-events: auto;
    text-decoration: none;
    color: inherit;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: #1173d4;
}
.draggable {
  cursor: move;
  user-select: none;
  position: relative;
}
.draggable.dragging {
  opacity: 0.5;
  transform: scale(0.98);
  z-index: 10;
}
.card-icon {
  padding: 0.5rem;
  border-radius: 0.25rem;
  background-color: rgba(17, 115, 212, 0.1);
}
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #111827; /* text-gray-900 */
    text-align: center;
}
/* Asegurar que el grid no interfiera */
#widgets-grid {
    position: relative;
}



@media (prefers-color-scheme: dark) {

	.card {
		padding: 0.5rem;
		border-radius: 0.5rem;		
	}
	
	.card-title {
		font-size: 1rem;
		font-weight: 700;
		color: #9ca3af; /* #111827; text-gray-900 */
						/* .text-gray-900 { color: #ffffff; } */
		text-align: center;
	}

}

@media (min-width: 640px) {
	
}
/* Ocultar nav en pantallas peque�as */
@media (max-width: 768px) {
   
}
/* Mostrar en pantallas grandes */
@media (min-width: 769px) {
   
}
@media (min-width: 1024px) {
/*	.toast.success { background-color: #f0fdf4; } */
}


/* Estilos para miniaturas en la tabla */
.thumbnail-container {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6; /* bg-gray-100 */
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 32px;
    max-height: 32px;
}

.thumbnail-placeholder {
    width: 24px;
    height: 24px;
    color: #6b7280; /* text-gray-500 */
}


/* Modal para formularios */
/* Modal para formularios */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Aumentado para asegurar que est� encima de todo */
}

.modal.hidden {
    display: none !important; /* Forzar ocultamiento */
}

.modal-content {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    width: 100%;
    max-width: 28rem; /* Ajustado a max-w-md para consistencia */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.125rem; /* Ajustado a text-lg para consistencia con otros formularios */
    font-weight: 700;
    color: #111827;
}

.modal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.modal-close {
    color: #6b7280;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1; /* A�adido para centrar el �cono de cerrar */
}

.modal-close:hover {
    color: #374151;
}

.modal-body {
    margin-bottom: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
/* ============================================================= */
/* RESPONSIVE */
/* ============================================================= */
@media (max-width: 768px) {
    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
    }
    .tab-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}
.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}
.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: #1f2937;
    }
    .modal-header h2 {
        color: #ffffff;
    }
    .modal-close {
        color: #9ca3af;
    }
    .modal-close:hover {
        color: #d1d5db;
    }
}

/* TOAST */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 320px;
    pointer-events: none; /* Permite clics fuera */
}

.toast {
    opacity: 0;
    transform: translateX(100%);
    transition: 
        opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
    pointer-events: auto;
    min-width: 280px;
    max-width: 100%;
    word-wrap: break-word;
}

/* COLORES POR TIPO (MODO CLARO) */
.toast.success { 
    background-color: #f0fdf4; 
    border-color: #10b981; 
    color: #065f46;
}
.toast.error { 
    background-color: #fef2f2; 
    border-color: #ef4444; 
    color: #991b1b;
}
.toast.warning { 
    background-color: #fffbeb; 
    border-color: #f59e0b; 
    color: #92400e;
}
.toast.info { 
    background-color: #eff6ff; 
    border-color: #3b82f6; 
    color: #1e40af;
}

/* MODO OSCURO - COLORES LEGIBLES */
@media (prefers-color-scheme: dark) {
    .toast {
        background-color: #1f2937 !important;
        color: #f3f4f6 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .toast.success { border-color: #34d399; }
    .toast.error { border-color: #f87171; }
    .toast.warning { border-color: #fbbf24; }
    .toast.info { border-color: #60a5fa; }
	
}

/* �CONOS SVG - SIEMPRE VISIBLES */
.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
    color: inherit !important;
}

.toast.show {
    opacity: 1;
    transform: translateX(0) translateY(-4px);
    animation: floatIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}


/* BOT�N CERRAR - SIEMPRE VISIBLE */
.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}


@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateX(120%) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(-4px);
    }
}

.toast.hide {
    opacity: 0;
    transform: translateX(120%);
	margin-top: -65px !important;
	transition: 
      opacity 0.45s ease-out,
      transform 0.45s ease-out;
}


.toast-close:hover {
    opacity: 1;
}

@keyframes slideIn {
	from { transform: translateX(100%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}