/* ── Variables ── */
:root {
    --cs2-start:  #1e1b4b;
    --cs2-mid:    #312e81;
    --cs2-end:    #4338ca;
    --cs2-accent: #6366f1;
    --cs2-accent2:#818cf8;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.cshow-hero {
    background: linear-gradient(135deg, var(--cs2-start) 0%, var(--cs2-mid) 50%, var(--cs2-end) 100%);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}
.cshow-hero::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: rgba(99,102,241,.15);
    border-radius: 50%;
    top: -200px; right: -150px;
    pointer-events: none;
}
.cshow-hero::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(129,140,248,.1);
    border-radius: 50%;
    bottom: -100px; left: -80px;
    pointer-events: none;
}

/* Chips de meta info */
.cshow-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    font-size: .73rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-right: 6px;
    margin-bottom: 8px;
}

/* Stats del hero */
.cshow-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.85);
    font-size: .83rem;
}
.cshow-stat strong { color: white; }
.cshow-stat i { font-size: .75rem; }

/* Imagen hero */
.cshow-hero-img {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    aspect-ratio: 16/9;
}
.cshow-hero-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ══════════════════════════════════════
   LAYOUT BODY
══════════════════════════════════════ */
.cshow-body {
    background: #f8faff;
    padding: 48px 0 60px;
}

/* ══════════════════════════════════════
   SECTION TITLES
══════════════════════════════════════ */
.cshow-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cshow-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #e0e7ff, transparent);
    border-radius: 2px;
}
.cshow-title-icon {
    width: 28px; height: 28px;
    background: var(--cs2-accent);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cshow-title-icon i { color: white; font-size: .7rem; }

/* ══════════════════════════════════════
   CARDS GENÉRICAS
══════════════════════════════════════ */
.cshow-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e8edf8;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    overflow: hidden;
    margin-bottom: 20px;
}
.cshow-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.cshow-card-head-icon {
    width: 30px; height: 30px;
    background: #ede9fe;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cshow-card-head-icon i { color: var(--cs2-accent); font-size: .75rem; }
.cshow-card-head-title {
    font-size: .88rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    flex: 1;
}
.cshow-card-head-count {
    font-size: .72rem;
    color: #9ca3af;
    font-weight: 700;
}
.cshow-card-body { padding: 16px 20px; }

/* ══════════════════════════════════════
   OBJETIVOS / REQUISITOS
══════════════════════════════════════ */
.cshow-goal-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f9fafb;
    font-size: .85rem;
    color: #374151;
    line-height: 1.5;
}
.cshow-goal-item:last-child { border-bottom: none; }
.cshow-goal-item i {
    color: var(--cs2-accent);
    flex-shrink: 0;
    margin-top: 3px;
    font-size: .7rem;
}

/* ══════════════════════════════════════
   ACORDEÓN TEMARIO
══════════════════════════════════════ */
.cshow-acc-btn {
    width: 100%;
    text-align: left;
    background: #f8faff;
    border: 1.5px solid #e8edf8;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: .85rem;
    font-weight: 700;
    color: #1e1b4b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s;
    margin-bottom: 6px;
    outline: none;
}
.cshow-acc-btn:hover,
.cshow-acc-btn.open { background: #ede9fe; color: var(--cs2-accent); border-color: #c4b5fd; }
.cshow-acc-chevron {
    margin-left: auto;
    transition: transform .2s;
    font-size: .65rem;
    color: #9ca3af;
}
.cshow-acc-btn.open .cshow-acc-chevron { transform: rotate(180deg); }
.cshow-acc-panel { display: none; padding: 2px 0 8px 4px; }
.cshow-acc-panel.open { display: block; }

.cshow-lesson-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: .82rem;
    color: #4b5563;
    transition: background .12s;
}
.cshow-lesson-item:hover { background: #f5f3ff; }
.cshow-lesson-item i { color: #c4b5fd; font-size: .75rem; flex-shrink: 0; }

.cshow-sec-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    background: white;
    border-radius: 50%;
    font-size: .68rem;
    font-weight: 800;
    color: var(--cs2-accent);
    flex-shrink: 0;
    border: 1px solid #ddd6fe;
}

/* ══════════════════════════════════════
   DESCRIPCIÓN
══════════════════════════════════════ */
.cshow-desc { font-size: .9rem; color: #4b5563; line-height: 1.8; }
.cshow-desc h1,.cshow-desc h2,.cshow-desc h3 { color: #1e1b4b; margin-bottom: .5rem; }
.cshow-desc p { margin-bottom: .75rem; }
.cshow-desc ul { padding-left: 1.2rem; }

/* ══════════════════════════════════════
   STICKY SIDEBAR
══════════════════════════════════════ */
.cshow-sticky { position: sticky; top: 90px; }

/* Teacher */
.cshow-teacher {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #ddd6fe;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    margin-bottom: 16px;
}
.cshow-teacher-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(99,102,241,.2);
    display: block;
    margin: 0 auto 10px;
}

/* CTA enrollment */
.cshow-cta {
    background: white;
    border-radius: 16px;
    border: 1px solid #e8edf8;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    padding: 22px;
    margin-bottom: 16px;
    text-align: center;
}
.cshow-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 4px;
}
.cshow-price-free {
    font-size: 1.4rem;
    font-weight: 900;
    color: #059669;
    margin-bottom: 4px;
}

.cshow-btn-enroll {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--cs2-accent), #7c3aed);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(99,102,241,.35);
    transition: transform .18s, box-shadow .18s;
    margin-bottom: 8px;
}
.cshow-btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,.45);
    color: white;
    text-decoration: none;
}
.cshow-btn-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(16,185,129,.3);
    transition: transform .18s, box-shadow .18s;
}
.cshow-btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16,185,129,.4);
    color: white;
    text-decoration: none;
}

