/* ===================================================
   LMS - SISTEMA DE FORMACIÓN PARA PACIENTES
   =================================================== */

/* HERO */
.lms-hero {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.lms-hero__content {
    max-width: 700px;
    margin: 0 auto;
}

.lms-hero h1 {
    font-size: 2.5rem;
    margin: 15px 0 20px;
    font-weight: 700;
}

.lms-hero__subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* BENEFICIOS */
.lms-benefits {
    padding: 60px 0;
    background: #f8f9fa;
}

.lms-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.lms-benefit {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.lms-benefit__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 50%;
    color: #1565c0;
}

.lms-benefit h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.lms-benefit p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* CATEGORÍAS */
.lms-categories {
    padding: 80px 0;
}

.lms-categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.lms-category {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lms-category:hover {
    border-color: #1565c0;
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.1);
    transform: translateY(-2px);
}

.lms-category__icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.lms-category h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: #333;
}

.lms-category p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
}

.lms-category__count {
    font-size: 0.8rem;
    color: #1565c0;
    font-weight: 600;
}

/* CURSOS GRID */
.lms-courses {
    padding: 80px 0;
    background: #f8f9fa;
}

.lms-courses__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.lms-course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.lms-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.lms-course-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.lms-course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lms-course-card__duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.lms-course-card__content {
    padding: 25px;
}

.lms-course-card__category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1565c0;
    font-weight: 600;
    margin-bottom: 10px;
}

.lms-course-card__content h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: #333;
    line-height: 1.4;
}

.lms-course-card__content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 15px;
    line-height: 1.5;
}

.lms-course-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

/* CTA */
.lms-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    text-align: center;
    color: #fff;
}

.lms-cta__content {
    max-width: 600px;
    margin: 0 auto;
}

.lms-cta h2 {
    font-size: 2rem;
    margin: 0 0 15px;
}

.lms-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 25px;
}

.lms-cta .btn-primary {
    background: #fff;
    color: #1565c0;
}

.lms-cta .btn-primary:hover {
    background: #f5f5f5;
}

/* ===================================================
   PÁGINA DE CURSO INDIVIDUAL
   =================================================== */

.lms-course-header {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    padding: 60px 0;
    color: #fff;
}

.lms-course-header__category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.lms-course-header h1 {
    font-size: 2rem;
    margin: 0 0 15px;
    font-weight: 700;
}

.lms-course-header__description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 0 25px;
    line-height: 1.6;
}

.lms-course-header__meta {
    display: flex;
    gap: 25px;
    font-size: 0.95rem;
}

.lms-course-header__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

/* LAYOUT CURSO */
.lms-course-content {
    padding: 50px 0;
    background: #f5f5f5;
}

.lms-course-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* SIDEBAR */
.lms-course-sidebar {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.lms-course-sidebar__header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lms-course-sidebar__header h3 {
    font-size: 1rem;
    margin: 0;
    color: #333;
}

.lms-course-sidebar__header span {
    font-size: 0.85rem;
    color: #888;
}

.lms-lessons-nav {
    max-height: 500px;
    overflow-y: auto;
}

.lms-lesson-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.lms-lesson-item:hover {
    background: #f8f9fa;
}

.lms-lesson-item--active {
    background: #e3f2fd;
    border-left: 3px solid #1565c0;
}

.lms-lesson-item__number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.lms-lesson-item--active .lms-lesson-item__number {
    background: #1565c0;
    color: #fff;
}

.lms-lesson-item__info {
    flex: 1;
}

.lms-lesson-item__title {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 3px;
}

.lms-lesson-item__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #888;
}

/* CONTENIDO PRINCIPAL */
.lms-course-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.lms-lesson {
    padding: 40px;
}

.lms-lesson__header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.lms-lesson__number {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1565c0;
    font-weight: 600;
    margin-bottom: 10px;
}

.lms-lesson__header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

.lms-lesson__video {
    margin-bottom: 30px;
}

