:root {
    --primary-color: #002855;
    /* UNAH Navy Blue */
    --primary-hover: #F2A900;
    /* UNAH Gold */
    --text-main: #0f172a;
    /* Slate 900 for serious dark text */
    --text-muted: #64748b;
    /* Slate 500 for elegant muted text */
    --bg-page: #f1f5f9;
    /* Slate 100 for a sophisticated light background */
    --bg-card: #ffffff;
    --bg-track: #f8fafc;
    --border-color: #e2e8f0;
    --tag-bg: #F2A900;
    --tag-text: #002855;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.025);
    --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    display: block;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-bottom: 60px;
}

.top-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary-hover);
    box-shadow: var(--shadow-header);
    width: 100%;
    padding: 16px 40px;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
}

.unah-logo {
    height: 160px;
    max-width: 100%;
    object-fit: contain;
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.search-section {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.admin-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.admin-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    border-radius: 24px;
    /* Pill shape */
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 40, 85, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

/* Subheader */
.subheader-text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
}

/* Tabs Wrapper */
.tabs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    width: 100%;
    gap: 8px;
}

.scroll-arrow {
    display: none;
    /* Default hidden on large screens if not needed */
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.scroll-arrow:hover {
    background: #f8fafc;
    color: var(--primary-hover);
}



@media (max-width: 768px) {
    .scroll-arrow {
        display: flex;
        /* Show arrows on mobile */
    }
}

/* Tabs */
.tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 999px;
    box-shadow: 0 1px 1px rgba(14, 17, 22, 0.04), 0 20px 40px -24px rgba(14, 17, 22, 0.18);
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #5b6472;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 220ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tab:hover {
    color: #173b75;
    /* Institutional Blue on hover */
}

.tab.active {
    background: #173b75;
    /* Institutional Blue active state */
    color: #ffffff;
    box-shadow: 0 1px 1px rgba(14, 17, 22, 0.06), 0 8px 18px -10px rgba(14, 17, 22, 0.5);
}

/* Tab Content */
.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Track Header */
.track-header {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    border-left: 6px solid var(--primary-color);
    padding: 20px 24px;
    display: flex;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.track-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: var(--primary-color);
}

.track-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
    /* Slightly darker */
}

.track-info p {
    font-size: 15px;
    color: var(--text-muted);
    font-style: italic;
}

/* Sessions Grid */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Session Card */
/* Session Card with Uiverse effects */










@keyframes shine {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}




.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tag {
    /* Default tag styles, colors will be overridden by specific classes */
    background-color: var(--tag-bg);
    color: var(--tag-text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tag-ipsd {
    background-color: #002855;
    color: white;
}

.tag-sed {
    background-color: #dc2626;
    /* Rojo */
    color: white;
}

.tag-die {
    background-color: #F2A900;
    /* Amarillo */
    color: #111827;
    /* Dark text for contrast */
}

.tag-degt {
    background-color: #16a34a;
    /* Verde */
    color: white;
}

.time {
    font-size: 14px;
    color: #64748b;
    font-family: inherit;
    font-weight: 600;
}

.session-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #0f172a;
    line-height: 1.3;
}


.cupos-badge {
    font-size: 13px;
    font-weight: 600;
    color: #047857;
    margin-bottom: 16px;
    background-color: #d1fae5;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    border: 1px solid #a7f3d0;
}

.cupos-badge.agotado {
    background-color: #fee2e2;
    color: #ef4444;
}

/* From Uiverse.io by alexroumi (Adapted) */
.join-btn {
    padding: 12px 24px;
    border: unset;
    border-radius: 15px;
    color: var(--primary-color);
    z-index: 1;
    background: var(--primary-hover);
    /* Amarillo institucional */
    position: relative;
    font-weight: 1000;
    font-size: 15px;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    transition: all 250ms;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    width: fit-content;
}

.join-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: var(--primary-color);
    /* Azul institucional */
    z-index: -1;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    transition: all 250ms;
}

