.elementor-4070 .elementor-element.elementor-element-26b1581{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-4070 .elementor-element.elementor-element-6dae783{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--flex-wrap:nowrap;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-4070 .elementor-element.elementor-element-b2640f1{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-4070 .elementor-element.elementor-element-349c4dc{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-4070 .elementor-element.elementor-element-cb9c224{--display:flex;--flex-direction:row;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--align-items:center;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--flex-wrap:nowrap;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-widget-icon.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-primary );}.elementor-widget-icon.elementor-view-framed .elementor-icon, .elementor-widget-icon.elementor-view-default .elementor-icon{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-widget-icon.elementor-view-framed .elementor-icon, .elementor-widget-icon.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-primary );}.elementor-4070 .elementor-element.elementor-element-c3866ce.elementor-element{--align-self:center;}.elementor-4070 .elementor-element.elementor-element-c3866ce .elementor-icon-wrapper{text-align:center;}.elementor-4070 .elementor-element.elementor-element-c3866ce.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-5460fa4 );color:#D50101;}.elementor-4070 .elementor-element.elementor-element-c3866ce.elementor-view-framed .elementor-icon, .elementor-4070 .elementor-element.elementor-element-c3866ce.elementor-view-default .elementor-icon{color:var( --e-global-color-5460fa4 );border-color:var( --e-global-color-5460fa4 );}.elementor-4070 .elementor-element.elementor-element-c3866ce.elementor-view-framed .elementor-icon, .elementor-4070 .elementor-element.elementor-element-c3866ce.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-5460fa4 );}.elementor-4070 .elementor-element.elementor-element-c3866ce.elementor-view-framed .elementor-icon{background-color:#D50101;}.elementor-4070 .elementor-element.elementor-element-c3866ce.elementor-view-stacked .elementor-icon svg{fill:#D50101;}.elementor-4070 .elementor-element.elementor-element-c3866ce .elementor-icon{font-size:38px;padding:8px;}.elementor-4070 .elementor-element.elementor-element-c3866ce .elementor-icon svg{height:38px;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Arial, sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );word-spacing:var( --e-global-typography-primary-word-spacing );color:var( --e-global-color-primary );}.elementor-4070 .elementor-element.elementor-element-c319649 .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Arial, sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );word-spacing:var( --e-global-typography-primary-word-spacing );color:var( --e-global-color-1bb2198 );}.elementor-widget-divider{--divider-color:var( --e-global-color-secondary );}.elementor-widget-divider .elementor-divider__text{color:var( --e-global-color-secondary );font-family:var( --e-global-typography-secondary-font-family ), Arial, sans-serif;font-size:var( --e-global-typography-secondary-font-size );font-weight:var( --e-global-typography-secondary-font-weight );line-height:var( --e-global-typography-secondary-line-height );}.elementor-widget-divider.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon{color:var( --e-global-color-secondary );border-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-secondary );}.elementor-4070 .elementor-element.elementor-element-a329a47{--divider-border-style:solid;--divider-color:#000;--divider-border-width:3px;}.elementor-4070 .elementor-element.elementor-element-a329a47 .elementor-divider{text-align:left;padding-block-start:15px;padding-block-end:15px;}.elementor-4070 .elementor-element.elementor-element-a329a47 .elementor-divider-separator{margin:0 auto;margin-left:0;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Arial, sans-serif;font-size:var( --e-global-typography-text-font-size );font-weight:var( --e-global-typography-text-font-weight );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-widget-button .elementor-button{background-color:var( --e-global-color-accent );font-family:var( --e-global-typography-accent-font-family ), Arial, sans-serif;font-size:var( --e-global-typography-accent-font-size );font-weight:var( --e-global-typography-accent-font-weight );line-height:var( --e-global-typography-accent-line-height );letter-spacing:var( --e-global-typography-accent-letter-spacing );}.elementor-4070 .elementor-element.elementor-element-91dd61a.elementor-element{--align-self:center;}.elementor-4070 .elementor-element.elementor-element-811c652{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-4070 .elementor-element.elementor-element-182117b{width:100%;max-width:100%;border-radius:20px 20px 20px 20px;}.elementor-4070 .elementor-element.elementor-element-182117b .elementor-wrapper{--video-aspect-ratio:1.77777;}.elementor-4070 .elementor-element.elementor-element-7ad4cca{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-4070 .elementor-element.elementor-element-bc18cf8{width:100%;max-width:100%;border-radius:20px 20px 20px 20px;}.elementor-4070 .elementor-element.elementor-element-bc18cf8 .elementor-wrapper{--video-aspect-ratio:1.77777;}.elementor-4070 .elementor-element.elementor-element-85316ef{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-4070 .elementor-element.elementor-element-8c58fb4{width:100%;max-width:100%;border-radius:20px 20px 20px 20px;}.elementor-4070 .elementor-element.elementor-element-8c58fb4 .elementor-wrapper{--video-aspect-ratio:1.77777;}.elementor-4070 .elementor-element.elementor-element-c813844{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-4070 .elementor-element.elementor-element-15965d6{width:100%;max-width:100%;border-radius:20px 20px 20px 20px;}.elementor-4070 .elementor-element.elementor-element-15965d6 .elementor-wrapper{--video-aspect-ratio:1.77777;}.elementor-4070 .elementor-element.elementor-element-d0de9cd{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-4070 .elementor-element.elementor-element-f8ea5bf{width:100%;max-width:100%;border-radius:20px 20px 20px 20px;}.elementor-4070 .elementor-element.elementor-element-f8ea5bf .elementor-wrapper{--video-aspect-ratio:1.77777;}.elementor-4070 .elementor-element.elementor-element-717827a{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-4070 .elementor-element.elementor-element-1f5b014{width:100%;max-width:100%;border-radius:20px 20px 20px 20px;}.elementor-4070 .elementor-element.elementor-element-1f5b014 .elementor-wrapper{--video-aspect-ratio:1.77777;}.elementor-4070 .elementor-element.elementor-element-f1ad522{--e-n-carousel-swiper-slides-to-display:3;--e-n-carousel-swiper-slides-gap:45px;--e-n-carousel-slide-height:auto;--e-n-carousel-slide-container-height:100%;--e-n-carousel-arrow-prev-left-align:0%;--e-n-carousel-arrow-prev-translate-x:0px;--e-n-carousel-arrow-prev-left-position:0px;--e-n-carousel-arrow-prev-top-align:50%;--e-n-carousel-arrow-prev-translate-y:-50%;--e-n-carousel-arrow-prev-top-position:0px;--e-n-carousel-arrow-next-right-align:0%;--e-n-carousel-arrow-next-translate-x:0%;--e-n-carousel-arrow-next-right-position:0px;--e-n-carousel-arrow-next-top-align:50%;--e-n-carousel-arrow-next-translate-y:-50%;--e-n-carousel-arrow-next-top-position:0px;--e-n-carousel-arrow-normal-color:var( --e-global-color-1bb2198 );}.elementor-4070 .elementor-element.elementor-element-f1ad522 :is(.elementor-swiper-button-prev, .elementor-swiper-button-next) {background-color:var( --e-global-color-8a570ab );box-shadow:0px 0px 5px 0px rgba(0,0,0,0.5);border-radius:100px 100px 100px 100px;padding:5px 5px 5px 5px;}@media(max-width:1366px){.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );word-spacing:var( --e-global-typography-primary-word-spacing );}.elementor-4070 .elementor-element.elementor-element-c319649 .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );word-spacing:var( --e-global-typography-primary-word-spacing );}.elementor-widget-divider .elementor-divider__text{font-size:var( --e-global-typography-secondary-font-size );line-height:var( --e-global-typography-secondary-line-height );}.elementor-widget-text-editor{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );}.elementor-widget-button .elementor-button{font-size:var( --e-global-typography-accent-font-size );line-height:var( --e-global-typography-accent-line-height );letter-spacing:var( --e-global-typography-accent-letter-spacing );}.elementor-4070 .elementor-element.elementor-element-f1ad522{--e-n-carousel-swiper-slides-to-display:3;--e-n-carousel-swiper-pagination-size:12px;}}@media(max-width:1200px){.elementor-4070 .elementor-element.elementor-element-f1ad522{--e-n-carousel-swiper-slides-to-display:2;}}@media(max-width:1024px){.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );word-spacing:var( --e-global-typography-primary-word-spacing );}.elementor-4070 .elementor-element.elementor-element-c319649 .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );word-spacing:var( --e-global-typography-primary-word-spacing );}.elementor-widget-divider .elementor-divider__text{font-size:var( --e-global-typography-secondary-font-size );line-height:var( --e-global-typography-secondary-line-height );}.elementor-widget-text-editor{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );}.elementor-widget-button .elementor-button{font-size:var( --e-global-typography-accent-font-size );line-height:var( --e-global-typography-accent-line-height );letter-spacing:var( --e-global-typography-accent-letter-spacing );}.elementor-4070 .elementor-element.elementor-element-f1ad522{--e-n-carousel-swiper-slides-to-display:2;}}@media(max-width:880px){.elementor-4070 .elementor-element.elementor-element-f1ad522{--e-n-carousel-swiper-slides-to-display:1;}}@media(max-width:767px){.elementor-4070 .elementor-element.elementor-element-26b1581{--gap:20px 20px;--row-gap:20px;--column-gap:20px;}.elementor-4070 .elementor-element.elementor-element-6dae783{--gap:20px 20px;--row-gap:20px;--column-gap:20px;}.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );word-spacing:var( --e-global-typography-primary-word-spacing );}.elementor-4070 .elementor-element.elementor-element-c319649 .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );word-spacing:var( --e-global-typography-primary-word-spacing );}.elementor-widget-divider .elementor-divider__text{font-size:var( --e-global-typography-secondary-font-size );line-height:var( --e-global-typography-secondary-line-height );}.elementor-widget-text-editor{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );}.elementor-widget-button .elementor-button{font-size:var( --e-global-typography-accent-font-size );line-height:var( --e-global-typography-accent-line-height );letter-spacing:var( --e-global-typography-accent-letter-spacing );}.elementor-4070 .elementor-element.elementor-element-f1ad522{--e-n-carousel-swiper-slides-to-display:1;}}/* Start custom CSS for container, class: .elementor-element-26b1581 *//* =====================================================
   YOUTUBE CODHEM
   Elementor Carrusel + Widget Video
===================================================== */

:root {
    --youtube-red: #e60012;
    --youtube-red-dark: #c90010;
    --youtube-red-light: #fff0f1;

    --youtube-turquoise: #69c2bf;
    --youtube-turquoise-dark: #087f83;

    --youtube-navy: #153659;
    --youtube-blue: #3a537e;
    --youtube-purple: #8067ab;
    --youtube-text: #596c8b;
    --youtube-border: #dce5ea;
    --youtube-white: #ffffff;
}

/* =====================================================
   SECCIÓN EXTERIOR
===================================================== */

.youtube-codhem-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 90px 28px 92px !important;
    overflow: hidden;
    isolation: isolate;

}

