/* Variables de colores elegantes para Iglesia Virtual Arka de Dios - Nueva Paleta */
:root {
    /* Colores principales - Azul petróleo y azul noche */
    --primary-teal: #264654;
    --primary-navy: #1A374D;
    --primary-dark: #0F2027;
    --primary-medium: #335566;
    --primary-light: #4A7A8A;
    
    /* Dorado suave elegante */
    --secondary-gold: #F4A261;
    --secondary-gold-light: #F9B775;
    --secondary-gold-dark: #E8954D;
    --secondary-gold-pale: #FDF4E8;
    
    /* Acentos - Terracota y Verde oliva */
    --accent-terracotta: #E76F51;
    --accent-terracotta-light: #EB8A75;
    --accent-terracotta-dark: #D64A2B;
    --accent-olive: #2A9D8F;
    --accent-olive-light: #52B7A9;
    --accent-olive-dark: #1F7A6B;
    
    /* Fondo principal y neutros */
    --background-warm: #FAFAFA;
    --white: #ffffff;
    --off-white: #F8F8F8;
    --light-gray: #F0F0F0;
    --medium-gray: #E0E0E0;
    --dark-gray: #666666;
    
    /* Texto */
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #777777;
    
    /* Estados y alerts */
    --success: #2A9D8F;
    --warning: #F4A261;
    --error: #E76F51;
    --info: #264654;
    
    /* Sombras elegantes */
    --shadow-soft: 0 4px 20px rgba(38, 70, 84, 0.08);
    --shadow-medium: 0 8px 30px rgba(38, 70, 84, 0.12);
    --shadow-strong: 0 20px 60px rgba(38, 70, 84, 0.15);
    --shadow-gold: 0 8px 25px rgba(244, 162, 97, 0.2);
    --shadow-terracotta: 0 8px 25px rgba(231, 111, 81, 0.2);
    --shadow-olive: 0 8px 25px rgba(42, 157, 143, 0.2);
    
    /* Configuraciones generales */
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Optimizaciones de rendimiento */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mejora de rendimiento para animaciones */
.tab-btn,
.login-btn,
.logout-btn,
.course-card,
.lesson-item {
    will-change: transform;
}

/* Mejora de scroll */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-navy) 50%, var(--primary-dark) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.01em;
    position: relative;
}

/* Prevenir scroll cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TIPOGRAFÍAS ELEGANTES ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.welcome-content h2,
.section-header h3,
.modal-header h3,
.lesson-title,
.sermon-title,
.course-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.verse-reference,
.subtitle,
.lesson-breadcrumb {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-weight: 400;
}

.tab-text,
.btn-text,
button,
.nav-btn,
.start-btn,
.login-submit-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.025em;
}

p, .course-description, .sermon-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
}

/* Tipografía para elementos específicos */
.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ===== HEADER ELEGANTE ===== */
header {
    background: linear-gradient(to right, rgba(250, 250, 250, 0.98), rgba(248, 248, 248, 0.98));
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(38, 70, 84, 0.08), 0 4px 20px rgba(38, 70, 84, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary-gold);
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: 0 4px 15px rgba(38, 70, 84, 0.12), 0 8px 30px rgba(38, 70, 84, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    gap: 2rem;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex: 0 0 auto;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-gold));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.25);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.35);
}

.cross-icon {
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 300;
    font-family: 'Crimson Text', serif;
}

.logo-text h1 {
    color: var(--primary-teal);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text .subtitle {
    color: var(--secondary-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Tagline nuevo */
.tagline {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.tagline-text {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    color: var(--primary-teal);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex: 0 0 auto;
    margin-left: auto; /* Esto empuja el botón hacia la derecha */
    padding-right: 10px; /* Añadir espacio desde el borde derecho */
}

#userGreeting {
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-right: 5px;
}

.login-btn, .logout-btn {
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-gold));
    color: var(--white);
    border: none;
    padding: 10px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.25);
    white-space: nowrap;
    min-width: auto;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn::before, .logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before, .logout-btn:hover::before {
    left: 100%;
}

.login-btn:hover, .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(45deg, var(--accent-terracotta), var(--secondary-gold));
}

/* Arreglo específico para cuando el usuario está logueado */
.user-info.logged-in {
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 3rem 0;
}

