:root {
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --accent: #d69e2e;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --sidebar-width: 340px;
    --header-height: 70px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.main-header {
    height: var(--header-height);
    background: var(--primary);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
}

.brand-logo {
    height: 65px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.brand-text {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    margin-right: 1.5rem;
}

.header-nav .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.12);
}

.header-actions {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.6rem;
    margin-right: 0.75rem;
    padding: 0.25rem;
}

/* LAYOUT */
.main-wrapper {
    display: flex;
    margin-top: var(--header-height);
    flex: 1;
    min-height: calc(100vh - var(--header-height));
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    border-right: 1px solid rgba(255,255,255,0.1);
    position: fixed;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 1rem 0;
    z-index: 1020;
}

.sidebar-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.sidebar-title:first-child { margin-top: 0; }

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.article-list li:hover { background: rgba(255,255,255,0.08); }
.article-list li.active {
    background: rgba(255,255,255,0.15);
    border-left-color: var(--accent);
}

.article-list a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.article-list li.active a { color: white; }

/* GRUPOS Y SUBMENÚS */
.menu-group {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.1rem;
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.15s;
    user-select: none;
}

.menu-group-header:hover {
    background: rgba(255,255,255,0.08);
}

.menu-group-header.expanded {
    background: rgba(255,255,255,0.12);
    border-left-color: var(--accent);
    color: white;
}

.group-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
    color: rgba(255,255,255,0.6);
}

.menu-group-header.expanded .group-arrow {
    transform: rotate(90deg);
    color: white;
}

.menu-group-icon {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    flex-shrink: 0;
}

.menu-group-header.expanded .menu-group-icon {
    color: white;
}

.submenu-icon {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.submenu li.active .submenu-icon {
    color: white;
}

.menu-item-icon {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.article-list li.active .menu-item-icon {
    color: white;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: var(--primary);
}

.submenu.show {
    max-height: 2000px;
}

.submenu li {
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.submenu li:hover { background: rgba(255,255,255,0.08); }
.submenu li.active {
    background: var(--accent);
    border-left-color: var(--accent);
}

.submenu li.active a { color: var(--primary); }

.submenu a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1.1rem 0.55rem 1.5rem;
    color: #ffffff !important;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.submenu .article-num {
    font-size: 0.75rem;
    color: #ffffff !important;
}

.submenu li.active .article-num {
    color: var(--primary);
}

.article-num {
    font-weight: 700;
    color: var(--accent);
    min-width: 24px;
    font-size: 0.78rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.article-list li.active .article-num { color: var(--accent); }

/* SEARCH */
.search-box {
    position: relative;
    margin-bottom: 0.75rem;
    padding: 0 1.25rem;
}

.search-box input {
    padding-left: 2.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.88rem;
    height: 38px;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-box i {
    position: absolute;
    left: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* CONTENT AREA */
.content-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.75rem;
    min-height: calc(100vh - var(--header-height));
}

.page-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border-left: 5px solid var(--accent);
}

.page-header.border-left-warning {
    border-left-color: #ed8936;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* CARDS */
.modern-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: box-shadow 0.2s;
}

.modern-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.04); }

/* STATS ADMIN */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 0.75rem;
}