/* Círculo decorativo superior */

.youtube-codhem-section::before {
    position: absolute;
    z-index: -1;
    top: -260px;
    right: -170px;
    width: 590px;
    height: 590px;
    border: 80px solid rgba(105, 194, 191, 0.05);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

/* Círculo decorativo inferior */

.youtube-codhem-section::after {
    position: absolute;
    z-index: -1;
    bottom: -330px;
    left: -210px;
    width: 600px;
    height: 600px;
    border: 95px solid rgba(128, 103, 171, 0.04);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

/* =====================================================
   CONTENIDO GENERAL
===================================================== */

.youtube-codhem-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1200px) !important;
    max-width: 1200px !important;
    margin-inline: auto !important;
}

/* =====================================================
   ENCABEZADO
===================================================== */

.youtube-codhem-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    margin-bottom: 42px;
    gap: 30px;
}

.youtube-codhem-heading-content {
    flex: 1 1 720px;
    max-width: 820px;
}

/* =====================================================
   ETIQUETA SUPERIOR
===================================================== */

.youtube-codhem-eyebrow {
    width: fit-content !important;
    margin: 0 0 16px !important;
}

.youtube-codhem-eyebrow .elementor-icon-list-items {
    margin: 0;
    padding: 0;
}

.youtube-codhem-eyebrow .elementor-icon-list-item {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid rgba(230, 0, 18, 0.10);
    border-radius: 9px;
    background: rgba(230, 0, 18, 0.075);
    gap: 8px;
}