.join-btn:hover:not(:disabled) {
    color: #ffffff;
}

.join-btn:hover:not(:disabled)::before {
    width: 100%;
}

.join-btn:disabled {
    background-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .app-container {
        padding: 16px;
        margin-bottom: 20px;
    }

    .top-navbar {
        padding: 12px 16px;
    }

    .sessions-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .search-section {
        width: 100%;
    }

    .tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    .tabs::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }

    .tab {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

/* Admin Panel Styles */
.add-card-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 4px;
}

.add-card-btn:hover {
    background-color: var(--primary-hover);
    color: var(--primary-color);
}

/* Admin Action Buttons */
.admin-actions-container {
    display: none;
    margin-top: 8px;
    flex-direction: column;
    gap: 8px;
}

body.admin-logged-in .admin-actions-container {
    display: flex;
}

.admin-actions-row {
    display: flex;
    gap: 8px;
}

.admin-action-btn {
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    width: 100%;
    transition: all 0.2s;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-excel {
    background-color: #10b981;
}

.btn-excel:hover {
    background-color: #059669;
}

.btn-excel:disabled {
    background-color: #6ee7b7;
    cursor: not-allowed;
}

.btn-edit {
    background-color: #3b82f6;
    flex: 1;
}

.btn-edit:hover {
    background-color: #2563eb;
}

.btn-delete {
    background-color: #ef4444;
    flex: 1;
}

.btn-delete:hover {
    background-color: #dc2626;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s, transform 0.2s;
}

.close-modal:hover {
    color: #0f172a;
    transform: scale(1.1);
}

.modal-content h2 {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
}

#addCardForm,
#inscriptionForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

#addCardForm label,
#inscriptionForm label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: -12px;
}

#addCardForm input,
#addCardForm select,
#inscriptionForm input,
#inscriptionForm select {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #f8fafc;
    font-family: inherit;
    font-size: 15px;
    color: #0f172a;
    transition: all 0.2s;
    width: 100%;
}

#addCardForm select,
#inscriptionForm select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 48px;
}

#addCardForm input:focus,
#addCardForm select:focus,
#inscriptionForm input:focus,
#inscriptionForm select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 40, 85, 0.1);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 40, 85, 0.2);
}

.submit-btn:hover {
    background-color: #001a38;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 40, 85, 0.3);
}


/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.filter-pill {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background-color: #e5e7eb;
}

.filter-pill.active {
    background-color: #002855;
    color: white;
    border-color: #002855;
    box-shadow: 0 2px 4px rgba(0, 40, 85, 0.2);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #10b981;
    /* Green success */
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 15px;
    transform: translateX(120%);
    animation: slideInToast 0.4s forwards, fadeOutToast 0.4s forwards 3.6s;
}

.toast.error {
    background-color: #ef4444;
    /* Red error */
}

@keyframes slideInToast {
    to {
        transform: translateX(0);
    }
}

