:root {
    --yv-blue: #075985;
    --yv-blue-dark: #063b61;
    --yv-teal: #760f0f;
    --yv-green: #a31616;
    --yv-dark: #0f172a;
    --yv-text: #243447;
    --yv-muted: #64748b;
    --yv-border: #e2e8f0;
    --yv-bg: #f4f7fa;
    --yv-shadow:
        0 30px 80px rgba(15, 23, 42, .28),
        0 10px 30px rgba(15, 23, 42, .12);
}


/* =========================================================
   BOTÓN FLOTANTE
   ========================================================= */
.yv-help {
    position: fixed;
    top: 50%;
    right: 26px;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #075985;
    cursor: pointer;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(7, 89, 133, .28);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, background-color .25s ease;
}

.yv-help:hover {
    background: #063b61;
    transform: translateY(-50%) translateY(-3px);
    box-shadow: 0 10px 24px rgba(7, 89, 133, .34);
}

.yv-help-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    box-shadow: none;
}

/* Tooltip */

.yv-help-label {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    padding: 10px 15px;
    border-radius: 9px;
    background: #102333;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

.yv-help-label::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #102333;
}

.yv-help:hover .yv-help-label {
    opacity: 1;
    visibility: visible;
    transform:
        translateY(-50%) translateX(0);
}

.yv-help-label.yv-show-auto {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* =========================================================
   OVERLAY
   ========================================================= */

.yv-tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: radial-gradient(circle at 50% 30%, rgba(7, 89, 133, .16), transparent 45%), rgba(4, 15, 26, .78);
    backdrop-filter: blur(9px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.yv-tutorial-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   MODAL
   ========================================================= */

.yv-tutorial-modal {
    width: min(920px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 24px;
    background: #f7f9fb;
    box-shadow: var(--yv-shadow);
    transform: translateY(25px) scale(.97);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.yv-tutorial-overlay.active .yv-tutorial-modal {
    transform: translateY(0) scale(1);
}


/* =========================================================
   HEADER
   ========================================================= */

.yv-tutorial-header {
    position: relative;
    padding: 25px 30px 27px;
    overflow: hidden;
    background: linear-gradient(120deg, #a30b2c 0%, #850707 48%, #7c0808 100%);
}

/* Decoración */

.yv-tutorial-header::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -120px;
    top: -180px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .13);
}

.yv-tutorial-header::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -55px;
    top: -120px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
}

/* Contenido header */

.yv-tutorial-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.yv-tutorial-heading-icon {
    width: 47px;
    height: 47px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 19px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.yv-tutorial-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -.3px;
}

.yv-tutorial-heading span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
}

/* Close */

.yv-tutorial-close {
    position: absolute;
    right: 24px;
    top: 24px;
    z-index: 5;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .8);
    cursor: pointer;
    font-size: 19px;
    transition: .2s;
}

.yv-tutorial-close:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    transform: rotate(3deg);
}


/* =========================================================
   INTRO
   ========================================================= */

.yv-tutorial-body {
    padding: 27px 30px 30px;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6f9 100%);
}

.yv-tutorial-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 21px;
}

.yv-tutorial-intro h4 {
    margin: 0 0 7px;
    color: #162638;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -.45px;
}

.yv-tutorial-intro p {
    margin: 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
}

/* Badge */

.yv-tutorial-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 9px;
    background: #e8f4f5;
    color: #a30b2c;
    border: 1px solid #cce8e9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .45px;
}

.yv-tutorial-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a30b2c;
}


/* =========================================================
   MINI PASOS
   ========================================================= */

.yv-steps {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid #e1e8ee;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .035);
}

.yv-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a8795;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.yv-step-number {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f1f5;
    color: #075985;
    font-size: 10px;
    font-weight: 800;
}