.youtube-codhem-eyebrow .elementor-icon-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.youtube-codhem-eyebrow .elementor-icon-list-icon svg {
    width: 15px !important;
    height: 15px !important;
    fill: var(--youtube-red) !important;
}

.youtube-codhem-eyebrow .elementor-icon-list-text {
    padding: 0 !important;
    color: var(--youtube-red) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* =====================================================
   TÍTULO
===================================================== */

.youtube-codhem-title {
    margin: 0 !important;
}

.youtube-codhem-title .elementor-heading-title {
    margin: 0;
    color: var(--youtube-navy);
    font-size: clamp(2.4rem, 4.2vw, 3.5rem);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

/* =====================================================
   DIVISOR
===================================================== */

.youtube-codhem-divider {
    position: relative;
    width: 106px !important;
    margin: 19px 0 23px !important;
}

.youtube-codhem-divider .elementor-divider {
    width: 72px;
    padding: 0 !important;
}

.youtube-codhem-divider .elementor-divider-separator {
    width: 72px !important;
    border-color: var(--youtube-turquoise) !important;
    border-width: 3px !important;
    border-radius: 999px 0 0 999px;
}

/* Parte roja del divisor */

.youtube-codhem-divider::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--youtube-red);
    content: "";
}

/* =====================================================
   DESCRIPCIÓN
===================================================== */