@keyframes fadeOutToast {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Skeletons (Estados de carga) */
.skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.skeleton {
    background: #f3f4f6;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-tag {
    width: 60px;
    height: 24px;
    border-radius: 12px;
}

.skeleton-time {
    width: 100px;
    height: 20px;
}

.skeleton-title {
    width: 100%;
    height: 24px;
}

.skeleton-title.short {
    width: 70%;
}

.skeleton-button {
    width: 100%;
    height: 42px;
    margin-top: auto;
    border-radius: 8px;
}

/* Lista de Espera */
.btn-waitlist {
    background-color: #f59e0b !important;
    color: white !important;
}

.btn-waitlist:hover {
    background-color: #d97706 !important;
}

.cupos-badge.agotado {
    color: #b45309 !important;
    background-color: #fef3c7 !important;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: #9ca3af;
}

.empty-state h3 {
    color: #374151;
    margin-bottom: 8px;
}

/* ── DASHBOARD STYLES (Real-time admin) ── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.45s ease both;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.kpi-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: #0f172a;
}

.kpi-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4.5px;
    height: 100%;
}

.kpi-bar.blue {
    background: #0969da;
}

.kpi-bar.green {
    background: #1a7f37;
}

.kpi-bar.yellow {
    background: #bf8700;
}

.kpi-bar.purple {
    background: #8250df;
}

.kpi-card[data-color="blue"] {
    background: linear-gradient(145deg, #fff 50%, #edf5ff);
}

.kpi-card[data-color="green"] {
    background: linear-gradient(145deg, #fff 50%, #ecfdf5);
}

.kpi-card[data-color="purple"] {
    background: linear-gradient(145deg, #fff 50%, #f5f0ff);
}

.kpi-card[data-color="yellow"] {
    background: linear-gradient(145deg, #fff 50%, #fefce8);
}

.charts-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.5s ease both;
}

.charts-row.row-2col-wide {
    grid-template-columns: 1.5fr 1fr;
}

.charts-row.row-2col {
    grid-template-columns: 1fr 1fr;
}

.chart-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.chart-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.chart-card.full {
    width: 100%;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chart-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
}

.chart-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: #ddf4ff;
    color: #0969da;
    border: 1px solid #b6d8fb;
    border-radius: 20px;
    padding: 0.12rem 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.chart-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #64748b;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chart-body {
    width: 100%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width:900px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-row.row-2col-wide,
    .charts-row.row-2col {
        grid-template-columns: 1fr;
    }
}

@media (max-width:540px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* Historial de Inscripciones */

.inscription-cart-item h4 {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
}

.inscription-cart-item p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.inscription-cart-item .link-box {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #0369a1;
    word-break: break-all;
    margin-top: 5px;
}

.inscription-cart-item .link-box a {
    color: #0284c7;
    text-decoration: underline;
    font-weight: 600;
}

/* Export Buttons Styles based on Uiverse */
.action-btn-custom {
    --height: 38px;
    height: var(--height);
    background: var(--button-color, #1163ff);
    position: relative;
    text-align: center;
    border-radius: 0.45em;
    font-family: "Inter", sans-serif;
    transition: background 0.3s;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.action-btn-custom:hover {
    background: var(--button-hover-color, #1163ff);
}

.export-fx-btn {
    --tooltip-height: 35px;
    --tooltip-width: 130px;
    --gap-between-tooltip-to-button: 18px;
    --tooltip-color: #333;
    padding: 0;
    width: 170px;
}

.export-fx-btn::before {
    position: absolute;
    content: attr(data-tooltip);
    width: var(--tooltip-width);
    height: var(--tooltip-height);
    background-color: var(--tooltip-color);
    font-size: 0.8rem;
    color: #fff;
    border-radius: .25em;
    line-height: var(--tooltip-height);
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) + 10px);
    left: calc(50% - var(--tooltip-width) / 2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.export-fx-btn::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: var(--tooltip-color);
    left: calc(50% - 10px);
    bottom: calc(100% + var(--gap-between-tooltip-to-button) - 10px);
}

.export-fx-btn::after,
.export-fx-btn::before {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
    z-index: 10;
}

.export-fx-btn .button-wrapper {
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
}

.export-fx-btn .text {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transition: top 0.5s;
}

.export-fx-btn .icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.5s;
}

.export-fx-btn .icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.export-fx-btn:hover .text {
    top: -100%;
}

.export-fx-btn:hover .icon {
    top: 0;
}

.export-fx-btn:hover:before,
.export-fx-btn:hover:after {
    opacity: 1;
    visibility: visible;
}

.export-fx-btn:hover:after {
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) - 20px);
}

.export-fx-btn:hover:before {
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));
}

/* Modal Inscription Cart Items (Uiverse Style) */
.inscription-cart-item {
    background-color: #dbeafe;
    /* Tailwind blue-100 */
    border-left: 4px solid #3b82f6;
    /* Tailwind blue-500 */
    color: #1e3a8a;
    /* Tailwind blue-900 */
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
    cursor: default;
    margin-bottom: 4px;
}