/* ===== WELCOME SECTION ELEGANTE ===== */
.welcome-section {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--white);
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    background: linear-gradient(45deg, var(--white), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.welcome-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-gold);
    margin-bottom: 1rem;
    font-style: italic;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.4);
}

.welcome-content p {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-style: italic;
    opacity: 0.95;
    color: var(--secondary-gold-pale);
    font-weight: 400;
    line-height: 1.5;
}

.verse-reference {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 600;
    color: var(--secondary-gold);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Elementos decorativos mejorados */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secondary-gold), var(--accent-terracotta));
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.element-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 180px;
    height: 180px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* ===== NAVIGATION TABS ELEGANTES ===== */
.navigation-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(38, 70, 84, 0.2);
    backdrop-filter: blur(15px);
    color: var(--white);
    border: 2px solid rgba(244, 162, 97, 0.3);
    padding: 18px 35px;
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 162, 97, 0.3), transparent);
    transition: left 0.6s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(45deg, var(--secondary-gold), var(--accent-terracotta));
    color: var(--white);
    border-color: var(--secondary-gold);
    box-shadow: var(--shadow-terracotta);
    font-weight: 700;
}

.tab-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: var(--secondary-gold);
}

.tab-icon {
    font-size: 1.3rem;
}

.tab-text {
    font-family: 'Inter', sans-serif;
    font-weight: inherit;
    letter-spacing: 0.025em;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: var(--background-warm);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    margin-bottom: 2rem;
    display: none;
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--secondary-gold));
}

.content-section.active {
    display: block;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-teal);
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-header p {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ===== SECCIONES MODULARES CON COLAPSABLES ===== */
.section-container {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.section-header-collapsible {
    background: linear-gradient(135deg, rgba(38, 70, 84, 0.03), rgba(244, 162, 97, 0.05));
    padding: 2rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    border-left: 4px solid var(--secondary-gold);
}

.section-header-collapsible:hover {
    background: linear-gradient(135deg, rgba(38, 70, 84, 0.05), rgba(244, 162, 97, 0.08));
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-teal);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--secondary-gold);
    transition: var(--transition);
}

.section-description {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    font-style: italic;
    margin-left: 2.5rem;
}

.section-content {
    padding: 2rem;
    display: none;
    background: var(--white);
}

.section-content.active {
    display: block;
    animation: slideDown 0.4s ease-out;
}

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

.courses-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ===== INDICADOR DE PROGRESO GENERAL ===== */
.general-progress-indicator {
    text-align: center;
    margin-bottom: 2rem;
}

.general-progress-indicator > div {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.1), rgba(244, 162, 97, 0.15));
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-gold);
}

/* ===== CATEGORÍAS DE CURSOS ===== */
.category-section {
    margin-bottom: 2.5rem;
}

.category-title {
    color: var(--primary-teal);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

/* ===== COURSE CARDS ELEGANTES ===== */
.course-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    border: 2px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--secondary-gold));
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--secondary-gold);
}

.course-header {
    margin-bottom: 1.5rem;
}

.course-title-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-teal);
    margin: 0 0 8px 0;
}

.course-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    align-items: center;
}

.course-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 5px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--medium-gray);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-gold), var(--accent-terracotta));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

.progress-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-teal);
}

.course-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-content {
    margin-bottom: 2rem;
}

.course-content h5 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(245, 245, 245, 0.8);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    gap: 12px;
}

.lesson-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border-color: var(--secondary-gold);
    transform: translateX(5px);
}

.lesson-item.completed {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.1), rgba(244, 162, 97, 0.15));
    border-left: 4px solid var(--secondary-gold);
}

.lesson-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.05);
}

.lesson-number {
    background: var(--secondary-gold);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.lesson-item.completed .lesson-number {
    background: var(--success);
}

.lesson-item.locked .lesson-number {
    background: var(--medium-gray);
}

.lesson-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lesson-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.lesson-duration {
    font-size: 0.8rem;
    color: var(--text-light);
}

.lesson-status {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.evaluation-badge {
    background: var(--primary-teal);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: auto;
}

/* Login Prompt para usuarios no logueados */
.login-prompt {
    background: rgba(244, 162, 97, 0.1);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--secondary-gold);
}

.login-prompt p {
    color: var(--primary-teal);
    font-weight: 600;
    margin: 0;
}

.course-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(244, 162, 97, 0.05);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-teal);
}

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