.yv-step.active .yv-step-number {
    background: linear-gradient(135deg, #075985, #760f0f);
    color: white;
}

.yv-step.active {
    color: #334155;
}

.yv-step-line {
    flex: 1;
    height: 1px;
    margin: 0 12px;
    background: #dce5eb;
}


/* =========================================================
   VIDEO
   ========================================================= */

.yv-video-container {
    position: relative;
    padding: 6px;
    border-radius: 17px;
    background: linear-gradient(135deg, #cbd5df, #e8edf1);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.yv-video-inner {
    overflow: hidden;
    border-radius: 12px;
    background: #020617;
    position: relative;
}

.yv-video-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 3;
    background: linear-gradient(90deg, #a30b2c, #115ea6, #c52222);
}

.yv-video-container video {
    display: block;
    width: 100%;
    max-height: 465px;
    background: #020617;
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.yv-tutorial-footer {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #dbe5ec;
    border-radius: 12px;
    background: rgba(255, 255, 255, .75);
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}

.yv-tutorial-footer strong {
    color: #334155;
    font-weight: 700;
}

.yv-tutorial-footer-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #e7f5f5;
    color: #087c78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .yv-tutorial-overlay {
        padding: 10px;
        align-items: center;
    }

    .yv-tutorial-modal {
        width: 100%;
        max-width: 100%;
        max-height: 94vh;
        border-radius: 18px;
        overflow-y: auto;
    }

    .yv-tutorial-header {
        padding: 18px 18px 20px;
    }

    .yv-tutorial-heading {
        gap: 11px;
        padding-right: 35px;
    }

    .yv-tutorial-heading-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 17px;
    }

    .yv-tutorial-heading h3 {
        font-size: 16px;
    }

    .yv-tutorial-heading span {
        font-size: 10px;
        margin-top: 3px;
    }

    .yv-tutorial-close {
        right: 14px;
        top: 14px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .yv-tutorial-body {
        padding: 18px;
    }

    .yv-tutorial-intro {
        display: block;
        margin-bottom: 15px;
    }

    .yv-tutorial-intro h4 {
        font-size: 17px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .yv-tutorial-intro p {
        font-size: 12px;
        line-height: 1.5;
    }

    .yv-tutorial-badge {
        display: inline-flex;
        margin-top: 11px;
        padding: 7px 10px;
        font-size: 9px;
    }

    /* Ocultamos los pasos en móvil */
    .yv-steps {
        display: none;
    }

    .yv-video-container {
        padding: 4px;
        border-radius: 13px;
        box-shadow: 0 10px 25px rgba(15, 23, 42, .14);
    }

    .yv-video-inner {
        border-radius: 9px;
    }

    .yv-video-inner::before {
        height: 2px;
    }

    .yv-video-container iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
        display: block;
    }

    .yv-tutorial-footer {
        margin-top: 14px;
        padding: 11px 12px;
        gap: 9px;
        font-size: 11px;
        line-height: 1.45;
    }

    .yv-tutorial-footer-icon {
        width: 27px;
        height: 27px;
        min-width: 27px;
        border-radius: 8px;
        font-size: 11px;
    }
}


@media (max-width: 430px) {

    .yv-tutorial-overlay {
        padding: 8px;
    }

    .yv-tutorial-modal {
        max-height: 95vh;
        border-radius: 16px;
    }

    .yv-tutorial-header {
        padding: 16px;
    }

    .yv-tutorial-heading-icon {
        width: 37px;
        height: 37px;
        border-radius: 10px;
        font-size: 16px;
    }

    .yv-tutorial-heading h3 {
        font-size: 15px;
    }

    .yv-tutorial-heading span {
        font-size: 9px;
    }

    .yv-tutorial-close {
        width: 30px;
        height: 30px;
        right: 12px;
        top: 12px;
    }

    .yv-tutorial-body {
        padding: 15px;
    }

    .yv-tutorial-intro h4 {
        font-size: 16px;
    }

    .yv-tutorial-intro p {
        font-size: 11px;
    }

    .yv-tutorial-badge {
        font-size: 8px;
        padding: 6px 9px;
    }

    .yv-tutorial-footer {
        font-size: 10.5px;
    }
}