.inscription-cart-item:hover {
    background-color: #bfdbfe;
    /* Tailwind blue-200 */
    transform: scale(1.03);
}

.inscription-cart-item .cart-item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    color: #2563eb;
    /* Tailwind blue-600 */
}

.inscription-cart-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inscription-cart-content h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e3a8a;
}

.inscription-cart-content p {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
}

















.session-card {
    background-color: #ffffff;
    border-radius: 12px;
    /* Mismo que skeleton-card */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Borde sutil casi invisible */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Sombra Uiverse */
    display: flex;
    flex-direction: column;
    padding: 24px;
    /* EXACTO al skeleton-card */
    gap: 12px;
    /* EXACTO al skeleton-card */
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.08);
}


.session-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 60%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: 12px;
}

.session-card__glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle at 50% 0%,
            rgba(242, 169, 0, 0.25) 0%,
            /* Oro Institucional */
            rgba(242, 169, 0, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.session-card:hover .session-card__shine {
    opacity: 1;
    animation: shine-effect 3s infinite;
}

.session-card:hover .session-card__glow {
    opacity: 1;
}

@keyframes shine-effect {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


.card-watermark {
    position: absolute;
    bottom: -10px;
    right: 10px;
    font-size: 64px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04);
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
    user-select: none;
    letter-spacing: -2px;
}




.md\:pt-6 {
    padding-top: 1.5rem;
}

.md\:mb-6 {
    margin-bottom: 1.5rem;
}


.md\:pt-6 {
    padding-top: 1.5rem;
}

.md\:mb-6 {
    margin-bottom: 1.5rem;
}


.md\:pt-6 {
    padding-top: 1.5rem;
}

.md\:mb-6 {
    margin-bottom: 1.5rem;
}

\n

/* Typography & Colors */
.text-heading {
    color: #002855;
}

.text-body {
    color: #64748b;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

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

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.hover\:text-heading:hover {
    color: #00152e;
}

/* Status Colors */
.bg-success-soft {
    background-color: #dcfce7;
}

.border-success-subtle {
    border-color: #bbf7d0;
}

.text-fg-success-strong {
    color: #166534;
}

.text-fg-success {
    color: #166534;
}

.bg-success-medium {
    background-color: #22c55e;
}

.bg-warning-soft {
    background-color: #fef9c3;
}

.border-warning-subtle {
    border-color: #fef08a;
}

.text-fg-warning {
    color: #a16207;
}

.bg-warning-medium {
    background-color: #eab308;
}

.text-fg-danger {
    color: #dc2626;
}

.bg-brand-softer {
    background-color: rgba(242, 169, 0, 0.1);
}

.bg-brand-soft {
    background-color: rgba(242, 169, 0, 0.25);
}

.border-brand-subtle {
    border-color: rgba(242, 169, 0, 0.4);
}

.text-fg-brand-strong {
    color: #b45309;
}

.text-fg-brand {
    color: #d97706;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:bg-neutral-secondary-medium:hover {
    background-color: #f1f5f9;
}

.hover\:bg-neutral-tertiary-medium:hover {
    background-color: #e2e8f0;
}

.hidden {
    display: none !important;
}

.absolute {
    position: absolute;
}

.z-10 {
    z-index: 10;
}

.cursor-pointer {
    cursor: pointer;
}

.invisible {
    visibility: hidden;
}

.opacity-0 {
    opacity: 0;
}

.transition-opacity {
    transition-property: opacity;
}

.duration-300 {
    transition-duration: 300ms;
}

dl,
dd,
dt,
p,
h3,
h5,
ul {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

.box-border {
    box-sizing: border-box;
}

.bg-transparent {
    background-color: transparent;
}

.rtl\:rotate-180 {
    transform: scaleX(-1);
}

@media (min-width: 768px) {
    .md\:p-6 {
        padding: 1.5rem;
    }

    .md\:pt-6 {
        padding-top: 1.5rem;
    }

    .md\:mb-6 {
        margin-bottom: 1.5rem;
    }
}


/* =========================================================
   CLEAN CHARTS STYLES (MATCHING INSTITUTIONAL SYSTEM)
   ========================================================= */
.clean-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clean-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.clean-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #002855;
    margin: 0;
}

.header-right {
    font-size: 0.9rem;
    color: #64748b;
}

.stat-highlight {
    font-weight: 700;
    color: #002855;
    font-size: 1.1rem;
}

.clean-card-stats {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
}

.clean-card-stats.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    background: transparent;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.stat-box.box-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.stat-box.box-blue .stat-num {
    color: #1e40af;
}

.stat-box.box-blue .stat-label {
    color: #3b82f6;
}

.stat-box.box-yellow {
    background: #fefce8;
    border-color: #fef08a;
}

.stat-box.box-yellow .stat-num {
    color: #854d0e;
}

.stat-box.box-yellow .stat-label {
    color: #ca8a04;
}

.stat-box.box-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.stat-box.box-green .stat-num {
    color: #166534;
}

.stat-box.box-green .stat-label {
    color: #22c55e;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.stat-row .stat-label {
    color: #64748b;
    text-transform: none;
    letter-spacing: normal;
}

.stat-row .stat-value {
    font-weight: 600;
    color: #002855;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
    text-align: right;
}

.clean-card-body {
    position: relative;
    width: 100%;
}

/* From Uiverse.io by satyamchaudharydev */
button.video-tutorial-btn {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
}

button.video-tutorial-btn {
    --primary-color: #111;
    --hovered-color: #c84747;
    position: relative;
    display: flex;
    font-weight: 600;
    font-size: 20px;
    gap: 0.5rem;
    align-items: center;
}

button.video-tutorial-btn p {
    margin: 0;
    position: relative;
    font-size: 20px;
    color: var(--primary-color);
}

button.video-tutorial-btn::after {
    position: absolute;
    content: "";
    width: 0;
    left: 0;
    bottom: -7px;
    background: var(--hovered-color);
    height: 2px;
    transition: 0.3s ease-out;
}

button.video-tutorial-btn p::before {
    position: absolute;
    /*   box-sizing: border-box; */
    content: "Video Tutorial";
    width: 0%;
    inset: 0;
    color: var(--hovered-color);
    overflow: hidden;
    transition: 0.3s ease-out;
}

button.video-tutorial-btn:hover::after {
    width: 100%;
}

button.video-tutorial-btn:hover p::before {
    width: 100%;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:bg-neutral-secondary-medium:hover {
    background-color: #f1f5f9;
}

.hover\:bg-neutral-tertiary-medium:hover {
    background-color: #e2e8f0;
}

.hidden {
    display: none !important;
}

.absolute {
    position: absolute;
}

.z-10 {
    z-index: 10;
}

.cursor-pointer {
    cursor: pointer;
}

.invisible {
    visibility: hidden;
}

.opacity-0 {
    opacity: 0;
}

.transition-opacity {
    transition-property: opacity;
}

.duration-300 {
    transition-duration: 300ms;
}

dl,
dd,
dt,
p,
h3,
h5,
ul {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

.box-border {
    box-sizing: border-box;
}

.bg-transparent {
    background-color: transparent;
}

.rtl\:rotate-180 {
    transform: scaleX(-1);
}

@media (min-width: 768px) {
    .md\:p-6 {
        padding: 1.5rem;
    }

    .md\:pt-6 {
        padding-top: 1.5rem;
    }

    .md\:mb-6 {
        margin-bottom: 1.5rem;
    }
}


/* =========================================================
   CLEAN CHARTS STYLES (MATCHING INSTITUTIONAL SYSTEM)
   ========================================================= */
.clean-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clean-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.clean-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #002855;
    margin: 0;
}

.header-right {
    font-size: 0.9rem;
    color: #64748b;
}

.stat-highlight {
    font-weight: 700;
    color: #002855;
    font-size: 1.1rem;
}

.clean-card-stats {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
}

.clean-card-stats.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    background: transparent;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.stat-box.box-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.stat-box.box-blue .stat-num {
    color: #1e40af;
}

.stat-box.box-blue .stat-label {
    color: #3b82f6;
}

.stat-box.box-yellow {
    background: #fefce8;
    border-color: #fef08a;
}

.stat-box.box-yellow .stat-num {
    color: #854d0e;
}

.stat-box.box-yellow .stat-label {
    color: #ca8a04;
}

.stat-box.box-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.stat-box.box-green .stat-num {
    color: #166534;
}

.stat-box.box-green .stat-label {
    color: #22c55e;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.stat-row .stat-label {
    color: #64748b;
    text-transform: none;
    letter-spacing: normal;
}

.stat-row .stat-value {
    font-weight: 600;
    color: #002855;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
    text-align: right;
}

.clean-card-body {
    position: relative;
    width: 100%;
}

/* From Uiverse.io by satyamchaudharydev */
button.video-tutorial-btn {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
}

button.video-tutorial-btn {
    --primary-color: #111;
    --hovered-color: #c84747;
    position: relative;
    display: flex;
    font-weight: 600;
    font-size: 20px;
    gap: 0.5rem;
    align-items: center;
}

button.video-tutorial-btn p {
    margin: 0;
    position: relative;
    font-size: 20px;
    color: var(--primary-color);
}

button.video-tutorial-btn::after {
    position: absolute;
    content: "";
    width: 0;
    left: 0;
    bottom: -7px;
    background: var(--hovered-color);
    height: 2px;
    transition: 0.3s ease-out;
}

button.video-tutorial-btn p::before {
    position: absolute;
    /*   box-sizing: border-box; */
    content: "Video Tutorial";
    width: 0%;
    inset: 0;
    color: var(--hovered-color);
    overflow: hidden;
    transition: 0.3s ease-out;
}

button.video-tutorial-btn:hover::after {
    width: 100%;
}

button.video-tutorial-btn:hover p::before {
    width: 100%;
}

button.video-tutorial-btn:hover svg {
    transform: translateX(4px);
    color: var(--hovered-color);
}

button.video-tutorial-btn svg {
    color: var(--primary-color);
    transition: 0.2s;
    position: relative;
    width: 15px;
    transition-delay: 0.2s;
}

/* From Uiverse.io by adamgiebl - Adapted for UNAH */
.cssbuttons-io {
    position: relative;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: var(--primary-color);
    color: var(--primary-hover);
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.cssbuttons-io .btn-content {
    position: relative;
    z-index: 10;
    transition: color 0.4s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    width: 100%;
    gap: 8px;
}

.cssbuttons-io:hover .btn-content {
    color: var(--primary-color);
}

.cssbuttons-io::before,
.cssbuttons-io::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cssbuttons-io::before {
    content: "";
    background: var(--primary-hover);
    width: 120%;
    left: -10%;
    transform: translateX(-120%) skew(30deg);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.cssbuttons-io:hover::before {
    transform: translate3d(10%, 0, 0);
}

.cssbuttons-io:active {
    transform: scale(0.95);
}

/* Admin Profile Menu Styles */
.dropdown-item:hover {
    background-color: #f1f5f9 !important;
}

.profile-avatar-btn:hover {
    background-color: #f1f5f9;
}

.admin-profile-menu.open .profile-dropdown {
    display: flex !important;
    animation: slideDownFade 0.2s ease-out;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Settings Modal Styles */
.settings-sidebar .settings-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-sidebar .settings-tab:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.settings-sidebar .settings-tab.active {
    background-color: #eff6ff;
    color: #2563eb;
    border-right: 3px solid #2563eb;
    font-weight: 600;
}

.setting-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #2563eb;
}

input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

/* Mejoras visuales para inputs en los modales (Editar / Crear) */
.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="email"],
.modal-content select,
.modal-content textarea,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    margin-top: 5px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    background-color: #f8fafc;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f2a900;
    box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.2);
    background-color: #ffffff;
}

.modal-content textarea,
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}