/* ==========================================================================
   FT Courses Manager — Página pública del curso
   ========================================================================== */

.ftc-course {
    font-family: var(--ft-font-body, 'Lato', sans-serif);
    color: #333;
    padding: 40px 0 70px;
    background: #fff;
}

.ftc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.ftc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

.ftc-main { min-width: 0; }

/* --- Encabezado --- */
.ftc-course-title {
    font-family: var(--ft-font-heading, 'Playfair Display', serif);
    color: var(--ft-color-primary, #0D1B2A);
    font-size: 2.1rem;
    line-height: 1.25;
    margin: 0 0 18px;
}

.ftc-instructor {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.ftc-instructor-foto {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
}
.ftc-instructor-nombre { font-weight: 700; color: var(--ft-color-primary, #0D1B2A); }
.ftc-instructor-nombre a { color: inherit; text-decoration: none; }
.ftc-instructor-nombre a:hover { color: var(--ft-color-secondary, #C6A64D); }
.ftc-instructor-cargo {
    padding-left: 14px;
    border-left: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
}

.ftc-descripcion { line-height: 1.7; color: #555; }
.ftc-descripcion p { margin: 0 0 14px; }

.ftc-vermas {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ft-color-secondary, #C6A64D);
    cursor: pointer;
}
.ftc-vermas:hover { text-decoration: underline; }

/* --- Estrellas --- */
.ftc-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.ftc-star { color: #dcdcdc; flex-shrink: 0; }
.ftc-star-on { color: var(--ft-color-secondary, #C6A64D); }

.ftc-rating-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    padding: 14px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.ftc-rating-count { color: #888; font-size: 0.9rem; }

/* --- Secciones --- */
.ftc-section { margin-top: 40px; }

.ftc-section-title {
    font-family: var(--ft-font-heading, 'Playfair Display', serif);
    color: var(--ft-color-primary, #0D1B2A);
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 20px;
}
.ftc-section-title.ftc-title-sm { font-size: 1.25rem; }

.ftc-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ft-color-secondary, #C6A64D);
    margin-bottom: 8px;
}

/* --- Requisitos --- */
.ftc-req-box {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 6px 18px;
}
.ftc-req-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.95rem;
}
.ftc-req-item:last-child { border-bottom: none; }
.ftc-req-icon { color: var(--ft-color-secondary, #C6A64D); flex-shrink: 0; line-height: 1; }

/* --- Qué aprenderás --- */
.ftc-learn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ftc-learn-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
    color: #555;
}
.ftc-learn-item .ftc-check {
    color: var(--ft-color-secondary, #C6A64D);
    flex-shrink: 0;
    margin-top: 3px;
}

/* --- Temario / Acordeón --- */
.ftc-temario-meta {
    font-size: 0.85rem;
    color: #888;
    margin: -8px 0 18px;
}

.ftc-accordion {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.ftc-acc-item { border-bottom: 1px solid #e8e8e8; }
.ftc-acc-item:last-child { border-bottom: none; }

.ftc-acc-head {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.2s ease;
}
.ftc-acc-head:hover { background: #fafafa; }

.ftc-acc-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ft-color-primary, #0D1B2A);
}

.ftc-acc-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #999;
    flex-shrink: 0;
}

.ftc-acc-arrow {
    width: 8px; height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-top: -4px;
}
.ftc-acc-item.ftc-open .ftc-acc-arrow { transform: rotate(225deg); margin-top: 2px; }

.ftc-acc-body { display: none; padding: 0 18px 8px; background: #fcfcfc; }
.ftc-acc-item.ftc-open .ftc-acc-body { display: block; }

.ftc-clases { list-style: none; margin: 0; padding: 0; }
.ftc-clase { border-bottom: 1px solid #f0f0f0; }

.ftc-clase-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 0;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
}
a.ftc-clase-row:hover { color: var(--ft-color-secondary, #C6A64D); }
a.ftc-clase-row .ftc-clase-titulo { text-decoration: underline; text-underline-offset: 3px; }
.ftc-clase:last-child { border-bottom: none; }
.ftc-clase-num { color: #aaa; flex-shrink: 0; }
.ftc-clase-titulo { flex: 1; }
.ftc-clase-dur { color: #999; font-size: 0.82rem; flex-shrink: 0; }

.ftc-badge-free {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--ft-color-light, #F4F4F4);
    color: var(--ft-color-secondary, #C6A64D);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* --- Dificultad --- */
.ftc-dif-title {
    font-family: var(--ft-font-heading, 'Playfair Display', serif);
    color: var(--ft-color-primary, #0D1B2A);
    font-size: 1.4rem;
    margin: 0 0 14px;
}
.ftc-dif-text { line-height: 1.75; color: #555; }
.ftc-dif-text p { margin: 0 0 14px; }

/* --- Habilidades --- */
.ftc-hab-list { display: grid; gap: 16px; }
.ftc-hab-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px 22px;
}
.ftc-hab-title {
    font-family: var(--ft-font-heading, 'Playfair Display', serif);
    font-size: 1.05rem;
    color: var(--ft-color-primary, #0D1B2A);
    margin: 0 0 8px;
}
.ftc-hab-desc { margin: 0; color: #666; line-height: 1.65; font-size: 0.92rem; }

/* --- Valoraciones --- */
.ftc-valoraciones {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 30px;
    align-items: center;
}
.ftc-val-score { text-align: center; }
.ftc-val-num {
    display: block;
    font-family: var(--ft-font-heading, 'Playfair Display', serif);
    font-size: 3rem;
    line-height: 1;
    color: var(--ft-color-primary, #0D1B2A);
    margin-bottom: 6px;
}
.ftc-val-label { display: block; margin-top: 6px; font-size: 0.8rem; color: #999; }

.ftc-val-bars { display: grid; gap: 8px; }
.ftc-val-row { display: flex; align-items: center; gap: 12px; }
.ftc-val-stars { flex-shrink: 0; }
.ftc-val-track {
    flex: 1;
    height: 8px;
    border-radius: 20px;
    background: #eee;
    overflow: hidden;
}
.ftc-val-fill {
    display: block;
    height: 100%;
    background: var(--ft-color-secondary, #C6A64D);
    border-radius: 20px;
}
.ftc-val-pct { width: 46px; text-align: right; font-size: 0.82rem; color: #888; flex-shrink: 0; }

/* --- Comentarios --- */
.ftc-comentarios { display: grid; gap: 22px; }
.ftc-com-item { display: flex; gap: 14px; }
.ftc-com-foto {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ftc-com-foto-ph { background: #e6e6e6; display: block; }
.ftc-com-nombre {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ft-color-primary, #0D1B2A);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ftc-com-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ftc-com-fecha { font-size: 0.78rem; color: #999; }
.ftc-com-texto { margin: 8px 0 0; color: #555; line-height: 1.6; font-size: 0.93rem; }

/* --- Banner CTA --- */
.ftc-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 45px;
    padding: 36px 40px;
    border-radius: 8px;
    background: var(--ft-color-primary, #0D1B2A);
    color: #fff;
}
.ftc-cta-title {
    font-family: var(--ft-font-heading, 'Playfair Display', serif);
    font-size: 1.6rem;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}
.ftc-cta-precio { margin: 12px 0 0; font-size: 1.1rem; }
.ftc-cta-precio strong { font-size: 1.5rem; }
.ftc-cta-precio span { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-left: 6px; }

/* --- FAQ --- */
.ftc-faq-resp { margin: 0; padding: 4px 0 16px; color: #666; line-height: 1.7; font-size: 0.93rem; }

/* --- Botones --- */
.ftc-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ftc-btn-primary {
    background: var(--ft-color-primary, #0D1B2A);
    color: #fff !important;
    border: 2px solid var(--ft-color-primary, #0D1B2A);
}
.ftc-btn-primary:hover {
    background: var(--ft-color-secondary, #C6A64D);
    border-color: var(--ft-color-secondary, #C6A64D);
}
.ftc-btn-outline {
    background: transparent;
    color: var(--ft-color-primary, #0D1B2A) !important;
    border: 2px solid var(--ft-color-primary, #0D1B2A);
    margin-top: 10px;
}
.ftc-btn-outline:hover {
    background: var(--ft-color-primary, #0D1B2A);
    color: #fff !important;
}
.ftc-btn-gold {
    width: auto;
    background: var(--ft-color-secondary, #C6A64D);
    color: #fff !important;
    border: 2px solid var(--ft-color-secondary, #C6A64D);
    flex-shrink: 0;
}
.ftc-btn-gold:hover { background: transparent; color: var(--ft-color-secondary, #C6A64D) !important; }

/* --- Barra lateral --- */
.ftc-sidebar-inner { position: sticky; top: 24px; }

.ftc-trailer { margin-bottom: 16px; border-radius: 8px; overflow: hidden; }
.ftc-trailer img { width: 100%; height: auto; display: block; }

.ftc-card {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(13,27,42,0.06);
    background: #fff;
}
.ftc-card + .ftc-card { margin-top: 16px; }

.ftc-owned {
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 4px;
    background: var(--ft-color-light, #F4F4F4);
    color: var(--ft-color-primary, #0D1B2A);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

/* Planes de precio */
.ftc-plan {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ftc-plan:hover { border-color: #c9c9c9; }
.ftc-plan.ftc-plan-active {
    border-color: var(--ft-color-secondary, #C6A64D);
    box-shadow: 0 0 0 1px var(--ft-color-secondary, #C6A64D);
}
.ftc-plan input { margin-top: 4px; flex-shrink: 0; accent-color: var(--ft-color-secondary, #C6A64D); }
.ftc-plan-body { display: block; }
.ftc-plan-label { display: block; font-size: 0.82rem; color: #777; margin-bottom: 4px; }
.ftc-plan-precio {
    display: block;
    font-family: var(--ft-font-heading, 'Playfair Display', serif);
    font-size: 1.5rem;
    color: var(--ft-color-primary, #0D1B2A);
}
.ftc-plan-precio del { font-size: 0.85rem; color: #aaa; margin-left: 8px; font-family: var(--ft-font-body, 'Lato', sans-serif); }
.ftc-plan-precio-alt { color: var(--ft-color-secondary, #C6A64D); }
.ftc-plan-desc { display: block; margin-top: 6px; font-size: 0.8rem; color: #777; line-height: 1.5; }

/* Garantía */
.ftc-garantia {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.ftc-garantia-dias {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid var(--ft-color-secondary, #C6A64D);
    color: var(--ft-color-secondary, #C6A64D);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}
.ftc-garantia-dias small { font-size: 0.6rem; font-weight: 400; text-transform: uppercase; }
.ftc-garantia-texto { font-size: 0.8rem; color: #777; line-height: 1.5; }

/* Info del curso */
.ftc-info-title {
    font-family: var(--ft-font-heading, 'Playfair Display', serif);
    font-size: 1.05rem;
    color: var(--ft-color-primary, #0D1B2A);
    margin: 0 0 14px;
}
.ftc-info-list { list-style: none; margin: 0; padding: 0; }
.ftc-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.88rem;
    color: #555;
}
.ftc-info-list li:last-child { border-bottom: none; }
.ftc-info-list .ftc-icon { color: var(--ft-color-secondary, #C6A64D); flex-shrink: 0; }

/* --- Fachada de video (carga diferida) --- */
.ftc-video-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    cursor: pointer;
}
.ftc-video-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}
.ftc-video-facade:hover .ftc-video-thumb { opacity: 0.82; }

.ftc-video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.ftc-play-bg { fill: rgba(13,27,42,0.75); transition: fill 0.2s ease; }
.ftc-video-facade:hover .ftc-play-bg { fill: var(--ft-color-secondary, #C6A64D); }

.ftc-video-label {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

.ftc-video-facade iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .ftc-layout { grid-template-columns: 1fr; gap: 30px; }
    .ftc-sidebar { order: -1; }
    .ftc-sidebar-inner { position: static; }
    .ftc-container { padding: 0 20px; }
}

@media (max-width: 700px) {
    .ftc-course-title { font-size: 1.6rem; }
    .ftc-learn-grid { grid-template-columns: 1fr; gap: 18px; }
    .ftc-valoraciones { grid-template-columns: 1fr; gap: 20px; }
    .ftc-acc-head { flex-wrap: wrap; gap: 6px 14px; padding: 14px; }
    .ftc-acc-name { flex-basis: 100%; }
    .ftc-cta-banner { padding: 28px 22px; }
    .ftc-cta-title { font-size: 1.3rem; }
    .ftc-btn-gold { width: 100%; }
    .ftc-instructor-cargo { padding-left: 0; border-left: none; }
}

/* --- Ventana modal de video --- */
.ftc-vmodal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 4vw;
    background: rgba(5, 10, 18, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 100000;
}
.ftc-vmodal-open { opacity: 1; visibility: visible; }

.ftc-vmodal-box {
    width: min(1100px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.ftc-vmodal-box iframe { width: 100%; height: 100%; border: 0; display: block; }

.ftc-vmodal-close {
    position: absolute;
    top: 16px;
    right: 26px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}
.ftc-vmodal-close:hover { color: var(--ft-color-secondary, #C6A64D); }

@media (max-width: 600px) {
    .ftc-vmodal { padding: 0; }
    .ftc-vmodal-box { border-radius: 0; }
    .ftc-vmodal-close { top: 8px; right: 14px; font-size: 2.2rem; z-index: 2; }
}