/* ══════════════════════════════════════
   CURSOS SIMILARES
══════════════════════════════════════ */
.cshow-similar {
    background: white;
    border-radius: 16px;
    border: 1px solid #e8edf8;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    overflow: hidden;
}
.cshow-similar-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
}
.cshow-similar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #f9fafb;
    text-decoration: none;
    transition: background .12s;
}
.cshow-similar-item:last-child { border-bottom: none; }
.cshow-similar-item:hover { background: #f8faff; text-decoration: none; }
.cshow-similar-thumb {
    width: 68px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.cshow-similar-title {
    font-size: .8rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 3px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cshow-similar-teacher {
    font-size: .72rem;
    color: #9ca3af;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.cshow-similar-rating {
    font-size: .72rem;
    color: #f59e0b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}

/* ══════════════════════════════════════
   REVIEWS
══════════════════════════════════════ */

/* Resumen de calificación */
.cshow-rating-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: .78rem;
}
.cshow-rating-bar-bg {
    flex: 1;
    height: 7px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
}
.cshow-rating-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    border-radius: 999px;
    transition: width .4s ease;
}

/* Formulario de reseña */
.cshow-review-form {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1.5px solid #ddd6fe;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.cshow-review-textarea {
    width: 100%;
    border: 1.5px solid #ddd6fe;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .85rem;
    color: #374151;
    resize: vertical;
    min-height: 90px;
    outline: none;
    font-family: inherit;
    background: white;
    transition: border-color .2s;
    line-height: 1.6;
}
.cshow-review-textarea:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167,139,250,.15);
}

/* Estrellas interactivas */
.cshow-stars-input { display: flex; gap: 4px; }
.cshow-stars-input li {
    list-style: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform .1s;
}
.cshow-stars-input li:hover { transform: scale(1.2); }

/* Botón enviar */
.cshow-review-submit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    background: linear-gradient(135deg, var(--cs2-accent), #7c3aed);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: .83rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
    box-shadow: 0 3px 12px rgba(99,102,241,.3);
}
.cshow-review-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99,102,241,.4);
}

/* Tarjeta de reseña individual */
.cshow-review-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}
.cshow-review-item:last-child { border-bottom: none; }
.cshow-review-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ede9fe;
    flex-shrink: 0;
}
.cshow-review-bubble {
    flex: 1;
    min-width: 0;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 12px 16px;
}
.cshow-review-name {
    font-size: .85rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cshow-review-stars { display: flex; gap: 2px; }
.cshow-review-stars i { font-size: .65rem; }
.cshow-review-text {
    font-size: .84rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 991px) {
    .cshow-hero { padding: 80px 0 40px; }
    .cshow-hero-img { margin-top: 28px; }
    .cshow-sticky { position: static; }
    .cshow-body { padding: 28px 0 40px; }
}
