﻿/* ===== ESTILOS GLOBALES Y UNIFICADOS ===== */
:root {
    --page-max: 1200px;
    --brand: #6F009E;
    --danger: #ff5b5b;
    --dangerShadow: rgba(255,91,91,.28);
    --ink: #111;
}

body.no-auth .main-content {
    margin-left: 0 !important;
    width: 100% !important;
}

body.no-auth .container-fluid {
    max-width: var(--page-max);
    margin-inline: auto !important;
    padding-inline: 16px !important;
}

body.no-auth .card {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0 auto;
}

#hs-complementos {
    max-width: 1150px;
    margin: 0 auto;
    padding: 26px 16px 20px;
    font-family: Inter, Helvetica, Arial, sans-serif;
}

    #hs-complementos .hs-head {
        text-align: center;
    }

    #hs-complementos .hs-logo {
        display: block;
        margin: 0 auto 6px;
        max-width: 360px;
        width: 100%;
        height: auto;
    }

    #hs-complementos .h1a {
        margin: 8px 0 2px;
        line-height: 1.1;
        font-weight: 800;
        font-size: clamp(22px,2.4vw,34px);
        color: var(--ink);
    }

    #hs-complementos .h1b {
        margin: 0 0 8px;
        line-height: 1.1;
        font-weight: 800;
        font-size: clamp(22px,2.3vw,32px);
        color: var(--ink);
    }

        #hs-complementos .h1b .accent {
            color: #5C31C7;
        }

    #hs-complementos .pleca {
        width: 120px;
        display: block;
        margin: 10px auto 14px;
    }

    #hs-complementos .lead {
        margin: 0 auto 4px;
        max-width: 860px;
        color: #333;
        font-size: clamp(13px,1.4vw,16px);
        line-height: 1.55;
    }

    #hs-complementos .rows {
        margin-top: 16px;
    }

    /* Tarjeta (3 columnas) */
    #hs-complementos .hs-row {
        display: grid;
        /* SE AJUSTÓ LA TERCERA COLUMNA A 280px PARA QUE QUEPA EL VIDEO */
        grid-template-columns: 240px 1fr 280px;
        gap: 18px 28px;
        align-items: start;
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 18px;
        padding: 24px 28px;
        box-shadow: 0 1px 0 rgba(0,0,0,.02);
        transition: box-shadow .15s ease, border-color .15s ease;
        margin: 18px 0;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

        #hs-complementos .hs-row.hs-active {
            border: 6px solid var(--danger);
            box-shadow: 0 14px 34px var(--dangerShadow), 0 1px 0 rgba(0,0,0,.02) inset;
        }

    #hs-complementos .cell-icon {
        display: grid;
        place-items: center;
        text-align: center;
        gap: 10px;
        align-self: center;
    }

    #hs-complementos .ico {
        font-size: 72px;
        line-height: 1;
        color: var(--brand);
    }

    #hs-complementos .row-title {
        margin: 0;
        font-weight: 700;
        font-size: clamp(14px,1.4vw,18px);
        text-align: center;
        color: var(--brand) !important;
    }

    #hs-complementos .hs-row.hs-active .ico, #hs-complementos .hs-row.hs-active .row-title {
        color: var(--danger) !important;
    }

    #hs-complementos .row-body {
        min-width: 0;
    }

    #hs-complementos .hs-copy p {
        margin: 0 0 12px;
        color: #1d1d1f;
        line-height: 1.55;
        font-size: clamp(13px,1.2vw,16px);
        font-family: Helvetica, Arial, sans-serif;
    }

        #hs-complementos .hs-copy p strong {
            font-weight: 800;
        }

    #hs-complementos .hs-bullets {
        margin: 6px 0 0;
        padding-left: 20px;
        list-style: disc;
        color: #2a2a2a;
        font-size: 13px;
        line-height: 17px;
        font-family: Roboto, Helvetica, Arial, sans-serif;
    }

        #hs-complementos .hs-bullets li {
            margin: 4px 0;
        }

        #hs-complementos .hs-bullets strong {
            font-weight: 700;
        }

    /* AJUSTES A LA COLUMNA DERECHA (CTA Y VIDEO) */
    #hs-complementos .row-cta {
        align-self: start; /* Alineado arriba para coincidir con el video */
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

