/*--------------------------------------------------------------
# Course Detail Page Styles
# Estilos profesionales y elegantes para la página de detalle de cursos
--------------------------------------------------------------*/

/* Quick Action Container */
.quick-action-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e4e8;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.action-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 20px;
}

.action-bar-info {
    flex: 1;
    min-width: 0;
}

/* Typewriter Message */
.typewriter-message {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#typewriter-text {
    display: inline-block;
}

.typewriter-cursor {
    display: inline-block;
    color: #000000;
    animation: blink 1s step-end infinite;
    font-weight: 400;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.action-bar-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c4964;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-bar-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.action-bar-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.action-bar-meta span i {
    color: #5a8fc4;
    font-size: 15px;
}

.action-bar-button {
    flex-shrink: 0;
}

.btn-request-info {
    background: linear-gradient(135deg, #0882E1 0%, #0668B8 100%);
    color: #ffffff;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 16px rgba(8, 130, 225, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-request-info:hover {
    background: linear-gradient(135deg, #0668B8 0%, #054E8F 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 130, 225, 0.4);
}

.btn-request-info i {
    font-size: 16px;
}

/* Course Details Section */
.course-details {
    background: linear-gradient(135deg, #f7f9fb 0%, #e8ecf1 100%);
    min-height: 100vh;
    padding: 60px 0 80px;
}

/* Main Content Card */
.course-info {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e8ecf0;
}

.course-info:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #d0d8e0;
}

/* Course Header */
.course-header {
    background: linear-gradient(135deg, #1977cc 0%, #1565b3 100%);
    padding: 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.course-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.course-header::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.course-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.course-header .course-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.course-header .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.course-header .meta-item i {
    font-size: 16px;
}

/* Course Content */
.course-content {
    padding: 40px;
}

.course-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e4e8;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-content h4::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4a7ba7 0%, #5a8fc4 100%);
}

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

.course-content .content-list li {
    padding: 18px 20px;
    margin-bottom: 12px;
    background: #f7f9fb;
    border-radius: 8px;
    line-height: 1.7;
    color: #4a5568;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.course-content .content-list li:hover {
    background: linear-gradient(135deg, rgba(90, 143, 196, 0.08) 0%, rgba(90, 143, 196, 0.03) 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Course Buttons */
.course-buttons {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

/* Sidebar */
.course-sidebar {
    position: sticky;
    top: 100px;
}

/* Service Item Card (Info Card) */
.service-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e8ecf0;
    position: relative;
}

/* Places Badge for Detail Page */
.course-places-badge-detail {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 0 12px 0 40px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    z-index: 10;
}

.course-places-badge-detail.full {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.course-places-badge-detail .places-number {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.course-places-badge-detail.full .places-number {
    font-size: 18px;
}

.course-places-badge-detail .places-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.service-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: #d0d8e0;
}

.service-item .icon {
    width: 70px;
    height: 70px;
    margin: 30px auto 20px;
    background: linear-gradient(135deg, #0882E1 0%, #0668B8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(8, 130, 225, 0.3);
    position: relative;
}

.service-item .icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #0668B8 0%, #054E8F 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover .icon::before {
    opacity: 1;
}

.service-item .icon i {
    font-size: 32px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.service-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    padding: 0 20px;
}

.service-item ul {
    padding: 0 30px 30px;
}

.service-item ul li {
    padding: 14px 0;
    border-bottom: 1px solid #e8ecf0;
    transition: all 0.3s ease;
}

.service-item ul li:last-child {
    border-bottom: none;
}

.service-item ul li:hover {
    padding-left: 10px;
    background: linear-gradient(135deg, rgba(90, 143, 196, 0.06) 0%, rgba(90, 143, 196, 0.02) 100%);
    margin: 0 -10px;
    padding-right: 10px;
    border-radius: 6px;
}

.service-item ul li i {
    font-size: 18px;
    margin-right: 10px;
    width: 24px;
    text-align: center;
}

.service-item ul li strong {
    display: block;
    color: #666666;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.service-item ul li span {
    color: #4a5568;
    font-size: 15px;
    font-weight: 400;
}

.service-item ul li .badge {
    font-size: 16px;
    padding: 8px 16px;
    font-weight: 700;
}

/* Enrollment Button */
.service-item .btn-primary {
    background: linear-gradient(135deg, #4a7ba7 0%, #2c5f8d 100%);
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(74, 123, 167, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.service-item .btn-primary:hover {
    background: linear-gradient(135deg, #2c5f8d 0%, #1a4d7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 123, 167, 0.35);
}

.service-item .btn-primary i {
    margin-right: 8px;
}

/* Course Action Buttons */
.course-action-buttons {
    padding: 25px 30px 30px;
    background: #f7f9fb;
    border-top: 1px solid #e8ecf0;
    margin-top: 20px;
}

/* Handwritten Text */
.handwritten-text {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 18px;
    color: #4a7ba7;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 400;
    font-style: italic;
    position: relative;
    animation: fadeInSlide 0.8s ease-out;
}

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

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.course-action-buttons .btn {
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 13px;
}

.course-action-buttons .btn-outline-primary {
    background: transparent;
    border: 2px solid #5a8fc4;
    color: #5a8fc4;
    position: relative;
    overflow: hidden;
}

.course-action-buttons .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a7ba7 0%, #2c5f8d 100%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.course-action-buttons .btn-outline-primary:hover::before {
    width: 300%;
    height: 300%;
}

.course-action-buttons .btn-outline-primary i,
.course-action-buttons .btn-outline-primary span {
    position: relative;
    z-index: 1;
}

.course-action-buttons .btn-outline-primary:hover {
    color: #ffffff;
    border-color: #4a7ba7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 123, 167, 0.3);
}

.course-action-buttons .btn-outline-secondary {
    border: 2px solid #8895a7;
    color: #4a5568;
    background: #ffffff;
}

.course-action-buttons .btn-outline-secondary:hover {
    background: #8895a7;
    color: #ffffff;
    border-color: #8895a7;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(136, 149, 167, 0.25);
}

/* Badge Styles */
.badge.bg-success {
    background: linear-gradient(135deg, #3fbbc0 0%, #20c997 100%) !important;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

/* Icon Colors */
.text-primary {
    color: #5a8fc4 !important;
}

.text-success {
    color: #6ba587 !important;
}

.text-warning {
    color: #d4a574 !important;
}

.text-secondary {
    color: #8895a7 !important;
}

.text-info {
    color: #5a9bb8 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .action-bar-content {
        padding: 15px 0;
    }

    .action-bar-info h4 {
        font-size: 16px;
    }

    .action-bar-meta span {
        font-size: 13px;
    }

    .btn-request-info {
        padding: 11px 24px;
        font-size: 14px;
    }

    .course-header h2 {
        font-size: 26px;
    }

    .course-content {
        padding: 30px 25px;
    }

    .course-sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .action-bar-content {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 0;
        gap: 15px;
    }

    .action-bar-info h4 {
        font-size: 15px;
        white-space: normal;
        line-height: 1.3;
    }

    .action-bar-meta {
        gap: 15px;
    }

    .action-bar-meta span {
        font-size: 12px;
    }

    .action-bar-button {
        width: 100%;
    }

    .btn-request-info {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .course-details {
        padding: 40px 0 60px;
    }

    .course-header {
        padding: 30px 25px;
    }

    .course-header h2 {
        font-size: 22px;
    }

    .course-header .course-meta {
        flex-direction: column;
        gap: 10px;
    }

    .course-content {
        padding: 25px 20px;
    }

    .course-content h4 {
        font-size: 20px;
    }

    .service-item ul {
        padding: 0 20px 20px;
    }

    .course-action-buttons {
        padding: 20px 20px 25px;
    }

    .course-action-buttons .btn {
        font-size: 13px;
        padding: 12px 24px;
    }
}

/* Animation for content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-info,
.service-item {
    animation: fadeInUp 0.6s ease-out;
}

.service-item {
    animation-delay: 0.2s;
}

/* Empty State */
.empty-content {
    text-align: center;
    padding: 60px 40px;
    color: #999;
}

.empty-content i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-content p {
    font-size: 16px;
    color: #6c757d;
}

/*--------------------------------------------------------------
# Sessions Timeline Modern - Compact & Professional
--------------------------------------------------------------*/

.sessions-timeline-modern {
    position: relative;
    margin-top: 20px;
    padding-left: 0;
}

.session-card-modern {
    position: relative;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.session-card-modern:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.session-card-modern:last-child .session-line {
    display: none;
}

/* Timeline Indicator */
.session-indicator {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.session-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #5a8fc4 0%, #4a7ba7 100%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(90, 143, 196, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
}

.session-card-modern:hover .session-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(90, 143, 196, 0.25);
}

.session-card-modern.is-final .session-dot {
    background: linear-gradient(135deg, #d4a574 0%, #c89860 100%);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.2);
}

.session-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, rgba(90, 143, 196, 0.2) 0%, rgba(90, 143, 196, 0.06) 100%);
    margin-top: 4px;
}

/* Content Wrapper */
.session-content-wrapper {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.session-card-modern:hover .session-content-wrapper {
    border-color: #5a8fc4;
    box-shadow: 0 4px 12px rgba(90, 143, 196, 0.12);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(90, 143, 196, 0.02) 0%, #ffffff 100%);
}

.session-card-modern.is-final .session-content-wrapper {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.02) 0%, #ffffff 100%);
    border-color: rgba(212, 165, 116, 0.25);
}

/* Header */
.session-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.session-date-info {
    flex: 1;
}

.session-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.session-date-meta {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.session-label-final {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #d4a574 0%, #c89860 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(212, 165, 116, 0.25);
}

.session-label-final i {
    font-size: 9px;
}

/* Details */
.session-details-modern {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-time-info,
.session-observation {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.session-time-info i {
    color: #5a8fc4;
    font-size: 13px;
}

.session-observation i {
    color: #5a9bb8;
    font-size: 13px;
}

.session-time-info span,
.session-observation span {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 767px) {
    .session-card-modern {
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .session-content-wrapper {
        padding: 16px 18px;
    }

    .session-header-modern {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .session-title {
        font-size: 15px;
    }

    .session-date-meta {
        font-size: 12px;
    }

    .session-label-final {
        align-self: flex-start;
        font-size: 11px;
        padding: 5px 12px;
    }

    .session-time-info,
    .session-observation {
        font-size: 13px;
    }

    .session-dot {
        width: 14px;
        height: 14px;
    }
}