.youtube-codhem-description {
    max-width: 760px;
    margin: 0 !important;
}

.youtube-codhem-description,
.youtube-codhem-description p {
    margin: 0;
    color: var(--youtube-text);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
}

/* =====================================================
   BOTÓN VISITAR CANAL
===================================================== */

.youtube-codhem-channel {
    flex: 0 0 auto;
    width: auto !important;
}

.youtube-codhem-channel .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 50px;
    padding: 13px 22px !important;
    border: 1.5px solid var(--youtube-red) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 8px 22px rgba(21, 54, 89, 0.08);
    color: var(--youtube-navy) !important;
    font-size: 15px;
    font-weight: 750;
    backdrop-filter: blur(10px);
    gap: 8px;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.youtube-codhem-channel .elementor-button-icon {
    color: var(--youtube-red);
    font-size: 18px;
}

.youtube-codhem-channel .elementor-button-icon svg {
    fill: currentColor;
}

.youtube-codhem-channel .elementor-button:hover {
    background: var(--youtube-red) !important;
    box-shadow: 0 12px 28px rgba(230, 0, 18, 0.20);
    color: var(--youtube-white) !important;
    transform: translateY(-2px);
}

.youtube-codhem-channel .elementor-button:hover
.elementor-button-icon {
    color: var(--youtube-white);
}

/* =====================================================
   CARRUSEL
===================================================== */

.youtube-codhem-carousel {
    position: relative;
    width: 100%;
}

/* Espacio para las flechas */

.youtube-codhem-carousel .swiper {
    padding: 5px 5px 16px !important;
}

.youtube-codhem-carousel .swiper-wrapper {
    align-items: stretch;
}

/* Todas las diapositivas con la misma altura */

.youtube-codhem-carousel .swiper-slide {
    display: flex;
    height: auto !important;
}