.start-btn {
    background: linear-gradient(45deg, var(--primary-teal), var(--secondary-gold));
    color: var(--white);
    border: none;
    padding: 14px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.start-btn:hover::before {
    left: 100%;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(45deg, var(--accent-terracotta), var(--secondary-gold));
}

.start-btn:disabled {
    background: var(--medium-gray);
    color: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== SERMONS SECTION ELEGANTE ===== */
.sermons-header {
    margin-bottom: 2rem;
    text-align: center;
}

.search-filter {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-input, .filter-select {
    padding: 12px 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 25px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.search-input {
    flex-grow: 1;
    min-width: 250px;
}

.filter-select {
    min-width: 200px;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--secondary-gold);
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.1);
}

.sermons-grid-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

.sermon-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 2px solid transparent;
}

.sermon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--secondary-gold);
}

.sermon-thumbnail {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3.5rem;
    position: relative;
    cursor: pointer;
}

.sermon-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.2));
}

.play-icon {
    font-size: 4rem;
    z-index: 2;
    transition: transform 0.3s ease;
    color: var(--white);
}

.sermon-thumbnail:hover .play-icon {
    transform: scale(1.1);
}

.sermon-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--secondary-gold);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.sermon-series-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-gold);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.sermon-info {
    padding: 2rem;
}

.sermon-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-teal);
    line-height: 1.3;
}

.sermon-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.sermon-date, .sermon-speaker {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.sermon-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sermon-tags {
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    background: var(--secondary-gold-pale);
    color: var(--secondary-gold-dark);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 5px;
    font-weight: 600;
}

.sermon-actions {
    display: flex;
    gap: 10px;
}

.watch-btn, .share-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    flex: 1;
}

.watch-btn.primary {
    background: linear-gradient(45deg, var(--primary-teal), var(--secondary-gold));
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.share-btn.secondary {
    background: var(--light-gray);
    color: var(--primary-teal);
    border: 2px solid var(--medium-gray);
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(45deg, var(--accent-terracotta), var(--secondary-gold));
}

.share-btn:hover {
    border-color: var(--secondary-gold);
    box-shadow: var(--shadow-soft);
}

/* ===== MODALS ELEGANTES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 70, 84, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
    background: var(--white);
    border-radius: 25px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-strong);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--secondary-gold);
}

.lesson-modal, .sermon-modal {
    max-width: 900px;
}

.completion-modal {
    max-width: 600px;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    z-index: 10;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--secondary-gold-pale);
    color: var(--primary-teal);
}

/* ===== LESSON CONTENT ELEGANTE ===== */
.lesson-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--secondary-gold-pale);
    padding-bottom: 1rem;
}

.lesson-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.lesson-title {
    color: var(--primary-teal);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.lesson-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.video-container {
    margin-bottom: 2rem;
}

.video-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-gold));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-play-btn {
    font-size: 4rem;
    z-index: 2;
    transition: var(--transition);
    color: var(--white);
}

.video-placeholder:hover .video-play-btn {
    transform: scale(1.1);
}

.video-title {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0.9;
    z-index: 2;
    color: var(--white);
}

.lesson-content-body {
    margin-bottom: 2rem;
}

.content-section, .resources-section, .lesson-notes {
    margin-bottom: 2rem;
}

.content-section h4, .resources-section h4, .lesson-notes h4 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-text {
    background: var(--secondary-gold-pale);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-gold);
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.resource-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--secondary-gold);
}

.resource-icon {
    font-size: 1.5rem;
    color: var(--secondary-gold);
}

.resource-name {
    flex-grow: 1;
    font-weight: 600;
    color: var(--text-dark);
}

.download-btn {
    background: var(--secondary-gold);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--secondary-gold-dark);
    transform: translateY(-2px);
}

.notes-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--secondary-gold);
}

.save-notes-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transition);
}

.save-notes-btn:hover {
    background: var(--accent-olive-dark);
    transform: translateY(-2px);
}

.lesson-navigation {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 2px solid var(--secondary-gold-pale);
}

