::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e8ecef;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #a3b1c6, #c8d0da);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e8ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #22c55e;
    animation: spin 0.9s linear infinite;
    box-shadow:
        6px 6px 14px rgba(163, 177, 198, 0.65),
        -5px -5px 12px rgba(255, 255, 255, 0.90);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(232, 236, 239, 0.75); /* 🔥 clave: transparencia */
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 28px;
    height: 64px;

    border-bottom: 1px solid rgba(255,255,255,0.4);

    box-shadow:
        0 6px 18px rgba(163, 177, 198, 0.35),
        0 -2px 6px rgba(255, 255, 255, 0.7);

    animation: slideDown 0.5s ease-out;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    animation: fadeInLeft 0.6s ease;
}

.logo-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #22c55e, #15803d);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow:
        5px 5px 12px rgba(163, 177, 198, 0.60),
        -3px -3px 8px rgba(255, 255, 255, 0.85),
        0 4px 14px rgba(34, 197, 94, 0.30);
    animation: scaleIn 0.5s ease;
}

.logo-small:hover {
    transform: scale(1.06) rotate(3deg);
    box-shadow:
        6px 6px 16px rgba(163, 177, 198, 0.65),
        -4px -4px 10px rgba(255, 255, 255, 0.90),
        0 6px 18px rgba(34, 197, 94, 0.38);
}

.user-info {
    animation: fadeIn 0.8s ease 0.2s backwards;
}

.user-info h2 {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: -0.2px;
}

.user-info p {
    font-size: 11px;
    color: #8fa3b1;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInRight 0.6s ease;
}

.logout-btn {
    background: #e8ecef;
    color: #15803d;
    border: none;
    padding: 8px 18px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 600;
    font-family: -apple-system, 'SF Pro Display', BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.55),
        -3px -3px 8px rgba(255, 255, 255, 0.88);
}

.logout-btn:hover {
    background: linear-gradient(145deg, #22c55e, #15803d);
    color: #fff;
    box-shadow:
        4px 4px 12px rgba(163, 177, 198, 0.60),
        -3px -3px 8px rgba(255, 255, 255, 0.90),
        0 4px 14px rgba(34, 197, 94, 0.32);
    transform: scale(1.03);
}

.logout-btn:active {
    transform: scale(0.97);
    box-shadow:
        inset 3px 3px 7px rgba(163, 177, 198, 0.45),
        inset -2px -2px 5px rgba(255, 255, 255, 0.80);
}

.filter-group {
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: #e8ecef;
    border: none;
    border-radius: 12px;
    padding: 0 14px;
    height: 40px;
    transition: all 0.25s ease;
    box-shadow:
        inset 4px 4px 8px rgba(163, 177, 198, 0.50),
        inset -3px -3px 7px rgba(255, 255, 255, 0.85);
}

.search-box:focus-within {
    box-shadow:
        inset 5px 5px 10px rgba(163, 177, 198, 0.55),
        inset -4px -4px 8px rgba(255, 255, 255, 0.90),
        0 0 0 2px rgba(34, 197, 94, 0.28);
}

.search-box i.fa-search {
    color: #8fa3b1;
    font-size: 13px;
    margin-right: 8px;
}

.search-main-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13.5px;
    outline: none;
    color: #2d3748;
    font-family: -apple-system, 'SF Pro Display', BlinkMacSystemFont, sans-serif;
}

.search-main-input::placeholder {
    color: #a3b1c6;
}

.clear-search {
    background: none;
    border: none;
    cursor: pointer;
    color: #a3b1c6;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.clear-search:hover {
    color: #dc2626;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #e8ecef;
    border-radius: 14px;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    z-index: 200;
    box-shadow:
        8px 8px 20px rgba(163, 177, 198, 0.65),
        -6px -6px 14px rgba(255, 255, 255, 0.88);
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(163, 177, 198, 0.18);
    transition: background 0.18s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(34, 197, 94, 0.07);
}