/* =====================================================
   TARJETA DE VIDEO
===================================================== */

.youtube-video-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0;

    height: 100%;
    margin: 0 !important;

    overflow: hidden;
    border: 1px solid var(--youtube-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 9px 26px rgba(18, 54, 89, 0.085);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.youtube-video-card::before {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            var(--youtube-turquoise) 0%,
            var(--youtube-turquoise) 76%,
            var(--youtube-red) 76%,
            var(--youtube-red) 100%
        );
    opacity: 0;
    content: "";
    transition: opacity 220ms ease;
}

.youtube-video-card:hover {
    border-color: rgba(105, 194, 191, 0.75);
    box-shadow: 0 18px 42px rgba(18, 54, 89, 0.14);
    transform: translateY(-5px);
}

.youtube-video-card:hover::before {
    opacity: 1;
}

/* =====================================================
   CONTENEDOR DEL VIDEO
===================================================== */

.youtube-video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #eaf0f3;
}

/* =====================================================
   WIDGET VIDEO
===================================================== */

.youtube-video-player {
    width: 100%;
    height: 100%;
    margin: 0 !important;
}

.youtube-video-player .elementor-widget-container {
    width: 100%;
    height: 100%;
}

.youtube-video-player .elementor-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #eaf0f3;
}

/* Iframe cuando el video está reproduciéndose */

.youtube-video-player iframe,
.youtube-video-player video {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    object-fit: cover;
}

/* =====================================================
   IMAGEN DE SUPERPOSICIÓN
===================================================== */

.youtube-video-player
.elementor-custom-embed-image-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background-position: center !important;
    background-size: cover !important;
    transition: transform 350ms ease;
}

/* Capa oscura sutil */

.youtube-video-player
.elementor-custom-embed-image-overlay::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(21, 54, 89, 0.02) 0%,
            rgba(21, 54, 89, 0.16) 100%
        );
    content: "";
    transition: background-color 220ms ease;
}

.youtube-video-card:hover
.elementor-custom-embed-image-overlay {
    transform: scale(1.025);
}

.youtube-video-card:hover
.elementor-custom-embed-image-overlay::before {
    background-color: rgba(21, 54, 89, 0.06);
}

/* =====================================================
   BOTÓN PLAY DE ELEMENTOR
===================================================== */

.youtube-video-player .elementor-custom-embed-play {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(21, 54, 89, 0.22);
    opacity: 1;
    transform: translate(-50%, -50%);
    transition:
        background-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

/* Icono Play */

.youtube-video-player
.elementor-custom-embed-play i {
    color: var(--youtube-red);
    font-size: 27px;
    text-shadow: none;
}

/* Versiones nuevas que utilizan SVG */

.youtube-video-player
.elementor-custom-embed-play svg {
    width: 26px;
    height: 26px;
    fill: var(--youtube-red);
    filter: none;
}

.youtube-video-card:hover
.elementor-custom-embed-play {
    background: var(--youtube-red);
    box-shadow: 0 13px 32px rgba(230, 0, 18, 0.28);
    transform:
        translate(-50%, -50%)
        scale(1.06);
}

.youtube-video-card:hover
.elementor-custom-embed-play i {
    color: var(--youtube-white);
}

.youtube-video-card:hover
.elementor-custom-embed-play svg {
    fill: var(--youtube-white);
}

/* =====================================================
   CONTENIDO INFERIOR
===================================================== */

.youtube-video-content {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100%;
    min-height: 235px;
    padding: 22px 22px 20px !important;
    gap: 13px;
}

/* =====================================================
   METADATOS
===================================================== */

.youtube-video-meta {
    margin: 0 !important;
}

.youtube-video-meta,
.youtube-video-meta p {
    margin: 0;
    color: var(--youtube-turquoise-dark);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.youtube-video-meta p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

/* =====================================================
   TÍTULO DEL VIDEO
===================================================== */

.youtube-video-title {
    margin: 0 !important;
}

.youtube-video-title .elementor-heading-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--youtube-navy);
    font-size: 20px;
    font-weight: 720;
    line-height: 1.35;
    letter-spacing: -0.018em;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.youtube-video-title a {
    color: inherit;
    text-decoration: none;
}

.youtube-video-title a:hover {
    color: var(--youtube-turquoise-dark);
}

/* =====================================================
   ENLACE VER VIDEO
===================================================== */

.youtube-video-link {
    width: fit-content !important;
    margin-top: auto !important;
}

.youtube-video-link .elementor-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--youtube-turquoise-dark) !important;
    font-size: 15px;
    font-weight: 750;
}