.nav-btn {
    background: var(--medium-gray);
    color: var(--text-dark);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.nav-btn:hover:not(:disabled) {
    background: var(--secondary-gold);
    color: white;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.complete-lesson-btn {
    background: linear-gradient(45deg, var(--success), var(--accent-olive-light));
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-olive);
}

.complete-lesson-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

/* ===== COMPLETION MODAL ELEGANTE ===== */
.completion-content {
    text-align: center;
}

.completion-animation {
    position: relative;
    margin-bottom: 2rem;
}

.trophy {
    font-size: 4rem;
    animation: bounce 2s infinite;
    color: var(--secondary-gold);
}

.celebration {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    animation: rotate 3s linear infinite;
}

.completion-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.course-name {
    color: var(--secondary-gold);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.completion-details {
    background: var(--secondary-gold-pale);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.detail-icon {
    font-size: 1.2rem;
    color: var(--secondary-gold);
}

.completion-benefits {
    text-align: left;
    background: rgba(244, 162, 97, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.completion-benefits h5 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
    text-align: center;
}

.completion-benefits ul {
    list-style: none;
    padding: 0;
}

.completion-benefits li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.completion-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.primary-action, .secondary-action {
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-action {
    background: linear-gradient(45deg, var(--primary-teal), var(--secondary-gold));
    color: white;
    box-shadow: var(--shadow-gold);
}

.secondary-action {
    background: var(--light-gray);
    color: var(--primary-teal);
    border: 2px solid var(--medium-gray);
}

.primary-action:hover, .secondary-action:hover {
    transform: translateY(-3px);
}

.primary-action:hover {
    box-shadow: var(--shadow-strong);
    background: linear-gradient(45deg, var(--accent-terracotta), var(--secondary-gold));
}

/* ===== PROFILE SECTION ELEGANTE ===== */
.profile-placeholder {
    text-align: center;
    padding: 4rem 2rem;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
    color: var(--secondary-gold);
}

.profile-placeholder h3 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.profile-placeholder p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.user-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-teal), var(--secondary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow-gold);
}

.user-info {
    flex-grow: 1;
}

.user-info h3 {
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.user-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.overall-progress {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle circle:last-child {
    stroke: var(--secondary-gold);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-teal);
}

.progress-info h4 {
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.progress-info p {
    color: var(--text-light);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--white), var(--off-white));
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
    border-color: var(--secondary-gold);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    color: var(--secondary-gold);
}

.stat-info h4 {
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-gold);
    margin: 0;
}

.progress-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section {
    background: rgba(244, 162, 97, 0.02);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--secondary-gold-pale);
}

.section h4 {
    color: var(--primary-teal);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.courses-progress-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-progress-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--secondary-gold-pale);
}

.course-progress-item .course-info {
    flex-grow: 1;
}

.course-progress-item .course-info h5 {
    color: var(--primary-teal);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.course-progress-item .course-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.progress-percentage {
    font-weight: bold;
    color: var(--primary-teal);
    min-width: 35px;
}

.course-actions .action-btn {
    background: var(--secondary-gold);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.course-actions .action-btn:hover {
    background: var(--secondary-gold-dark);
    transform: translateY(-2px);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.certificate-card {
    background: linear-gradient(135deg, var(--white), var(--secondary-gold-pale));
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--secondary-gold);
    transition: var(--transition);
}

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

.certificate-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-gold);
}

.certificate-info h5 {
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.certificate-info p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.certificate-info small {
    color: var(--success);
    font-weight: 600;
}

.download-certificate-btn {
    background: var(--secondary-gold);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.download-certificate-btn:hover {
    background: var(--secondary-gold-dark);
    transform: translateY(-2px);
}

.motivation-section {
    text-align: center;
    padding: 2rem;
}

.start-journey-btn {
    background: linear-gradient(45deg, var(--primary-teal), var(--secondary-gold));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
}

.start-journey-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(45deg, var(--accent-terracotta), var(--secondary-gold));
}

/* ===== LOGIN FORM ELEGANTE ===== */
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    color: var(--primary-teal);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-header p {
    color: var(--text-light);
}

.login-form, .register-form {
    margin: 2rem 0;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-teal);
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-gold);
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.1);
}

