/* ===================================
   CURSOS CATÓLICOS - TEMA PRINCIPAL
   Colores inspirados en la Iglesia Católica
   =================================== */

:root {
    /* Colores principales - Inspirados en la liturgia católica */
    --color-primary: #7b2d26;
    --color-primary-dark: #5a1f1a;
    --color-primary-light: #a04038;
    --color-secondary: #c4a265;
    --color-secondary-light: #d4b87a;
    --color-secondary-dark: #a8874d;
    --color-accent: #1a3a5c;
    --color-accent-light: #2a5a8c;
    --color-bg: #faf8f5;
    --color-bg-alt: #f0ece4;
    --color-surface: #ffffff;
    --color-text: #2d2a26;
    --color-text-light: #6b6560;
    --color-text-muted: #9e9890;
    --color-border: #e5ddd4;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(123, 45, 38, 0.92) 0%, rgba(26, 58, 92, 0.88) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary-light) 100%);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVBAR ===== */
.navbar-catholic {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 3px solid var(--color-secondary);
}

.navbar-catholic .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-catholic .navbar-brand .brand-icon {
    font-size: 1.8rem;
    color: var(--color-secondary);
}

.navbar-catholic .nav-link {
    font-weight: 500;
    color: var(--color-text) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.navbar-catholic .nav-link:hover,
.navbar-catholic .nav-link.active {
    color: var(--color-primary) !important;
    background-color: rgba(123, 45, 38, 0.06);
}

.navbar-catholic .nav-link.active {
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-hero), url('https://images.unsplash.com/photo-1548625149-fc4a29cf7092?w=1600&h=800&fit=crop') center/cover no-repeat;
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 162, 101, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section h1 span {
    color: var(--color-secondary-light);
}

.hero-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary-light);
    display: block;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== BUTTONS ===== */
.btn-catholic {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-catholic:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 45, 38, 0.3);
    color: #fff;
}

.btn-catholic-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-catholic-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.btn-gold {
    background: var(--gradient-gold);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 162, 101, 0.35);
    color: #fff;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-dark {
    background: var(--gradient-primary);
    color: #fff;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

.section-dark .section-title {
    color: #fff;
}

.section-dark .section-title span {
    color: var(--color-secondary-light);
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== COURSE CARD ===== */
.course-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.course-card .card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.course-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.course-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.course-card .badge-free {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-card .badge-featured {
    background: var(--gradient-gold);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-card .badge-category {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.course-card .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card .card-description {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card .card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.course-card .card-meta i {
    color: var(--color-secondary);
    margin-right: 3px;
}

.course-card .card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-card .card-rating .stars {
    color: var(--color-secondary);
    font-size: 0.85rem;
}

.course-card .card-footer-custom {
    padding: 0.75rem 1.25rem;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
}

.course-card .card-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.course-card .card-instructor img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.course-card .card-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.course-card .card-price.free {
    color: #28a745;
}

/* ===== CAREER COURSE CARD PREMIUM STYLES ===== */
.course-card.carrera-style {
    border: 1px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.08);
}

.course-card.carrera-style:hover {
    box-shadow: 0 12px 30px rgba(201, 168, 76, 0.2);
    border-color: rgba(201, 168, 76, 0.6);
}

.course-card.carrera-style .card-price.carrera-price {
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.carrera-badge-price {
    background: rgba(201, 168, 76, 0.12);
    color: #c9a84c;
    border: 1px solid rgba(201, 168, 76, 0.35);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

/* ===== CATEGORY CARD ===== */
.category-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--color-border);
    cursor: pointer;
    height: 100%;
}

.category-card.with-bg {
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem;
    border: none;
}

.category-card.with-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transition: var(--transition-normal);
}

.category-card.with-bg:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

.category-card .category-content {
    position: relative;
    z-index: 2;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.category-card .category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(123, 45, 38, 0.1), rgba(196, 162, 101, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--color-primary);
    transition: var(--transition-normal);
}

.category-card.with-bg .category-icon {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.category-card:hover .category-icon {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.category-card h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.category-card.with-bg h5,
.category-card.with-bg p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    height: 100%;
    backdrop-filter: blur(10px);
}

.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--color-secondary-light);
    margin-bottom: 1rem;
}

.testimonial-card .testimonial-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-card .testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-secondary);
}