.youtube-video-link .elementor-button:hover {
    background: transparent !important;
    color: var(--youtube-navy) !important;
}

.youtube-video-link .elementor-button-icon {
    transition: transform 180ms ease;
}

.youtube-video-link .elementor-button:hover
.elementor-button-icon {
    transform: translateX(4px);
}

/* =====================================================
   FLECHAS DEL CARRUSEL
===================================================== */

.youtube-codhem-carousel .elementor-swiper-button,
.youtube-codhem-carousel .swiper-button-prev,
.youtube-codhem-carousel .swiper-button-next {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 52px !important;
    height: 52px !important;
    margin: 0;
    border: 1px solid rgba(21, 54, 89, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 22px rgba(21, 54, 89, 0.13);
    color: var(--youtube-navy) !important;
    font-size: 20px !important;
    cursor: pointer;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.youtube-codhem-carousel
.elementor-swiper-button:hover,
.youtube-codhem-carousel
.swiper-button-prev:hover,
.youtube-codhem-carousel
.swiper-button-next:hover {
    border-color: var(--youtube-turquoise-dark);
    background: var(--youtube-turquoise-dark);
    box-shadow: 0 12px 27px rgba(8, 127, 131, 0.22);
    color: var(--youtube-white) !important;
    transform: scale(1.05);
}

/* Eliminar flechas nativas duplicadas */

.youtube-codhem-carousel .swiper-button-prev::after,
.youtube-codhem-carousel .swiper-button-next::after {
    font-size: 18px;
    font-weight: 800;
}

/* Posición lateral */

.youtube-codhem-carousel
.elementor-swiper-button-prev,
.youtube-codhem-carousel
.swiper-button-prev {
    left: -26px !important;
}

.youtube-codhem-carousel
.elementor-swiper-button-next,
.youtube-codhem-carousel
.swiper-button-next {
    right: -26px !important;
}

/* =====================================================
   PUNTOS DE NAVEGACIÓN
===================================================== */

.youtube-codhem-carousel .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 24px;
}

.youtube-codhem-carousel .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 6px !important;
    border-radius: 999px;
    background: #aeb7bd;
    opacity: 0.65;
    transition:
        width 180ms ease,
        background-color 180ms ease,
        opacity 180ms ease;
}

.youtube-codhem-carousel
.swiper-pagination-bullet-active {
    width: 24px;
    background: var(--youtube-turquoise-dark);
    opacity: 1;
}

/* =====================================================
   ACCESIBILIDAD
===================================================== */