.lms-video-placeholder {
    background: #1a1a2e;
    border-radius: 8px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.lms-video-placeholder svg {
    opacity: 0.5;
    margin-bottom: 15px;
}

.lms-video-placeholder p {
    opacity: 0.7;
    font-size: 0.95rem;
}

.lms-lesson__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.lms-lesson__content p {
    margin-bottom: 20px;
}

/* NAVEGACIÓN LECCIONES */
.lms-lesson__nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.lms-lesson__nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lms-lesson__nav-btn:hover {
    background: #1565c0;
    color: #fff;
}

.lms-lesson__nav-btn--next {
    margin-left: auto;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .lms-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lms-course-layout {
        grid-template-columns: 1fr;
    }

    .lms-course-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .lms-hero {
        padding: 60px 0;
    }

    .lms-hero h1 {
        font-size: 1.8rem;
    }

    .lms-benefits__grid {
        grid-template-columns: 1fr;
    }

    .lms-categories__grid {
        grid-template-columns: 1fr;
    }

    .lms-courses__grid {
        grid-template-columns: 1fr;
    }

    .lms-course-header__meta {
        flex-wrap: wrap;
        gap: 15px;
    }

    .lms-lesson {
        padding: 25px;
    }

    .lms-lesson__header h2 {
        font-size: 1.3rem;
    }

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

/* ===================================================
   GUÍAS INFORMATIVAS - ARTÍCULOS
   =================================================== */

.guia-article {
    padding: 0 0 60px;
}

.guia-article__header {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #fff;
    padding: 50px 0;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    margin-bottom: 40px;
}

.guia-article__header .container {
    max-width: 800px;
}

.guia-article__category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.guia-article__header h1 {
    font-size: 2rem;
    margin: 0 0 15px;
    font-weight: 700;
    line-height: 1.3;
}

.guia-article__intro {
    font-size: 1.15rem;
    opacity: 0.9;
    margin: 0 0 20px;
    line-height: 1.6;
}

.guia-article__meta {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.guia-article__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guia-article__content {
    max-width: 800px;
    margin: 0 auto;
}

.guia-section {
    margin-bottom: 40px;
}

.guia-section h2 {
    font-size: 1.4rem;
    color: #1565c0;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3f2fd;
}

.guia-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.guia-section ul {
    margin: 15px 0 20px 20px;
}

.guia-section li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 10px;
}

.guia-section li strong {
    color: #333;
}

.guia-highlight {
    background: #f8f9fa;
    border-left: 4px solid #1565c0;
    padding: 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.guia-highlight h3 {
    font-size: 1.15rem;
    color: #1565c0;
    margin: 0 0 10px;
}

.guia-highlight p {
    margin: 0;
    font-size: 1rem;
}

.guia-section--cta {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
}

.guia-section--cta h2 {
    color: #fff;
    border: none;
    padding: 0;
    margin-bottom: 10px;
}

.guia-section--cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.guia-section--cta .btn-primary {
    background: #fff;
    color: #1565c0;
}

.guia-section--cta .btn-primary:hover {
    background: #f5f5f5;
}

/* Relacionados */
.guia-related {
    max-width: 800px;
    margin: 50px auto 0;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.guia-related h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 20px;
}

.guia-related__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.guia-related__item {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.guia-related__item:hover {
    background: #e3f2fd;
}

.guia-related__category {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #1565c0;
    font-weight: 600;
    margin-bottom: 5px;
}

.guia-related__title {
    display: block;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .guia-article__header {
        padding: 40px 20px;
    }

    .guia-article__header h1 {
        font-size: 1.6rem;
    }

    .guia-article__meta {
        flex-direction: column;
        gap: 10px;
    }

    .guia-section h2 {
        font-size: 1.25rem;
    }

    .guia-highlight {
        padding: 20px;
    }

    .guia-section--cta {
        padding: 30px 20px;
    }

    .guia-related__grid {
        grid-template-columns: 1fr;
    }
}
