/* --- Variables de Diseño --- */
:root {
    --sidebar-bg: #2d2926;
    --sidebar-text: #ffffff;
    --sidebar-hover: #3e3a37;
    --accent-color: #1d3e6d; /* Navy del logo */
    --bg-light: #f8f9fa;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* --- General --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: #333;
    padding-top: 60px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    z-index: 1030;
    background-color: #fff !important;
    border-bottom: 1px solid #e0e0e0;
    color: #333 !important;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

header h1 {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--sidebar-bg);
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 20px 0;
    background-color: var(--sidebar-bg);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    color: #888;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.nav-link i {
    font-size: 1.1rem;
    margin-right: 12px;
}

.nav-link:hover {
    color: #fff;
    background-color: var(--sidebar-hover);
}

.nav-link.active {
    color: #fff;
    background-color: var(--sidebar-hover);
    border-left-color: var(--accent-color);
}

/* --- Search Box --- */
#search-box {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 6px;
}

#search-box::placeholder {
    color: rgba(255,255,255,0.4);
}

#search-box:focus {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
    box-shadow: none;
}

/* --- Grid de Prácticas --- */
main {
    padding-top: 20px;
}

.card {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.card-title {
    font-weight: 700;
    color: #2d2926;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    border-radius: 6px;
}

.bg-primary { background-color: var(--accent-color) !important; }
.bg-success { background-color: #28a745 !important; }

/* --- Modal --- */
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--sidebar-bg);
}

.modal-body {
    background-color: #fff;
    padding: 0;
}

.modal-footer {
    background-color: var(--bg-light);
    border-top: 1px solid #eee;
    padding: 1.5rem;
}

/* --- Rating Stars --- */
#rating-stars .star {
    font-size: 1.8rem;
    color: #ddd;
    margin-right: 4px;
}

#rating-stars .star.filled {
    color: #ffc107 !important;
}

/* --- Feedback Section --- */
.comment-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* --- Mobile Fixes --- */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
        box-shadow: none;
    }
    main {
        margin-left: 0 !important;
    }
    body {
        padding-top: 0;
    }
    header {
        position: static;
        height: auto;
        padding: 10px 0;
    }
}