.youtube-codhem-channel a:focus-visible,
.youtube-video-title a:focus-visible,
.youtube-video-link a:focus-visible,
.youtube-codhem-carousel button:focus-visible,
.youtube-codhem-carousel
.elementor-custom-embed-image-overlay:focus-visible {
    outline: 3px solid #dece60;
    outline-offset: 4px;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {
    .youtube-codhem-section {
        padding: 72px 24px 78px !important;
    }

    .youtube-codhem-header {
        margin-bottom: 36px;
    }

    .youtube-video-card {
        min-height: 480px;
    }

    .youtube-codhem-carousel
    .elementor-swiper-button-prev,
    .youtube-codhem-carousel
    .swiper-button-prev {
        left: -18px !important;
    }

    .youtube-codhem-carousel
    .elementor-swiper-button-next,
    .youtube-codhem-carousel
    .swiper-button-next {
        right: -18px !important;
    }
}

/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 767px) {
    .youtube-codhem-section {
        padding: 56px 18px 64px !important;

        background:
            radial-gradient(
                circle at 100% 0,
                rgba(105, 194, 191, 0.18),
                transparent 34%
            ),
            radial-gradient(
                circle at 0 100%,
                rgba(128, 103, 171, 0.11),
                transparent 32%
            ),
            linear-gradient(
                155deg,
                #ffffff 0%,
                #f8fbfc 52%,
                #faf8fc 100%
            );
    }

    .youtube-codhem-section::before,
    .youtube-codhem-section::after {
        display: none;
    }

    .youtube-codhem-header {
        flex-direction: column !important;
        align-items: stretch !important;
        margin-bottom: 30px;
        gap: 24px;
    }

    .youtube-codhem-heading-content {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .youtube-codhem-eyebrow {
        margin-bottom: 14px !important;
    }

    .youtube-codhem-title .elementor-heading-title {
        font-size: clamp(2rem, 10vw, 2.5rem);
        line-height: 1.1;
    }

    .youtube-codhem-divider {
        margin: 16px 0 20px !important;
    }

    .youtube-codhem-description,
    .youtube-codhem-description p {
        font-size: 16px;
        line-height: 1.65;
    }

    .youtube-codhem-channel,
    .youtube-codhem-channel
    .elementor-button-wrapper {
        width: 100%;
    }

    .youtube-codhem-channel .elementor-button {
        width: 100%;
    }

    .youtube-codhem-carousel {
        padding-inline: 0;
    }

    .youtube-codhem-carousel .swiper {
        padding-inline: 3px !important;
    }

    .youtube-video-card {
        min-height: 0;
        border-radius: 14px;
    }

    .youtube-video-thumbnail,
    .youtube-video-player .elementor-wrapper {
        border-radius: 13px 13px 0 0;
    }

    .youtube-video-content {
        min-height: 220px;
        padding: 19px 18px 18px !important;
    }

    .youtube-video-title .elementor-heading-title {
        font-size: 18px;
    }

    .youtube-video-player
    .elementor-custom-embed-play {
        width: 60px;
        height: 60px;
    }

    .youtube-video-player
    .elementor-custom-embed-play i {
        font-size: 24px;
    }

    .youtube-video-player
    .elementor-custom-embed-play svg {
        width: 23px;
        height: 23px;
    }

    .youtube-codhem-carousel
    .elementor-swiper-button,
    .youtube-codhem-carousel
    .swiper-button-prev,
    .youtube-codhem-carousel
    .swiper-button-next {
        width: 44px !important;
        height: 44px !important;
    }

    .youtube-codhem-carousel
    .elementor-swiper-button-prev,
    .youtube-codhem-carousel
    .swiper-button-prev {
        left: 8px !important;
    }

    .youtube-codhem-carousel
    .elementor-swiper-button-next,
    .youtube-codhem-carousel
    .swiper-button-next {
        right: 8px !important;
    }

    .youtube-codhem-carousel .swiper-pagination {
        margin-top: 20px;
    }
}

/* =====================================================
   MOVIMIENTO REDUCIDO
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .youtube-video-card,
    .youtube-video-card::before,
    .youtube-video-player
    .elementor-custom-embed-image-overlay,
    .youtube-video-player
    .elementor-custom-embed-play,
    .youtube-codhem-channel .elementor-button,
    .youtube-video-link .elementor-button-icon,
    .youtube-codhem-carousel
    .elementor-swiper-button,
    .youtube-codhem-carousel
    .swiper-pagination-bullet {
        transition: none !important;
    }

    .youtube-video-card:hover,
    .youtube-video-card:hover
    .elementor-custom-embed-play,
    .youtube-codhem-channel
    .elementor-button:hover {
        transform: none !important;
    }

    .youtube-video-card:hover
    .elementor-custom-embed-image-overlay {
        transform: none !important;
    }
}/* End custom CSS */