.stat-icon.purple { background: rgba(102, 126, 234, 0.1); color: #667eea; }
.stat-icon.green { background: rgba(72, 187, 120, 0.1); color: #48bb78; }
.stat-icon.orange { background: rgba(237, 137, 54, 0.1); color: #ed8936; }
.stat-icon.blue { background: rgba(66, 153, 225, 0.1); color: #4299e1; }

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* UPLOAD ZONE */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fafafa;
    transition: all 0.2s;
    cursor: pointer;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary-light);
    background: #ebf8ff;
}

.upload-zone i {
    font-size: 2.2rem;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    display: block;
}

.upload-zone h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.upload-zone p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

/* ÁRBOL DE ARCHIVOS */
.tree-view {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tree-year {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}

.tree-year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: #e2e8f0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    user-select: none;
    transition: background 0.15s;
}

.tree-year-header:hover { background: #cbd5e1; }

.tree-year-header i.bi-chevron-down {
    transition: transform 0.2s;
    font-size: 0.9rem;
}

.tree-year.collapsed .tree-year-header i.bi-chevron-down {
    transform: rotate(-90deg);
}

.tree-year-months {
    list-style: none;
    padding: 0.5rem;
    margin: 0;
    background: white;
}

.tree-year.collapsed .tree-year-months {
    display: none;
}

.tree-month {
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.tree-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    user-select: none;
    transition: background 0.15s;
}

.tree-month-header:hover { background: #e2e8f0; }

.tree-month-header i.bi-chevron-down {
    transition: transform 0.2s;
    font-size: 0.8rem;
}

.tree-month.collapsed .tree-month-header i.bi-chevron-down {
    transform: rotate(-90deg);
}

.tree-month-files {
    list-style: none;
    padding: 0.5rem;
    margin: 0;
    background: white;
}

.tree-month.collapsed .tree-month-files {
    display: none;
}

.tree-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.35rem;
    transition: background 0.15s;
}

.tree-file:last-child { margin-bottom: 0; }
.tree-file:hover { background: #f7fafc; }

.tree-file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.tree-file-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tree-file-icon.pdf { background: #fee2e2; color: #dc2626; }
.tree-file-icon.word { background: #dbeafe; color: #2563eb; }
.tree-file-icon.excel { background: #d1fae5; color: #059669; }
.tree-file-icon.ppt { background: #ffedd5; color: #ea580c; }
.tree-file-icon.img { background: #f3e8ff; color: #9333ea; }
.tree-file-icon.default { background: #e2e8f0; color: #475569; }

.tree-file-meta {
    min-width: 0;
}

.tree-file-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.tree-file-details {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.tree-file-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}

.btn-icon-sm:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.btn-icon-sm.delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.35;
    display: block;
}

/* BADGE COUNT */
.month-badge {
    background: white;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* FOLDER SELECT */
#folderSelect {
    font-size: 0.88rem;
}

#folderSelect + .btn {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* SEARCH FILES */
.search-files-box {
    position: relative;
    max-width: 400px;
}

.search-files-box input {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    padding-left: 2.5rem;
}

.search-files-box i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* ADMIN PANEL TABLES */
.admin-table {
    width: 100%;
    font-size: 0.88rem;
}

.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0.5rem;
    text-align: left;
}

.admin-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* PROGRESS BAR MINI */
.progress-mini {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-mini-bar {
    height: 100%;
    background: var(--primary-light);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* EDIT MONTH BUTTON */
.btn-edit-month {
    opacity: 0;
    transition: opacity 0.15s;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.15rem 0.4rem;
    margin-left: 0.25rem;
    border-radius: 4px;
}

.tree-year-header:hover .btn-edit-month,
.tree-month-header:hover .btn-edit-month,
.tree-subfolder-header:hover .btn-edit-month {
    opacity: 1;
}

.btn-edit-month:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary);
}

/* DELETE EMPTY SECTION BUTTON */
.btn-delete-section {
    opacity: 0;
    transition: opacity 0.15s;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.15rem 0.4rem;
    margin-left: 0.25rem;
    border-radius: 4px;
}

.tree-year-header:hover .btn-delete-section,
.tree-month-header:hover .btn-delete-section,
.tree-subfolder-header:hover .btn-delete-section {
    opacity: 1;
}

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

/* RESPONSIVE - TABLETS */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .sidebar.show { transform: translateX(0); }
    .content-area { margin-left: 0; padding: 1.25rem; }
    .mobile-menu-btn { display: block; }
    .header-nav { display: none; }
    .tree-file-name { max-width: 220px; }
    .btn-edit-month { opacity: 1; }
    .btn-delete-section { opacity: 1; }
    
    .page-header {
        padding: 1rem 1.25rem;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .brand-logo {
        height: 52px;
        max-width: 260px;
    }
    
    .brand-text {
        font-size: 0.85rem;
    }
}

/* RESPONSIVE - MÓVILES */
@media (max-width: 576px) {
    .main-header {
        padding: 0 0.75rem;
        height: 70px;
    }
    
    .brand-logo {
        height: 45px;
        max-width: 210px;
        padding: 2px 6px;
    }
    
    .brand-text {
        display: none !important;
    }
    
    .mobile-menu-btn {
        font-size: 1.4rem;
        margin-right: 0.5rem;
    }
    
    .header-actions .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .content-area {
        padding: 0.75rem;
        min-height: calc(100vh - 60px);
    }
    
    .page-header {
        padding: 0.875rem 1rem;
        margin-bottom: 0.875rem;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .page-subtitle {
        font-size: 0.85rem;
    }
    
    .modern-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    .tree-year-header {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .tree-month-header {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .tree-file {
        padding: 0.5rem;
    }
    
    .tree-file-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    
    .tree-file-name {
        max-width: 140px;
        font-size: 0.85rem;
    }
    
    .tree-file-details {
        font-size: 0.72rem;
    }
    
    .btn-icon-sm {
        width: 30px;
        height: 30px;
    }
    
    .upload-zone {
        padding: 1.5rem 1rem;
    }
    
    .upload-zone i {
        font-size: 1.8rem;
    }
    
    .upload-zone h5 {
        font-size: 0.95rem;
    }
    
    .admin-table {
        font-size: 0.8rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.35rem;
    }
    
    .progress-mini {
        height: 6px;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 0.875rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .search-box input {
        height: 36px;
        font-size: 0.85rem;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .menu-group-header {
        padding: 0.65rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .submenu a {
        padding: 0.5rem 0.9rem 0.5rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .article-list a {
        padding: 0.6rem 0.9rem;
        font-size: 0.82rem;
    }
}

/* RESPONSIVE - MÓVILES PEQUEÑOS */
@media (max-width: 360px) {
    .brand-logo {
        height: 40px;
        max-width: 190px;
    }
    
    .tree-file-name {
        max-width: 110px;
    }
    
    .page-title {
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: var(--header-height); left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1015;
}

@media (max-width: 991px) {
    .sidebar-backdrop.show { display: block; }
}

/* TOAST */
.toast-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
}

/* SPINNER */
.spinner-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}
/* CARRUSEL DE INICIO - 1 IMAGEN POR SLIDE */
.carousel-card {
    padding: 1.25rem !important;
    background: transparent !important;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

#homeCarousel {
    border-radius: 8px;
    overflow: hidden;
}

/* Contenedor de imagen única - sin fondo azul */
.carousel-single-img {
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.carousel-single-img img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* Indicadores del carrusel */
#homeCarousel .carousel-indicators {
    bottom: 1rem;
}

/* Indicadores del carrusel - visibles sobre fondo claro */
#homeCarousel .carousel-indicators {
    bottom: 0.5rem;
    margin-bottom: 0;
}

#homeCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(30, 58, 95, 0.2);
    transition: all 0.3s ease;
}

#homeCarousel .carousel-indicators button.active {
    background-color: #1e3a5f;
    border-color: #1e3a5f;
    transform: scale(1.2);
}

/* Controles del carrusel - sobre fondo transparente */
#homeCarousel .carousel-control-prev,
#homeCarousel .carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.8;
}

#homeCarousel .carousel-control-prev:hover,
#homeCarousel .carousel-control-next:hover {
    background: white;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#homeCarousel .carousel-control-prev {
    left: 0.5rem;
}

#homeCarousel .carousel-control-next {
    right: 0.5rem;
}

#homeCarousel .carousel-control-prev-icon,
#homeCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
    filter: invert(40%) sepia(20%) saturate(800%) hue-rotate(180deg);
}

/* Animación de fade mejorada */
.carousel-fade .carousel-item {
    transition: opacity 0.6s ease-in-out;
}

/* Responsive del carrusel */
@media (max-width: 768px) {
    .carousel-card {
        padding: 1rem !important;
    }
    
    .carousel-single-img {
        height: 130px;
    }
    
    .carousel-single-img img {
        max-height: 130px;
    }
    
    #homeCarousel .carousel-control-prev,
    #homeCarousel .carousel-control-next {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .carousel-card {
        padding: 0.875rem !important;
    }
    
    .carousel-single-img {
        height: 120px;
    }
    
    .carousel-single-img img {
        max-height: 120px;
    }
    
    #homeCarousel .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    #homeCarousel .carousel-control-prev,
    #homeCarousel .carousel-control-next {
        width: 28px;
        height: 28px;
    }
}

/* VISTA PREVIA MODAL */
.preview-container {
    background: #f8f9fa;
    min-height: 400px;
    max-height: 70vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
}

.preview-container iframe {
    width: 100%;
    height: 65vh;
    border: none;
}

.preview-container .preview-not-available {
    text-align: center;
    padding: 3rem;
}

.preview-container .preview-not-available i {
    font-size: 4rem;
    color: #adb5bd;
}

.preview-file-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
}

.preview-file-icon.pdf { background: #fee2e2; color: #dc2626; }
.preview-file-icon.word { background: #dbeafe; color: #2563eb; }
.preview-file-icon.excel { background: #d1fae5; color: #059669; }
.preview-file-icon.img { background: #fef3c7; color: #d97706; }
.preview-file-icon.default { background: #f3f4f6; color: #6b7280; }

/* BANNER SOLICITUD DE INFORMACIÓN */
.info-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a73 50%, #1e3a5f 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 162, 39, 0.3);
    cursor: pointer;
}

.info-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3);
    border-color: rgba(201, 162, 39, 0.6);
}

.info-banner-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(201, 162, 39, 0.15);
    border: 2px solid rgba(201, 162, 39, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #c9a227;
    transition: all 0.3s ease;
}

.info-banner:hover .info-banner-icon {
    background: rgba(201, 162, 39, 0.25);
    border-color: #c9a227;
    transform: scale(1.05);
}

.info-banner-content {
    flex: 1;
    text-align: center;
}

.info-banner-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.info-banner-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
    font-weight: 400;
}

.info-banner-arrow {
    flex-shrink: 0;
    font-size: 2rem;
    color: #c9a227;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.info-banner:hover .info-banner-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Responsive del banner */
@media (max-width: 768px) {
    .info-banner {
        padding: 1rem 1.25rem;
    }
    
    .info-banner-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    .info-banner-title {
        font-size: 1.1rem;
    }
    
    .info-banner-subtitle {
        font-size: 0.8rem;
    }
    
    .info-banner-arrow {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .info-banner {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .info-banner-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .info-banner-title {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
    
    .info-banner-subtitle {
        font-size: 0.75rem;
    }
    
    .info-banner-arrow {
        font-size: 1.5rem;
    }
}

/* BANNERS CON ACCORDION */
.info-banner-accordion {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.info-banner-accordion:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Header del banner accordion */
.info-banner-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a73 50%, #1e3a5f 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.info-banner-accordion.active .info-banner-header {
    border-bottom-color: rgba(201, 162, 39, 0.5);
}

.info-banner-header:hover {
    background: linear-gradient(135deg, #234268 0%, #2f5282 50%, #234268 100%);
}

.info-banner-header-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(201, 162, 39, 0.15);
    border: 2px solid rgba(201, 162, 39, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #c9a227;
    transition: all 0.3s ease;
}

.info-banner-header:hover .info-banner-header-icon {
    background: rgba(201, 162, 39, 0.25);
    transform: scale(1.05);
}

.info-banner-header-content {
    flex: 1;
}

.info-banner-header-title {
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.info-banner-header-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

.info-banner-header-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.info-banner-header-toggle .accordion-icon {
    color: white;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.info-banner-accordion.active .info-banner-header-toggle .accordion-icon {
    transform: rotate(180deg);
}

/* Contenido del accordion */
.info-banner-content {
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

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

/* Secciones dentro del accordion */
.accordion-section {
    margin-bottom: 1.5rem;
}

.accordion-section:last-child {
    margin-bottom: 0;
}

.accordion-section-title {
    color: #1e3a5f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(201, 162, 39, 0.3);
}

.accordion-text {
    color: #4a5568;
    line-height: 1.7;
}

.accordion-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.accordion-text ul li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.accordion-text ul li::before {
    content: "•";
    color: #c9a227;
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
    font-size: 1.2rem;
    line-height: 1;
}

.accordion-divider {
    border-color: rgba(30, 58, 95, 0.1);
    margin: 1.5rem 0;
}

/* Contenedor de video */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Sección de documentos mayas */
.mayan-docs-list {
    margin-bottom: 1rem;
}

.mayan-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.mayan-doc-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(201, 162, 39, 0.4);
}

.mayan-doc-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mayan-doc-icon {
    width: 44px;
    height: 44px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mayan-doc-details h6 {
    margin: 0;
    color: #1e3a5f;
    font-weight: 600;
}

.mayan-doc-details .badge {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.mayan-doc-actions {
    display: flex;
    gap: 0.5rem;
}

.mayan-upload-section {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.accordion-subtitle {
    color: #1e3a5f;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive de banners accordion */
@media (max-width: 768px) {
    .info-banner-header {
        padding: 1rem 1.25rem;
    }
    
    .info-banner-header-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
    
    .info-banner-header-title {
        font-size: 1rem;
    }
    
    .info-banner-header-subtitle {
        font-size: 0.8rem;
    }
    
    .info-banner-content {
        padding: 1.25rem;
    }
    
    .accordion-section-title {
        font-size: 1rem;
    }
    
    .mayan-doc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .mayan-doc-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .info-banner-header {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .info-banner-header-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .info-banner-header-title {
        font-size: 0.9rem;
    }
    
    .info-banner-header-subtitle {
        font-size: 0.75rem;
    }
    
    .info-banner-header-toggle {
        width: 32px;
        height: 32px;
    }
    
    .info-banner-header-toggle .accordion-icon {
        font-size: 1.1rem;
    }
    
    .info-banner-content {
        padding: 1rem;
    }
}

/* BANNER DE CONTACTO / HORARIO DE ATENCIÓN */
.contact-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a73 50%, #1e3a5f 100%);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.25);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.contact-banner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-banner-header i {
    font-size: 1.5rem;
    color: #c9a227;
}

.contact-banner-header span {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: rgba(201, 162, 39, 0.3);
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #c9a227;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(201, 162, 39, 0.25);
    transform: scale(1.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.contact-extension {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-link {
    color: #c9a227;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: #d4b43a;
    text-decoration: underline;
}

/* Responsive del banner de contacto */
@media (max-width: 991px) {
    .contact-banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-banner {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-banner {
        padding: 1rem;
    }
    
    .contact-banner-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .contact-banner-header span {
        font-size: 1rem;
    }
    
    .contact-banner-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .contact-item {
        padding: 0.875rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
}

/* UPLOAD OPTIONS - Selector archivos/carpeta */
.upload-options .btn-group {
    border-radius: 8px;
    overflow: hidden;
}

.upload-options .btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.upload-options .btn-check:checked + .btn {
    background-color: #1e3a5f;
    border-color: #1e3a5f;
}

/* SELECTED FILES LIST */
.selected-files-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    background: #f8f9fa;
}

.selected-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.selected-file-item:last-child {
    margin-bottom: 0;
}

.selected-file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.selected-file-icon {
    color: #6c757d;
    flex-shrink: 0;
}

.selected-file-name {
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-file-path {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-file-size {
    font-size: 0.75rem;
    color: #6c757d;
    flex-shrink: 0;
}

.selected-file-remove {
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.selected-file-remove:hover {
    background: #fee2e2;
}

/* Folder badge */
.folder-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #e7f3ff;
    color: #1e3a5f;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 576px) {
    .upload-options .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .selected-files-container {
        max-height: 150px;
    }
    
    .selected-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ==================== SUBCARPETAS ==================== */
.tree-subfolder {
    list-style: none;
    margin: 0.25rem 0;
    border-left: 2px solid #e9ecef;
    padding-left: 0.5rem;
}

.tree-subfolder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    background: #f8f9fa;
    margin-bottom: 0.25rem;
}

.tree-subfolder-header:hover {
    background: #e9ecef;
}

.tree-subfolder-header i.bi-folder-symlink {
    font-size: 1rem;
}

.tree-subfolder.collapsed .tree-subfolder-files {
    display: none;
}

.tree-subfolder-files {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
}



/* Badge para subcarpetas */
.subfolder-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #e7f3ff;
    color: #1e3a5f;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.subfolder-badge i {
    font-size: 0.6rem;
}

/* Ajuste de indentación para archivos en subcarpetas */
.tree-subfolder .tree-file {
    margin-left: 0.5rem;
    border-left: 1px dashed #dee2e6;
    padding-left: 0.75rem;
}

/* Responsive para subcarpetas */
@media (max-width: 768px) {
    .tree-subfolder {
        padding-left: 0.25rem;
    }
    
    .tree-subfolder-header {
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .tree-subfolder-files {
        padding-left: 0.5rem;
    }
}

/* ==================== BOTÓN ELIMINAR EN SUBCARPETAS ==================== */
.tree-subfolder-header .btn-delete-section {
    opacity: 0;
    transition: opacity 0.2s;
    padding: 0.15rem 0.35rem;
    font-size: 0.75rem;
    background: transparent;
    border: none;
    color: #dc3545;
    border-radius: 4px;
}

.tree-subfolder-header:hover .btn-delete-section {
    opacity: 1;
}

.tree-subfolder-header .btn-delete-section:hover {
    background: #fee2e2;
}

/* Mejoras visuales para drag & drop */
.upload-zone.dragover-folder {
    background: #e7f3ff;
    border-color: #1e3a5f;
    border-style: dashed;
}

.upload-zone.dragover-folder i {
    color: #1e3a5f;
    transform: scale(1.1);
}
.tree-subfolder-files {
    transition: opacity 0.2s ease;
}

/* ==================== SELECTOR DE ICONOS ==================== */
.icon-option {
    display: block;
    cursor: pointer;
    margin: 0;
}

.icon-option input {
    display: none;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s;
    background: white;
}

.icon-box i {
    font-size: 1.5rem;
}

.icon-option input:checked + .icon-box {
    border-color: #1e3a5f;
    background: #e7f3ff;
}

.icon-option:hover .icon-box {
    border-color: #1e3a5f;
}

/* ==================== OCULTAR BOTONES DE ADMIN PARA VISITANTES ==================== */

/* 
 * Los botones de admin se manejan por JavaScript - no se renderizan en el DOM
 * si el usuario no es admin (usando: ${isAdmin ? '...' : ''})
 * 
 * Esta clase es un fallback de seguridad adicional
 */
.admin-only {
    display: none !important;
}

/* Cuando el body tiene la clase 'is-admin', mostrar elementos de admin */
body.is-admin .admin-only {
    display: inline-block !important;
}

/* En móvil, los botones de admin siempre visibles para facilitar uso (si es admin) */
@media (max-width: 991px) {
    body.is-admin .admin-only {
        display: inline-block !important;
        opacity: 1 !important;
    }
}

/* ==================== OCULTAR BOTÓN ADMIN ==================== */
#loginBtn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* ============================================
   GESTIÓN DE USUARIOS
   ============================================ */
#usersTable {
    font-size: 0.9rem;
}

#usersTable th {
    font-weight: 600;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
}

#usersTable td {
    padding: 0.75rem;
    vertical-align: middle;
}

#usersTable .badge {
    font-size: 0.75rem;
}

#usersTable .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

#usersManagementContainer {
    max-height: 500px;
    overflow-y: auto;
}

/* ============================================
   INDICADOR DE USUARIOS CONECTADOS
   ============================================ */
.online-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.online-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

#onlineUsersCount {
    font-variant-numeric: tabular-nums;
}


/* ============================================
   CARRUSEL CON ENLACES
   ============================================ */

/* Contenedor principal - sin altura fija para adaptarse a la imagen */
.carousel-single-img {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 10px 0;
}

/* El enlace debe ajustarse al tamaño de la imagen */
.carousel-single-img a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.carousel-single-img a:hover {
    transform: scale(1.02);
}

/* La imagen mantiene su tamaño original, solo se limita al contenedor */
.carousel-single-img img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Ocultar el caption completamente */
.carousel-caption {
    display: none !important;
}

/* Cursor pointer en imágenes con enlace */
.carousel-item .carousel-single-img a {
    cursor: pointer;
}

/* Tabla de admin del carrusel */
#carouselTable img {
    transition: transform 0.2s ease;
}

#carouselTable img:hover {
    transform: scale(1.1);
}

#carouselImagePreview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

#carouselImagePreview img {
    max-height: 150px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--primary-color, #1e3a5f);
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    margin-top: auto;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.main-footer p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 576px) {
    .main-footer {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}