/* ESTILOS DEL CONTENEDOR DEL VIDEO CORREGIDOS */
.video-wrapper-inline {
    width: 100%;
    /* La proporción se define aquí para que el contenedor tenga altura real */
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #eaeaf0;
    background: #000;
    position: relative; /* Importante */
}

    .video-wrapper-inline iframe {
        /* El iframe ahora simplemente obedece al tamaño del padre */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* Botón base */
.btn-complemento {
    background: #8922A1;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    transition: .15s ease;
    box-shadow: 0 6px 14px rgba(111,44,255,.25);
    width: 100%; /* El botón ahora abarca todo el ancho debajo del video */
}

    .btn-complemento:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(111,44,255,.30);
    }

    .btn-complemento.activo {
        background: #ff5b5b;
        box-shadow: 0 10px 26px rgba(255,91,91,.28);
    }

.price-note {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: center;
    width: 100%;
    font-weight: 600;
}

    .price-note .v-precio {
        font-weight: 800;
        color: #111;
        white-space: nowrap;
    }

/* ===== Tablas y Responsividad ===== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    margin-bottom: 10px;
}

.hs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #eaeaf0;
    border-radius: 12px;
    overflow: hidden;
}

    .hs-table thead th {
        background: #fafafa;
        font-weight: 800;
        font-size: 13px;
        color: #333;
        padding: 10px 14px;
        border-bottom: 1px solid #eaeaf0;
    }

    .hs-table tbody td {
        padding: 12px 14px;
        border-bottom: 1px solid #f0f0f3;
        font-size: 14px;
    }

    .hs-table tbody tr {
        cursor: pointer;
        transition: background .12s ease;
    }

        .hs-table tbody tr:hover {
            background: #f9f7ff;
        }

        .hs-table tbody tr.sel {
            background: #f1edff;
        }

    .hs-table .td-right {
        text-align: right;
        font-weight: 800;
        white-space: nowrap;
    }

.pkg-bullets {
    padding-left: 20px;
    margin: 0;
    font-size: 13px;
    word-wrap: break-word;
    white-space: normal;
}

/* Checkbox */
.hs-cell-check {
    width: 42px;
    text-align: center;
}

.hs-check {
    --c: #6F009E;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid #cfcfe7;
    display: inline-grid;
    place-items: center;
    background: #fff;
    transition: .15s;
    cursor: pointer;
}

    .hs-check::after {
        content: "\f00c";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 11px;
        color: #fff;
        transform: scale(.6);
        opacity: 0;
        transition: .15s;
    }

    .hs-check:checked {
        background: var(--c);
        border-color: var(--c);
    }

        .hs-check:checked::after {
            opacity: 1;
            transform: scale(1);
        }

/* Head Cursos */
.courses-head {
    text-align: center;
    margin: 22px 0 10px;
}

    .courses-head h3 {
        color: #5C31C7;
        font-weight: 800;
        margin-bottom: 4px;
    }

    .courses-head p {
        margin: 0;
        color: #333;
    }

/* Recuadro metodología */
.info-box-metodologia {
    max-width: 1100px;
    margin: 20px auto;
    padding: 15px;
    background: #f9f7ff;
    border-radius: 12px;
    border: 1px dashed #8922A1;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    word-break: break-word;
}

#btnContinuarCompra {
    margin-bottom: 12px;
}

/* ===== CORRECCIÓN RESPONSIVA MÓVILES ===== */
@media (max-width: 992px) {
    #hs-complementos .hs-row {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 12px;
        gap: 16px;
    }

    .hs-table thead th {
        padding: 8px 6px;
        font-size: 12px;
    }

    .hs-table tbody td {
        padding: 10px 6px;
        font-size: 13px;
    }

    .hs-cell-check {
        width: 32px;
    }

    .pkg-bullets {
        padding-left: 14px;
    }

    #hs-complementos .row-cta {
        align-items: stretch;
        width: 100%;
        margin-top: 10px;
    }

    .btn-complemento {
        width: 100%;
        text-align: center;
    }

    .info-box-metodologia {
        flex-direction: column;
        text-align: center;
    }
}

body.no-auth,
body.no-auth html {
    height: auto !important;
    overflow-y: auto !important;
}

    body.no-auth .main-content {
        height: auto !important;
        overflow: visible !important;
    }

