.tutorials-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1189px;
    margin: 50px auto 0;
    background: var(--White--Background-White, #FFF);
}

.tutorials-title {
    margin: 0 0 48px;
}

.tutorials-title p {
    margin: 0;
    color: var(--Brand-Colors-Blue-00, #1B365D);
    text-align: center;
    font-family: "Encode Sans";
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 38px;
    letter-spacing: -0.72px;
}

.tutorials-title strong {
    color: var(--Brand-Colors-Turquoise-00, #00AEC7);
    font-weight: 700;
}

.tutorials-cards {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-bottom: 48px;
}

.tutorial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.tutorial-video {
    align-self: stretch;
    width: 100%;
    height: 640px;
    border: 0;
    border-radius: 16px;
    margin-bottom: 24px;
}

.tutorial-card-title {
    color: var(--Brand-Colors-Blue-00, #1B365D);
    text-align: center;
    font-family: "Encode Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.4px;
}

.tutorials-button {
    display: flex;
    height: 42px;
    padding: 11px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border-radius: 30px;
    border: 2px solid var(--Brand-Colors-Turquoise-00, #00AEC7);
    color: var(--Brand-Colors-Turquoise-00, #00AEC7);
    text-align: center;
    text-decoration: none;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Lato;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
}

/* Carrusel: solo visible en mobile */
.tutorials-carousel {
    position: relative;
    width: 100%;
}

.tutorials-arrows,
.tutorials-nav {
    display: none;
}

@media (max-width: 768px) {
    .tutorials-section {
        margin-top: 30px;
        margin-bottom: 80px;
    }

    .tutorials-title {
        margin-bottom: 24px;
        width: 320px;
        text-align: center;
    }

    .tutorials-title p {
        font-size: 20px;
        line-height: normal;
        letter-spacing: -0.4px;
    }

    .tutorials-carousel {
        overflow: hidden;
        margin-bottom: 32px;
    }

    .tutorials-cards {
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        margin-bottom: 0;
        transition: transform 0.35s ease;
        will-change: transform;
    }

    .tutorial-card {
        flex: 0 0 76%;
        filter: blur(3px);
        pointer-events: none;
        transition: filter 0.35s ease;
    }

    .tutorial-card.active {
        filter: none;
        pointer-events: auto;
    }

    .tutorial-card.active .tutorial-video {
        height: 494.763px;
    }

    .tutorial-video {
        height: 461.568px;
        transition: height 0.35s ease;
        margin-bottom: 16px;
    }

    .tutorial-card-title {
        font-size: 20px;
        font-weight: 500;
        line-height: normal;
        letter-spacing: -0.4px;
    }

    /* Overlay con la altura del video activo para centrar las flechas sobre él */
    .tutorials-arrows {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2;
        height: 494.763px;
        padding: 0 13px;
        box-sizing: border-box;
        align-items: center;
        justify-content: space-between;
        pointer-events: none;
    }

    .tutorials-arrow {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 38.735px;
        height: 38.735px;
        padding: 0;
        flex-shrink: 0;
        border-radius: 50%;
        border: 2px solid #00AEC7;
        background: #FFF;
        color: #00AEC7;
        cursor: pointer;
        pointer-events: auto;
    }

    .tutorials-arrow-prev {
        transform: rotate(-180deg);
    }

    .tutorials-arrow:disabled {
        border-color: #A1A1A1;
        color: #A1A1A1;
        cursor: default;
    }

    .tutorials-nav {
        display: flex;
        gap: 12px;
        width: 100%;
    }

    .tutorials-nav-button {
        display: flex;
        height: 34px;
        padding: 9px 11px;
        justify-content: center;
        align-items: center;
        gap: 6px;
        flex: 1 0 0;
        border: 1px solid var(--Brand-Colors-Turquoise-00, #00AEC7);
        border-radius: 30px;
        background: #FFF;
        color: var(--Brand-Colors-Turquoise-00, #00AEC7);
        font-feature-settings: 'liga' off, 'clig' off;
        font-family: Lato;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        cursor: pointer;
    }

    .tutorials-nav-button:disabled {
        border: 1px solid var(--Complementary-Colors-Black-50, #A1A1A1);
        color: var(--Complementary-Colors-Black-50, #A1A1A1);
        cursor: default;
    }

    .tutorials-button {
        display: none;
    }
}

/* Los textos de Kontent vienen envueltos en <p> */
.tutorial-card-title p {
    margin: 0;
}

.tutorials-title-image {
    display: inline-block;
    max-width: 100%;
    padding-left: 10px;
    vertical-align: middle;
}

/* Evita que el hover/focus global de <a> pinte el texto de azul */
.tutorials-button:visited,
.tutorials-button:hover,
.tutorials-button:focus,
.tutorials-button:active {
    color: var(--Brand-Colors-Turquoise-00, #00AEC7);
    text-decoration: none;
}

.tutorials-title-br {
    display: none;
}

@media (max-width: 768px) {
    .tutorials-title-br {
        display: inline;
    }

    .tutorials-title-image {
        height: 30px;
        width: auto;
    }
}

/* La imagen del título se renderiza dos veces: inline en desktop y en su propia línea en mobile */
.tutorials-title-image-mobile {
    display: none;
}

@media (max-width: 768px) {
    .tutorials-title-image-desktop {
        display: none;
    }

    .tutorials-title-image-mobile {
        display: block;
        margin: 0 auto;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .tutorials-title-cms-br {
        display: none;
    }
}

/* Kontent entrega el título en varios <p>: en mobile se encadenan en una sola línea de texto */
@media (max-width: 768px) {
    .tutorials-title p {
        display: inline;
    }
}
