.tutorial-modal-content {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    width: 96%;
    max-width: 1100px; /* Aumenta el tamaño máximo */
    margin: 60px auto; /* Más espacio arriba y abajo */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tutorial-modal-body {
    display: flex;
    flex-direction: row;
    min-height: unset;
    height: auto;
    max-height: none;
    overflow: visible;
}

.tutorial-tabs-list {
    background: #f7f7fa;
    border-right: 1px solid #eee;
    min-width: 280px;
    max-width: 300px;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
}

.tutorial-tabs-list .nav-link {
    color: #b51b6f;
    font-weight: 600;
    border-radius: 0;
    padding: 16px 20px;
    margin-bottom: 4px;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: left;
    border: none;
}

.tutorial-tabs-list .nav-link.active,
.tutorial-tabs-list .nav-link:focus,
.tutorial-tabs-list .nav-link:hover {
    background: #fde6f4;
    color: #DE208B;
    border: none;
}

.tutorial-tabs-list .nav-link i {
    margin-right: 10px;
    font-size: 16px;
    vertical-align: middle;
}

.tutorial-tabs-content {
    padding: 32px;
    width: 100%;
    min-height: unset;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: visible;
}

.tutorial-tab-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #DE208B;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.tutorial-tab-desc {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.5;
}

.tutorial-video-wrapper {
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 98%; /* Más ancho pero no 100% */
    max-width: 1050px; /* Aumenta el tamaño máximo */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.tutorial-video {
    width: 100%;
    height: auto !important;
    background: #000;
    object-fit: unset !important;
    display: block;
    max-width: 100%;
}

/* Estilos para Plyr */
.plyr {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
}

.plyr__video-wrapper {
    background: #000 !important;
    height: auto !important;
}

.plyr--fullscreen-enabled .plyr__video-wrapper video {
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
}

.plyr--fullscreen-enabled {
    background: #000 !important;
}

/* Sobreescribir estilos de Plyr para PYAFI */
.tutorial-modal-content .plyr,
.tutorial-modal-content .plyr__video-wrapper,
.tutorial-modal-content .plyr__controls {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #b51b6f !important;
    font-family: inherit !important;
}

.tutorial-modal-content .plyr__controls {
    background: #fde6f4 !important;
    border-radius: 0 0 8px 8px !important;
    padding: 8px 16px !important;
    border-top: 1px solid #eee !important;
}

.tutorial-modal-content .plyr__control {
    color: #b51b6f !important;
    background: transparent !important;
    border-radius: 4px !important;
    transition: background 0.2s;
}
.tutorial-modal-content .plyr__control[aria-pressed="true"],
.tutorial-modal-content .plyr__control:hover,
.tutorial-modal-content .plyr__control:focus {
    background: #DE208B !important;
    color: #fff !important;
}

.tutorial-modal-content .plyr__progress--played,
.tutorial-modal-content .plyr__progress input[type=range]::-webkit-slider-thumb {
    background: #DE208B !important;
}

.tutorial-modal-content .plyr__progress input[type=range]::-webkit-slider-thumb {
    border: 2px solid #DE208B !important;
}

.tutorial-modal-content .plyr__progress input[type=range]::-ms-fill-lower,
.tutorial-modal-content .plyr__progress input[type=range]::-ms-fill-upper {
    background: #fde6f4 !important;
}

.tutorial-modal-content .plyr__menu__container {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    color: #b51b6f !important;
}

.tutorial-modal-content .plyr__menu__container .plyr__control[role="menuitem"]:hover,
.tutorial-modal-content .plyr__menu__container .plyr__control[role="menuitem"]:focus {
    background: #fde6f4 !important;
    color: #DE208B !important;
}

.tutorial-modal-content .plyr__volume input[type=range]::-webkit-slider-thumb {
    background: #DE208B !important;
}

.tutorial-modal-content .plyr__tooltip {
    background: #DE208B !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 13px !important;
}

.tutorial-modal-content .plyr__control--overlaid {
    background: #DE208B !important;
    color: #fff !important;
    border-radius: 0% !important;
    box-shadow: 0 2px 8px rgba(222,32,139,0.15) !important;
}

.tutorial-modal-content .plyr__control--overlaid svg {
    fill: #fff !important;
}

.tutorial-modal-content .plyr__time {
    color: #b51b6f !important;
    font-weight: 600 !important;
}

.tutorial-modal-content .plyr__progress input[type=range] {
    accent-color: #DE208B !important;
}

/* Mejorar contraste de iconos en controles */
.tutorial-modal-content .plyr__controls svg {
    fill: #b51b6f !important;
}
.tutorial-modal-content .plyr__control[aria-pressed="true"] svg,
.tutorial-modal-content .plyr__control:hover svg,
.tutorial-modal-content .plyr__control:focus svg {
    fill: #fff !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .tutorial-modal-content {
        max-width: 99vw;
        width: 99%;
    }
    .tutorial-modal-body {
        height: auto;
    }
    .tutorial-video-wrapper {
        max-width: 99vw;
        width: 99%;
    }
}

@media (max-width: 991px) {
    .tutorial-modal-body {
        flex-direction: column;
        height: auto;
        min-height: unset;
    }
    .tutorial-tabs-list {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #eee;
        min-width: 0;
        max-width: 100%;
        padding: 0;
        height: auto;
        overflow-x: auto;
    }
    .tutorial-tabs-list .nav {
        flex-direction: row;
        width: 100%;
        white-space: nowrap;
    }
    .tutorial-tabs-list .nav-link {
        padding: 12px 16px;
        font-size: 14px;
        margin-bottom: 0;
        margin-right: 2px;
        white-space: nowrap;
    }
    .tutorial-tabs-content {
        padding: 20px;
        min-height: unset;
        height: auto;
    }
    .tutorial-video-wrapper {
        max-width: 100vw;
    }
}

@media (max-width: 576px) {
    .tutorial-tabs-content {
        padding: 8px;
    }
    .tutorial-video-wrapper {
        max-width: 100vw;
    }
}