.testimonial-card .author-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.testimonial-card .author-course {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.testimonial-card .testimonial-stars {
    color: var(--color-secondary-light);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

/* ===== COURSE DETAIL PAGE ===== */
.course-detail-hero {
    background: var(--gradient-hero), url('https://images.unsplash.com/photo-1548625149-fc4a29cf7092?w=1600&h=600&fit=crop') center/cover;
    padding: 4rem 0 3rem;
    color: #fff;
}

.course-detail-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.course-detail-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.course-detail-hero .breadcrumb-item.active {
    color: var(--color-secondary-light);
}

.course-detail-hero .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.course-detail-hero h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.course-detail-hero .course-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.course-detail-hero .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.course-detail-hero .meta-item i {
    color: var(--color-secondary-light);
    font-size: 1.1rem;
}

.course-sidebar {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.course-sidebar .sidebar-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.course-sidebar .sidebar-body {
    padding: 1.5rem;
}

.course-sidebar .price-tag {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.course-sidebar .price-tag.free {
    color: #28a745;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
    border: 1px solid var(--color-border);
}

.lesson-item:hover {
    background: var(--color-bg-alt);
}

.lesson-item .lesson-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.lesson-item .lesson-info {
    flex: 1;
}

.lesson-item .lesson-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 2px;
}

.lesson-item .lesson-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lesson-item .lesson-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    font-weight: 500;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.filter-bar .form-control,
.filter-bar .form-select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(123, 45, 38, 0.1);
}

/* ===== FOOTER ===== */
.footer-catholic {
    background: linear-gradient(135deg, #1a1512 0%, #2d2520 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0;
}

.footer-catholic h5 {
    font-family: var(--font-heading);
    color: var(--color-secondary-light);
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-catholic p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-catholic ul {
    list-style: none;
    padding: 0;
}

.footer-catholic ul li {
    margin-bottom: 0.5rem;
}

.footer-catholic ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-catholic ul li a:hover {
    color: var(--color-secondary-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    color: var(--color-secondary-light);
    font-size: 1.5rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-gold);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-cta {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* ===== DIFFICULTY BADGES ===== */
.badge-difficulty {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-principiante {
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
}

.badge-intermedio {
    background: rgba(255, 193, 7, 0.15);
    color: #d4a106;
}

.badge-avanzado {
    background: rgba(123, 45, 38, 0.12);
    color: var(--color-primary);
}

/* ===== LOADING SPINNER ===== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== DECORATIVE CROSS ===== */
.decorative-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0 1rem;
}

.decorative-divider::before,
.decorative-divider::after {
    content: '';
    height: 2px;
    width: 40px;
    background: var(--color-secondary);
}

.decorative-divider i {
    color: var(--color-secondary);
    font-size: 0.8rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--gradient-hero), url('https://images.unsplash.com/photo-1548625149-fc4a29cf7092?w=1600&h=400&fit=crop') center/cover;
    padding: 3rem 0;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* ===== ABOUT FEATURES ===== */
.feature-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(123, 45, 38, 0.1), rgba(196, 162, 101, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 420px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .course-detail-hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-stat .stat-number {
        font-size: 1.5rem;
    }
}

/* ===== NAV PROFILE DROPDOWN ===== */
.nav-profile-dropdown {
    position: relative;
}

.nav-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    color: var(--color-text);
}

.nav-avatar-btn:hover {
    background: rgba(123, 45, 38, 0.06);
}

.nav-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-secondary);
}

.nav-avatar-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
}

.nav-avatar-chevron {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
}

.profile-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 280px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
    z-index: 1070;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(123, 45, 38, 0.04), rgba(196, 162, 101, 0.04));
}

.dropdown-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-secondary);
}

.dropdown-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.dropdown-user-email {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0;
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-fast);
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
}

.dropdown-item-custom:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.dropdown-item-custom i {
    width: 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.dropdown-item-custom:hover i {
    color: var(--color-primary);
}

.dropdown-logout {
    color: #dc3545;
}

.dropdown-logout:hover {
    background: rgba(220, 53, 69, 0.05);
    color: #dc3545;
}

.dropdown-logout i {
    color: #dc3545;
}

/* ===== PROFILE PAGE ===== */
.profile-header-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-secondary);
    flex-shrink: 0;
}

.profile-header-info h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.profile-email {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.profile-header-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.82rem;
    color: var(--color-text-light);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 0.35rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.profile-tab {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    text-align: center;
    font-family: var(--font-body);
}

.profile-tab:hover {
    color: var(--color-primary);
    background: rgba(123, 45, 38, 0.04);
}

.profile-tab.active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

/* Profile Section Card */
.profile-section-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: 1.25rem;
}