.suggestion-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #15803d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow:
        3px 3px 7px rgba(163, 177, 198, 0.50),
        -2px -2px 5px rgba(255, 255, 255, 0.80);
}

.suggestion-info { flex: 1; min-width: 0; }

.suggestion-name {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-control {
    font-size: 11px;
    color: #8fa3b1;
}

.no-suggestions {
    padding: 14px;
    text-align: center;
    color: #8fa3b1;
    font-size: 13.5px;
}

.highlight {
    background: rgba(34, 197, 94, 0.22);
    border-radius: 3px;
    padding: 0 2px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(180, 190, 200, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: #e8ecef;
    border-radius: 24px;
    max-width: 460px;
    width: 92%;
    text-align: center;
    overflow: hidden;
    animation: modalBounceIn 0.32s ease;
    padding: 2.2rem 2.5rem 2rem;
    box-shadow:
        12px 12px 28px rgba(163, 177, 198, 0.70),
        -10px -10px 22px rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.60);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    line-height: 1;
    display: block;
}

.modal-content.modal-success .modal-icon,
.modal-content.modal-confirm .modal-icon { color: #22c55e; }
.modal-content.modal-error   .modal-icon { color: #dc2626; }
.modal-content.modal-warning .modal-icon { color: #f59e0b; }

.modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.modal-content.modal-success .modal-title,
.modal-content.modal-confirm .modal-title { color: #15803d; }
.modal-content.modal-error   .modal-title { color: #dc2626; }
.modal-content.modal-warning .modal-title { color: #b45309; }

.modal-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 1.6rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.72rem 1.6rem;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: #fff;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.55),
        -3px -3px 8px rgba(255, 255, 255, 0.85);
}

.modal-btn:hover {
    transform: translateY(-2px);
}

.modal-btn:active {
    transform: scale(0.96);
    box-shadow:
        inset 3px 3px 7px rgba(0,0,0,0.12),
        inset -2px -2px 5px rgba(255,255,255,0.60);
}

.btn-cancel {
    background: #e8ecef;
    color: #5a6a7a;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.55),
        -3px -3px 8px rgba(255, 255, 255, 0.85);
}

.btn-cancel:hover {
    background: #dde2e8;
    color: #2d3748;
}

.btn-success,
.btn-confirm {
    background: linear-gradient(145deg, #22c55e, #15803d);
    box-shadow:
        4px 4px 12px rgba(163, 177, 198, 0.55),
        -3px -3px 8px rgba(255, 255, 255, 0.80),
        0 4px 14px rgba(34, 197, 94, 0.35);
}

.btn-error {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    box-shadow:
        4px 4px 12px rgba(163, 177, 198, 0.55),
        -3px -3px 8px rgba(255, 255, 255, 0.80),
        0 4px 14px rgba(220, 38, 38, 0.32);
}

.btn-warning {
    background: linear-gradient(145deg, #f59e0b, #b45309);
    box-shadow:
        4px 4px 12px rgba(163, 177, 198, 0.55),
        -3px -3px 8px rgba(255, 255, 255, 0.80),
        0 4px 14px rgba(245, 158, 11, 0.32);
}

@keyframes modalBounceIn {
    0%   { transform: scale(0.82); opacity: 0; }
    65%  { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1);    opacity: 1; }
}

.table-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #e8ecef;
    border-radius: 16px;
    margin-bottom: 0.6rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
    gap: 14px;
    transition: all 0.25s ease;
    animation: fadeInUp 0.6s ease forwards;
    box-shadow:
        6px 6px 16px rgba(163, 177, 198, 0.58),
        -5px -5px 12px rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.table-info-bar:hover {
    transform: translateY(-3px);
    box-shadow:
        9px 9px 22px rgba(163, 177, 198, 0.65),
        -7px -7px 16px rgba(255, 255, 255, 0.92);
}

.records-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d6a4f;
    font-size: 13.5px;
    font-weight: 500;
}

.records-info .separator {
    color: #a3b1c6;
    margin: 0 4px;
}

.records-info strong {
    color: #15803d;
    font-weight: 700;
}

.btn-sin-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    color: #15803d;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.22s ease;
    cursor: pointer;
    background: #e8ecef;
    box-shadow:
        3px 3px 8px rgba(163, 177, 198, 0.50),
        -2px -2px 6px rgba(255, 255, 255, 0.85);
}

.btn-sin-info:hover {
    background: linear-gradient(145deg, #22c55e, #15803d);
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.55),
        -3px -3px 8px rgba(255, 255, 255, 0.85),
        0 4px 12px rgba(34, 197, 94, 0.30);
}

.btn-sin-info.activo,
.btn-sin-info.activo:hover {
    background: linear-gradient(145deg, #22c55e, #15803d);
    color: white;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    animation: slideInRight 0.6s ease;
}

.page-btn, .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s ease;
    color: #5a6a7a;
    border: none;
    background: #e8ecef;
    box-shadow:
        4px 4px 9px rgba(163, 177, 198, 0.52),
        -3px -3px 7px rgba(255, 255, 255, 0.85);
}

.page-btn:hover, .page-num:hover {
    color: #15803d;
    box-shadow:
        5px 5px 12px rgba(163, 177, 198, 0.58),
        -4px -4px 9px rgba(255, 255, 255, 0.90),
        0 0 0 1.5px rgba(34, 197, 94, 0.25);
}

.page-num.active {
    background: linear-gradient(145deg, #22c55e, #15803d);
    color: #fff;
    font-weight: 700;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.55),
        -3px -3px 7px rgba(255, 255, 255, 0.80),
        0 4px 12px rgba(34, 197, 94, 0.35);
}

.page-dots {
    font-size: 13px;
    color: #a3b1c6;
    padding: 0 2px;
}

.page-info {
    font-size: 12.5px;
    color: #8fa3b1;
    padding: 7px 14px;
    white-space: nowrap;
    background: #e8ecef;
    border-radius: 10px;
    border: none;
    box-shadow:
        inset 3px 3px 7px rgba(163, 177, 198, 0.42),
        inset -2px -2px 5px rgba(255, 255, 255, 0.80);
}

.page-info strong {
    color: #2d3748;
    font-weight: 600;
}

.pagination-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid rgba(163, 177, 198, 0.22);
    background: #e8ecef;
    flex-wrap: wrap;
    gap: 12px;
    border-radius: 0 0 18px 18px;
    animation: fadeInUp 0.6s ease;
}

.goto-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.goto-page label {
    font-size: 12.5px;
    color: #8fa3b1;
    font-weight: 500;
}

.goto-page input[type="number"] {
    width: 56px;
    height: 34px;
    border: none;
    border-radius: 10px;
    text-align: center;
    font-family: -apple-system, 'SF Pro Display', BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    color: #2d3748;
    background: #e8ecef;
    outline: none;
    transition: all 0.18s;
    box-shadow:
        inset 3px 3px 7px rgba(163, 177, 198, 0.45),
        inset -2px -2px 5px rgba(255, 255, 255, 0.82);
}

.goto-page input[type="number"]:focus {
    box-shadow:
        inset 4px 4px 9px rgba(163, 177, 198, 0.50),
        inset -3px -3px 6px rgba(255, 255, 255, 0.88),
        0 0 0 2px rgba(34, 197, 94, 0.25);
}

.btn-goto {
    width: 34px;
    height: 34px;
    background: linear-gradient(145deg, #22c55e, #15803d);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.18s;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.52),
        -3px -3px 7px rgba(255, 255, 255, 0.82),
        0 3px 10px rgba(34, 197, 94, 0.28);
}

.btn-goto:hover {
    transform: scale(1.06);
    box-shadow:
        5px 5px 13px rgba(163, 177, 198, 0.58),
        -4px -4px 9px rgba(255, 255, 255, 0.88),
        0 5px 14px rgba(34, 197, 94, 0.36);
}

.btn-goto:active {
    transform: scale(0.95);
    box-shadow:
        inset 3px 3px 7px rgba(0,0,0,0.14),
        inset -2px -2px 5px rgba(255,255,255,0.55);
}

.management-section {
    background: #e8ecef;
    padding: 14px;
    border-radius: 20px;
    animation: fadeInUp 0.7s ease;
    box-shadow:
        8px 8px 20px rgba(163, 177, 198, 0.60),
        -6px -6px 16px rgba(255, 255, 255, 0.90);
}

.data-table {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    text-align: center;
    vertical-align: middle;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    background: linear-gradient(135deg, #22c55e, #15803d);
    padding: 13px 16px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.25);
    white-space: nowrap;
}

.data-table th:first-child { border-radius: 12px 0 0 12px; }
.data-table th:last-child  { border-radius: 0 12px 12px 0; }

.data-table tbody tr {
    transition: all 0.22s ease;
}

.data-table tbody tr td {
    background: #e8ecef;
    padding: 11px 16px;
    font-size: 13px;
    color: #2d3748;
    box-shadow:
        3px 3px 8px rgba(163, 177, 198, 0.40),
        -2px -2px 6px rgba(255, 255, 255, 0.80);
}

.data-table tbody tr td:first-child { border-radius: 10px 0 0 10px; }
.data-table tbody tr td:last-child  { border-radius: 0 10px 10px 0; }

.data-table tbody tr:hover td {
    background: #dde8dd;
    box-shadow:
        5px 5px 12px rgba(163, 177, 198, 0.50),
        -4px -4px 9px rgba(255, 255, 255, 0.88),
        0 0 0 1px rgba(34, 197, 94, 0.18);
    transform: scale(1.003);
}

.editable-input {
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 8px;
    transition: all 0.22s ease;
    font-family: -apple-system, 'SF Pro Display', BlinkMacSystemFont, sans-serif;
    color: #2d3748;
}

.editable-input:hover {
    background: rgba(255,255,255,0.55);
    box-shadow:
        inset 2px 2px 5px rgba(163, 177, 198, 0.35),
        inset -1px -1px 4px rgba(255, 255, 255, 0.75);
}

.editable-input:focus {
    outline: none;
    background: rgba(255,255,255,0.75);
    box-shadow:
        inset 3px 3px 7px rgba(163, 177, 198, 0.42),
        inset -2px -2px 5px rgba(255, 255, 255, 0.82),
        0 0 0 2px rgba(34, 197, 94, 0.28);
    transform: scale(1.03);
}

select.editable-input {
    min-width: 110px;
    cursor: pointer;
    appearance: auto;
}

.editable-row td {
    background: rgba(34, 197, 94, 0.10) !important;
}

.calificacion-input {
    font-weight: 700;
    color: #15803d;
}

.data-table td:last-child {
    white-space: nowrap;
}

.table-scroll-hint {
    display: none;
    text-align: center;
    color: #22c55e;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0;
    padding: 11px;
    background: #e8ecef;
    border-radius: 12px;
    box-shadow:
        inset 3px 3px 7px rgba(163, 177, 198, 0.42),
        inset -2px -2px 5px rgba(255, 255, 255, 0.82);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* <--- CARRUSEL ---> */
.carousel-wrapper {
    margin: 0 0 1.2rem;
    animation: fadeInUp 0.6s ease;
}

.carousel-title {
    font-size: 13px;
    font-weight: 700;
    color: #2d6a4f;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

.carousel-title i {
    color: #22c55e;
    font-size: 14px;
}

.carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 4px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #a3b1c6 transparent;
}

.carousel-track::-webkit-scrollbar {
    height: 5px;
}

.carousel-track::-webkit-scrollbar-track {
    background: transparent;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #a3b1c6, #c8d0da);
    border-radius: 10px;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.carousel-card {
    position: relative;
    flex-shrink: 0;
    width: 158px;
    background: #e8ecef;
    border-radius: 18px;
    padding: 18px 16px 16px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        6px 6px 14px rgba(163, 177, 198, 0.60),
        -5px -5px 11px rgba(255, 255, 255, 0.88);
    user-select: none;
    animation: scaleIn 0.4s ease backwards;
}

.carousel-card:nth-child(1)  { animation-delay: 0.04s; }
.carousel-card:nth-child(2)  { animation-delay: 0.08s; }
.carousel-card:nth-child(3)  { animation-delay: 0.12s; }
.carousel-card:nth-child(4)  { animation-delay: 0.16s; }
.carousel-card:nth-child(5)  { animation-delay: 0.20s; }
.carousel-card:nth-child(6)  { animation-delay: 0.24s; }
.carousel-card:nth-child(7)  { animation-delay: 0.28s; }
.carousel-card:nth-child(8)  { animation-delay: 0.32s; }
.carousel-card:nth-child(n+9){ animation-delay: 0.36s; }

.carousel-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        9px 9px 20px rgba(163, 177, 198, 0.65),
        -7px -7px 14px rgba(255, 255, 255, 0.92),
        0 0 0 1.5px rgba(34, 197, 94, 0.22);
}

.carousel-card.active {
    border-color: #22c55e;
    background: linear-gradient(145deg, #d4f5e0, #e8ecef);
    box-shadow:
        6px 6px 16px rgba(163, 177, 198, 0.60),
        -5px -5px 12px rgba(255, 255, 255, 0.90),
        0 0 0 2px rgba(34, 197, 94, 0.38),
        0 4px 18px rgba(34, 197, 94, 0.20);
    transform: translateY(-3px);
}

.card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 17px;
    height: 17px;
    accent-color: #22c55e;
    cursor: pointer;
    border-radius: 4px;
}

.card-carrera {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a2f;
    line-height: 1.35;
    margin-bottom: 6px;
    padding-right: 20px;
}

.card-modalidad {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #e8ecef;
    color: #15803d;
    margin-bottom: 14px;
    box-shadow:
        inset 2px 2px 5px rgba(163, 177, 198, 0.40),
        inset -1px -1px 3px rgba(255, 255, 255, 0.80);
    letter-spacing: 0.2px;
}

.carousel-card.active .card-modalidad {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.card-count {
    font-size: 28px;
    font-weight: 800;
    color: #15803d;
    line-height: 1;
    margin-bottom: 2px;
    letter-spacing: -1px;
}

.card-label {
    font-size: 11px;
    font-weight: 500;
    color: #8fa3b1;
    letter-spacing: 0.2px;
}

@media (max-width: 480px) {
    .carousel-card {
        width: 138px;
        padding: 14px 12px 12px;
        border-radius: 14px;
    }

    .card-count { font-size: 24px; }
    .card-carrera { font-size: 11px; }
}

@media (max-width: 480px) {
    .header { padding: 10px 16px; height: 58px; }
    .logo-small { width: 36px; height: 36px; font-size: 14px; }
    .user-info h2 { font-size: 13px; }
    .user-info p  { font-size: 10px; }
    .logout-btn { padding: 7px 13px; font-size: 12px; }
    .management-section { padding: 10px; border-radius: 16px; }
    .data-table th { padding: 10px 12px; font-size: 0.68rem; }
    .data-table tbody tr td { padding: 9px 12px; }
    .modal-content { padding: 1.8rem 1.4rem 1.6rem; border-radius: 20px; }
    .modal-title { font-size: 1.1rem; }
    .modal-btn { padding: 0.65rem 1.2rem; font-size: 0.78rem; }
    .table-info-bar { padding: 10px 14px; border-radius: 12px; }
    .pagination-bottom { padding: 12px 14px; }
}