.login-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary-teal), var(--secondary-gold));
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(45deg, var(--accent-terracotta), var(--secondary-gold));
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.register-link, .login-link {
    color: var(--secondary-gold);
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover, .login-link:hover {
    text-decoration: underline;
    color: var(--secondary-gold-dark);
}

.forgot-password {
    color: var(--secondary-gold) !important;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
    color: var(--secondary-gold-dark) !important;
}

.social-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: var(--transition);
}

.social-btn.google {
    background: linear-gradient(45deg, #4285f4, #34a853) !important;
}

.social-btn.facebook {
    background: linear-gradient(45deg, #1877f2, #42a5f5) !important;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== FOOTER ELEGANTE ===== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-navy));
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--secondary-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h4 {
    color: var(--secondary-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-tagline {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-gold);
}

/* Sección de redes sociales elegante */
.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(244, 162, 97, 0.1);
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(244, 162, 97, 0.2);
}

.social-links a:hover {
    background: var(--secondary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Newsletter elegante */
.newsletter-section {
    margin-top: 1rem;
}

.newsletter-section h5 {
    color: var(--secondary-gold);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input {
    padding: 12px 15px;
    border-radius: 15px;
    border: 1px solid var(--secondary-gold);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

.newsletter-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.3);
}

.newsletter-btn {
    background: var(--secondary-gold);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--accent-terracotta);
    transform: translateY(-2px);
    box-shadow: var(--shadow-terracotta);
}

/* Enlaces útiles elegantes */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    padding: 5px 0;
    transition: var(--transition);
    border-radius: 5px;
    padding-left: 5px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-gold);
    padding-left: 15px;
    background: rgba(244, 162, 97, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(244, 162, 97, 0.3);
    opacity: 0.8;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.footer-bottom-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--secondary-gold);
}

/* ===== MODAL DE SERMON ELEGANTE Y PROFESIONAL ===== */
.elegant-sermon-modal {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--white);
    border: 3px solid var(--secondary-gold);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.sermon-modal-header {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-navy));
    color: var(--white);
    padding: 2.5rem 3rem 2rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.sermon-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.sermon-type-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.sermon-type-badge.predica {
    background: var(--secondary-gold);
    color: var(--white);
}

.sermon-type-badge.devocional {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(244, 162, 97, 0.5);
}

.sermon-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.sermon-modal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.meta-icon {
    color: var(--secondary-gold);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.meta-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

/* Video Player Elegante */
.sermon-video-section {
    padding: 2rem 3rem;
    background: var(--off-white);
}

.video-player-elegant {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.video-placeholder-elegant {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-placeholder-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.3));
}

.play-button-elegant {
    position: relative;
    z-index: 3;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.play-button-elegant:hover {
    transform: scale(1.1);
    background: var(--white);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.play-icon-elegant {
    font-size: 2rem;
    color: var(--primary-teal);
    margin-left: 4px;
}

.video-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Sección de Detalles */
.sermon-details-section {
    padding: 2rem 3rem;
    background: var(--white);
}

/* Mejoras para el scroll del modal de sermones */
.elegant-sermon-modal .modal-body {
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar personalizado para modales */
.elegant-sermon-modal::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 10px;
}

.elegant-sermon-modal::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 5px;
}

.elegant-sermon-modal::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: var(--secondary-gold);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.elegant-sermon-modal::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gold-dark);
}

/* Asegurar que todos los elementos del modal tengan el contenedor correcto */
.sermon-video-section,
.sermon-details-section,
.sermon-actions-section {
    flex-shrink: 0;
}

/* Ajustar height específico para el modal de sermones */
.elegant-sermon-modal {
    max-height: 90vh;
    height: auto;
}

/* Para Firefox */
.elegant-sermon-modal,
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-gold) var(--light-gray);
}

.sermon-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.info-card {
    background: linear-gradient(135deg, var(--off-white), var(--white));
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-gold);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.info-icon {
    color: var(--secondary-gold);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.info-card-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-teal);
    margin: 0;
}

.info-card-content {
    padding-left: 34px;
}

.series-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-gold-dark);
    margin: 0;
}

.sermon-description-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag {
    display: inline-block;
    background: var(--secondary-gold-pale);
    color: var(--secondary-gold-dark);
    padding: 6px 12px;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Acciones Principales */
.sermon-actions-section {
    background: var(--light-gray);
    padding: 2rem 3rem;
    border-top: 1px solid var(--medium-gray);
}

.primary-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.action-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    position: relative;
    overflow: hidden;
}