.profile-section-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

/* Profile Form */
.profile-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.profile-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    transition: var(--transition-fast);
}

.profile-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(123, 45, 38, 0.1);
}

.profile-textarea {
    resize: vertical;
    min-height: 80px;
}

.profile-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
    display: block;
}

.profile-action-bar {
    margin-top: 1.25rem;
}

/* Alerts */
.alert-success-custom {
    display: flex;
    align-items: center;
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.25);
    color: #28a745;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: dropdownFadeIn 0.3s ease;
}

.alert-error-custom {
    display: flex;
    align-items: center;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.25);
    color: #dc3545;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sessions */
.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.session-info {
    display: flex;
    align-items: center;
    color: var(--color-text-light);
}

.session-info i {
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.session-device {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text);
}

.session-detail {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.session-active-badge {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Payment Methods */
.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.payment-card-icon {
    width: 48px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: 6px;
    font-size: 1.3rem;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.payment-card-info {
    flex: 1;
}

.payment-card-type {
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-default-badge {
    background: rgba(123, 45, 38, 0.08);
    color: var(--color-primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.payment-card-expiry {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.payment-remove-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.payment-remove-btn:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.payment-empty {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
}

.payment-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.btn-add-payment {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 2px dashed var(--color-border);
    color: var(--color-text-muted);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.btn-add-payment:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Notification Toggles */
.notification-options {
    display: flex;
    flex-direction: column;
}

.notification-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.notification-option:last-child {
    border-bottom: none;
}

.notification-option-title {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.notification-option-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--color-border);
    border-radius: 26px;
    transition: var(--transition-fast);
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--color-primary);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

/* Profile Responsive */
@media (max-width: 992px) {
    .profile-dropdown-menu {
        position: fixed;
        left: 50%;
        right: auto;
        top: auto;
        bottom: 1rem;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 360px;
        border-radius: var(--radius-lg);
    }

    @keyframes dropdownFadeIn {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
}

@media (max-width: 768px) {
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-header-stats {
        justify-content: center;
    }

    .profile-tabs {
        gap: 0;
    }

    .profile-tab {
        padding: 0.55rem 0.6rem;
        font-size: 0.78rem;
    }
}

/* ===== NAV PROFILE LINK ===== */
.nav-profile-link {
    position: relative;
}

.nav-profile-link i.bi-person-circle {
    font-size: 1.15rem;
}

/* ===== PROGRESS BAR ===== */
.progress-section {
    margin: 1rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.progress-percentage {
    font-weight: 600;
    color: var(--color-primary);
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.progress-bar-fill.completed {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.progress-detail {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

/* ===== PROFILE / MIS CURSOS PAGE ===== */
.profile-stats-bar {
    display: flex;
    gap: 2rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.profile-stat {
    text-align: center;
    flex: 1;
}

.profile-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.profile-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ===== ENROLLED COURSE CARD ===== */
.enrolled-course-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.enrolled-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.enrolled-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.enrolled-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.enrolled-badge-completed {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.enrolled-badge-progress {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.enrolled-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.enrolled-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-secondary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.enrolled-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.enrolled-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.enrolled-instructor img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.enrolled-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-unenroll {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-unenroll:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(123, 45, 38, 0.1), rgba(196, 162, 101, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--color-primary);
}

.empty-state h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* ===== LEARNING PAGE LAYOUT ===== */
.learning-layout {
    display: flex;
    min-height: calc(100vh - 62px);
    background: var(--color-bg);
}

.learning-sidebar {
    width: 360px;
    min-width: 360px;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 62px);
    position: sticky;
    top: 62px;
    overflow-y: auto;
    transition: var(--transition-normal);
}

.learning-sidebar.collapsed {
    width: 0;
    min-width: 0;
    overflow: hidden;
    border: none;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    position: relative;
}

.sidebar-course-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    padding-right: 2rem;
    color: var(--color-text);
}

.sidebar-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.sidebar-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.sidebar-toggle:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* ===== LESSON NAVIGATION ===== */
.lesson-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.lesson-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
    font-family: var(--font-body);
}

.lesson-nav-item:hover {
    background: var(--color-bg);
}

.lesson-nav-item.active {
    background: rgba(123, 45, 38, 0.06);
    border-left-color: var(--color-primary);
}

.lesson-nav-item.completed .lesson-nav-status i {
    color: #28a745;
}

.lesson-nav-item.active .lesson-nav-status i {
    color: var(--color-primary);
}

.lesson-nav-status {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.lesson-nav-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.lesson-nav-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lesson-nav-item.completed .lesson-nav-title {
    color: var(--color-text-light);
}

.lesson-nav-item.active .lesson-nav-title {
    color: var(--color-primary);
    font-weight: 600;
}

.lesson-nav-meta {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.lesson-nav-info {
    flex: 1;
    min-width: 0;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== TOPIC NAVIGATION (NEW) ===== */
.topic-nav-list {
    margin-left: 3rem;
    padding: 0.25rem 0 0.75rem 0.75rem;
    border-left: 1px dashed var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topic-nav-item {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.topic-nav-item:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.topic-nav-item.active {
    background: var(--color-primary);
    color: #fff !important;
    font-weight: 500;
}

.topic-nav-item.active i {
    color: #fff !important;
}

/* ===== TOPIC CONTENT (NEW) ===== */
.topic-content {
    animation: fadeIn 0.4s ease-out;
}

.topic-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.topic-text-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--color-text);
}

.topic-video-container {
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sidebar-back-link {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.sidebar-back-link:hover {
    color: var(--color-primary);
}

/* ===== LEARNING CONTENT ===== */
.learning-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.learning-topbar {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
}

.sidebar-toggle-mobile {
    border: 1px solid var(--color-border);
    background: transparent;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.sidebar-toggle-mobile:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    flex: 1;
    min-width: 0;
}

.topbar-breadcrumb a {
    color: var(--color-text-muted);
}

.topbar-breadcrumb a:hover {
    color: var(--color-primary);
}

.topbar-breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text);
    font-weight: 500;
}

.topbar-breadcrumb i {
    font-size: 0.65rem;
    color: var(--color-border);
}

.topbar-progress {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

/* ===== LESSON CONTENT AREA ===== */
.lesson-content-area {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.lesson-header {
    margin-bottom: 2rem;
}

.lesson-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.lesson-type-badge {
    background: rgba(123, 45, 38, 0.08);
    color: var(--color-primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.lesson-duration,
.lesson-order {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
}

.lesson-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.lesson-description {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===== LESSON BODY PLACEHOLDERS ===== */
.lesson-placeholder {
    border-radius: var(--radius-md);
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--color-border);
    margin-bottom: 2rem;
}

.lesson-placeholder .placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.lesson-placeholder h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.lesson-placeholder p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.lesson-placeholder .placeholder-meta {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.video-placeholder {
    background: linear-gradient(135deg, rgba(123, 45, 38, 0.03), rgba(26, 58, 92, 0.05));
}

.video-placeholder .placeholder-icon {
    color: var(--color-primary);
}

.reading-placeholder {
    background: linear-gradient(135deg, rgba(196, 162, 101, 0.05), rgba(123, 45, 38, 0.03));
}

.reading-placeholder .placeholder-icon {
    color: var(--color-secondary-dark);
}

.quiz-placeholder {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.05), rgba(123, 45, 38, 0.03));
}

.quiz-placeholder .placeholder-icon {
    color: var(--color-accent);
}

.activity-placeholder {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.03));
}

.activity-placeholder .placeholder-icon {
    color: #28a745;
}

/* ===== LESSON ACTIONS ===== */
.lesson-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.lesson-completed-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.lesson-action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.btn-lesson-nav {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.btn-lesson-nav:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(123, 45, 38, 0.04);
}

.course-completed-message {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(196, 162, 101, 0.15), rgba(123, 45, 38, 0.1));
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
}

.course-completed-message i {
    color: var(--color-secondary);
    font-size: 1.2rem;
}

/* ===== DIFFICULTY BADGES ===== */
.badge-difficulty {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-principiante {
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
}

.badge-intermedio {
    background: rgba(253, 126, 20, 0.12);
    color: #e67e22;
}

.badge-avanzado {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

/* ===== RESPONSIVE LEARNING ===== */
@media (max-width: 992px) {
    .learning-sidebar {
        position: fixed;
        left: 0;
        top: 62px;
        z-index: 999;
        box-shadow: var(--shadow-xl);
    }

    .learning-sidebar.collapsed {
        left: -360px;
        width: 360px;
        min-width: 360px;
    }

    .sidebar-toggle-mobile {
        display: block;
    }

    .profile-stats-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .learning-sidebar {
        width: 100%;
        min-width: 100%;
    }

    .learning-sidebar.collapsed {
        left: -100%;
        width: 100%;
        min-width: 100%;
    }

    .lesson-content-area {
        padding: 1rem;
    }

    .lesson-header h2 {
        font-size: 1.4rem;
    }

    .lesson-action-buttons {
        flex-direction: column;
    }

    .profile-stats-bar {
        flex-direction: column;
        text-align: center;
    }
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Ha ocurrido un error."
}

/* ===== AUTH PAGES (LOGIN / REGISTER) ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 0;
}

.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: var(--color-surface);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.auth-panel-left {
    flex: 0 0 42%;
    position: relative;
    background: var(--gradient-hero), url('https://images.unsplash.com/photo-1548625149-fc4a29cf7092?w=800&h=1200&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(123, 45, 38, 0.1) 0%, rgba(26, 58, 92, 0.15) 100%);
}

.auth-panel-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    color: #fff;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.auth-brand i {
    font-size: 2rem;
    color: var(--color-secondary-light);
}

.auth-panel-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-panel-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-feature i {
    color: var(--color-secondary-light);
    font-size: 1.1rem;
}

.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(123, 45, 38, 0.1), rgba(196, 162, 101, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.8rem;
    color: var(--color-primary);
}

.auth-form-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.auth-form-header p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Steps */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.75rem;
}

.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.auth-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: var(--transition-normal);
}

.auth-step.active .step-number {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.auth-step.completed .step-number {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.auth-step .step-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.auth-step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

.auth-step-line {
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin: 0 0.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.auth-step-line.active {
    background: var(--color-primary);
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    animation: authSlideDown 0.3s ease;
}

.auth-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

@keyframes authSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-step-content {
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-input-row {
    display: flex;
    gap: 1rem;
}

.auth-input-row .auth-input-group {
    flex: 1;
}

.auth-input-group {
    margin-bottom: 1.25rem;
}

.auth-input-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.optional-label {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrapper>i:first-child {
    position: absolute;
    left: 14px;
    color: var(--color-text-muted);
    font-size: 1rem;
    z-index: 1;
    transition: var(--transition-fast);
}

.auth-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    transition: var(--transition-fast);
    outline: none;
}

.auth-input-wrapper select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: var(--transition-fast);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%), linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.auth-input-wrapper input:focus {
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(123, 45, 38, 0.08);
}

.auth-input-wrapper select:focus {
    border-color: var(--color-primary);
    background-color: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(123, 45, 38, 0.08);
    background-image: linear-gradient(45deg, transparent 50%, var(--color-primary) 50%), linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
}

.auth-input-wrapper input:focus+i:first-child,
.auth-input-wrapper input:focus~i:first-child {
    color: var(--color-primary);
}

.auth-input-wrapper:focus-within>i:first-child {
    color: var(--color-primary);
}

.auth-input-wrapper input::placeholder {
    color: var(--color-text-muted);
}

.auth-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.auth-toggle-password:hover {
    color: var(--color-primary);
}

/* Options row */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--color-text-light);
    cursor: pointer;
    user-select: none;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.auth-link {
    font-size: 0.88rem;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.auth-link-bold {
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.auth-link-bold:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Submit button */
.auth-submit-btn {
    width: 100%;
    padding: 0.85rem 2rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition-normal);
    margin-bottom: 1.25rem;
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 45, 38, 0.3);
}

.auth-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-back-btn {
    padding: 0.85rem 1.5rem;
    background: var(--color-bg-alt);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.auth-back-btn:hover {
    background: var(--color-border);
}

.auth-btn-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.auth-btn-row .auth-submit-btn {
    flex: 1;
    margin-bottom: 0;
}

/* Spinner */
.auth-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: authSpin 0.8s linear infinite;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* Social buttons */
.auth-social-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.auth-social-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.auth-social-btn:hover:not(:disabled) {
    background: var(--color-bg-alt);
    border-color: var(--color-text-muted);
}

.auth-social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-social-btn i {
    font-size: 1.1rem;
}

/* Footer text */
.auth-footer-text {
    text-align: center;
    font-size: 0.92rem;
    color: var(--color-text-light);
}

/* Demo hint */
.auth-demo-hint {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(196, 162, 101, 0.1), rgba(123, 45, 38, 0.08));
    border: 1px dashed var(--color-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
}

.auth-demo-hint i {
    color: var(--color-secondary);
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-container {
        flex-direction: column;
        min-height: auto;
    }

    .auth-panel-left {
        flex: none;
        min-height: 280px;
        padding: 2rem 0;
    }

    .auth-panel-content h2 {
        font-size: 1.8rem;
    }

    .auth-panel-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .auth-features {
        display: none;
    }

    .auth-panel-right {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-panel-left {
        min-height: 200px;
    }

    .auth-panel-content {
        padding: 1.5rem;
    }

    .auth-panel-content h2 {
        font-size: 1.5rem;
    }

    .auth-input-row {
        flex-direction: column;
        gap: 0;
    }

    .auth-form-header h1 {
        font-size: 1.5rem;
    }

    .auth-social-buttons {
        flex-direction: column;
    }
}

/* =====================================================
   Material de Apoyo — Student Learning View
   ===================================================== */
.apoyo-files-section {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.apoyo-files-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apoyo-file-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-fast);
    margin-bottom: 0.5rem;
}

.apoyo-file-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(123, 45, 38, 0.04);
    text-decoration: none;
}

.apoyo-file-link:last-child {
    margin-bottom: 0;
}

/* =====================================================
   Music Floating Player (YouTube)
   ===================================================== */

/* --- Floating Action Button (FAB) --- */
.music-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.music-fab:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(201, 168, 76, 0.5);
}

.music-fab.active {
    transform: scale(0.95);
}

.music-fab-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c 0%, #e3c97a 50%, #8b6914 100%);
    animation: musicPulse 3s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
    50%      { box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
}

.music-fab-icon {
    width: 28px;
    height: 28px;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Equalizer bars animation */
.music-fab-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.music-fab-bars span {
    display: block;
    width: 4px;
    background: #fff;
    border-radius: 2px;
    animation: eqBar 0.8s ease-in-out infinite;
}

.music-fab-bars span:nth-child(1) { height: 8px;  animation-delay: 0s;    }
.music-fab-bars span:nth-child(2) { height: 16px; animation-delay: 0.15s;  }
.music-fab-bars span:nth-child(3) { height: 11px; animation-delay: 0.3s;   }

@keyframes eqBar {
    0%, 100% { transform: scaleY(0.4); }
    50%      { transform: scaleY(1);   }
}

/* --- Backdrop --- */
.music-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.music-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- Panel --- */
.music-panel {
    position: fixed;
    bottom: 96px;
    right: 20px;
    width: 400px;
    max-height: calc(100vh - 140px);
    background: rgba(18, 18, 18, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 168, 76, 0.1);
    display: flex;
    flex-direction: column;
    
    /* CSS Hidden State */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

/* --- Panel Header --- */
.music-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.12) 0%, transparent 100%);
}

.music-panel-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-panel-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.2;
}

.music-panel-subtitle {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.music-panel-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.music-panel-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* --- Panel Body --- */
.music-panel-body {
    padding: 14px 16px;
    overflow-y: auto;
    flex: 1;
}

/* Playlist Tabs */
.music-playlist-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.music-playlist-tabs::-webkit-scrollbar { display: none; }

.music-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.music-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.music-tab.active {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #000;
}

.music-tab i {
    font-size: 0.8rem;
}

/* Track description */
.music-track-desc {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

.music-track-desc i {
    color: #e3c97a;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Embed container */
.music-embed-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Brand icon */
.music-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #c9a84c, #8b6914);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

/* Info tip */
.music-panel-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.music-panel-tip i {
    color: #e3c97a;
    margin-top: 1px;
    flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .music-panel {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 90px;
    }

    .music-fab {
        bottom: 20px;
        right: 20px;
    }
}

/* ===== TESTIMONIALS & RATING PRO ===== */
.star-rating-input i {
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0 2px;
}

.star-rating-input i:hover {
    transform: scale(1.2);
}

.testimonial-card {
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}

.rating-stars i {
    margin-right: 1px;
}

.btn-catholic-sm {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.btn-catholic-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 45, 38, 0.2);
    color: #fff;
}

.rating-bars .progress {
    background-color: #f0f0f0;
    border-radius: 10px;
}

/* Glassmorphism for forms */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== PROFILE AVATAR HOVER OVERLAY ===== */
.profile-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--color-secondary);
}

.profile-avatar-wrapper:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    border-radius: 50%;
}

.sidebar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