.primary-elegant {
    background: linear-gradient(45deg, var(--primary-teal), var(--secondary-gold));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 160px;
}

.primary-elegant:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.secondary-elegant {
    background: var(--white);
    color: var(--primary-teal);
    border: 2px solid var(--medium-gray);
    flex: 1;
    min-width: 140px;
}

.secondary-elegant:hover {
    border-color: var(--secondary-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-text {
    font-weight: 600;
}

.additional-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.text-action {
    background: none;
    border: none;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.text-action:hover {
    color: var(--secondary-gold);
    background: rgba(244, 162, 97, 0.1);
}

.text-icon {
    font-size: 1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
        align-items: center;
    }

    .logo {
        order: 1;
    }

    .tagline {
        order: 2;
        margin: 0.5rem 0;
    }

    .tagline-text {
        font-size: 0.9rem;
    }
    
    .user-info {
        order: 3;
        flex-direction: column;
        gap: 0.5rem;
        width: auto;
    }
    
    .user-info.logged-in {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #userGreeting {
        text-align: center;
        margin-right: 0;
        margin-bottom: 0.3rem;
    }

    .login-btn, .logout-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .navigation-tabs {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .tab-btn {
        width: 280px;
        justify-content: center;
    }

    .category-grid, .sermons-grid-content {
        grid-template-columns: 1fr;
    }

    .welcome-content h2 {
        font-size: 2.2rem;
    }

    .welcome-content p {
        font-size: 1.1rem;
    }

    .welcome-subtitle {
        font-size: 1.2rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    .section-header h3 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-description {
        font-size: 1rem;
        margin-left: 0;
    }

    .section-header-collapsible {
        padding: 1.5rem;
    }

    .search-filter {
        flex-direction: column;
        align-items: center;
    }

    .search-input, .filter-select {
        width: 100%;
        max-width: 300px;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        margin: 20px;
        max-width: 95%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        grid-template-columns: 1fr 1fr;
    }

    .search-input {
        min-width: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .overall-progress {
        justify-content: center;
    }

    .course-progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .progress-section {
        width: 100%;
        justify-content: space-between;
    }

    .lesson-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .completion-actions {
        flex-direction: column;
    }

    .sermon-actions {
        flex-direction: column;
    }

    /* Modal de sermón responsive */
    .elegant-sermon-modal {
        width: 98%;
        margin: 10px;
    }

    .sermon-modal-header,
    .sermon-video-section,
    .sermon-details-section,
    .sermon-actions-section {
        padding: 1.5rem 2rem;
    }

    .sermon-modal-title {
        font-size: 1.8rem;
    }

    .sermon-modal-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .video-placeholder-elegant {
        height: 300px;
    }

    .play-button-elegant {
        width: 60px;
        height: 60px;
    }

    .play-icon-elegant {
        font-size: 1.5rem;
    }

    .primary-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .additional-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .category-grid, .sermons-grid-content {
        gap: 15px;
    }
    
    .course-card, .sermon-card {
        margin: 0;
    }

    .welcome-content h2 {
        font-size: 1.8rem;
    }

    .welcome-subtitle {
        font-size: 1.1rem;
    }

    .tagline-text {
        font-size: 0.8rem;
    }

    .tab-btn {
        width: 100%;
        padding: 15px 25px;
    }

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

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .video-placeholder {
        height: 250px;
    }

    .modal-content {
        padding: 1.5rem 1rem;
    }

    .social-links {
        grid-template-columns: 1fr;
        max-width: 200px;
        margin: 0 auto 1.5rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-header-collapsible {
        padding: 1rem;
    }

    .search-filter {
        gap: 10px;
    }

    .search-input, .filter-select {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* Modal de sermón mobile */
    .sermon-modal-header,
    .sermon-video-section,
    .sermon-details-section,
    .sermon-actions-section {
        padding: 1rem 1.5rem;
    }

    .sermon-modal-title {
        font-size: 1.5rem;
    }

    .video-placeholder-elegant {
        height: 250px;
    }

    .info-card {
        padding: 1rem;
    }
}
