/* ==============================> MIGAS DE TALLER */

.migas-taller {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 14px;
    opacity: 0;
    animation: taller-fadein 0.4s ease 0.1s forwards;
}

.migas-taller .huge {
    font-size: 12px;
    color: var(--e-global-color-primary);
    transition: transform 0.2s ease;
}

.migas-taller__enlace {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.migas-taller__enlace:hover {
    color: var(--e-global-color-primary);
}

.migas-taller__actual {
    font-weight: 600;
    opacity: 0.6;
}


/* ==============================> MULTIMEDIA DE TALLER */

.multimedia-taller {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    opacity: 0;
    animation: taller-fadein 0.5s ease 0.15s forwards;
}

/* -> Poster */

.multimedia-taller__poster {
    position: relative;
    width: 100%;
    tallerr: pointer;
    transition: opacity 0.35s ease;
    -webkit-transform: translateZ(0);
}

.multimedia-taller__imagen {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease, filter 0.4s ease;
    -webkit-transform: translateZ(0);
}

.multimedia-taller__poster:hover .multimedia-taller__imagen {
    transform: scale(1.02);
    filter: brightness(0.75);
}

/* -> Botón play */

.multimedia-taller__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    tallerr: pointer;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    -webkit-transform: translateZ(0);
}

.multimedia-taller__play svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    margin-left: 4px;
    transition: fill 0.2s ease;
}

.multimedia-taller__poster:hover .multimedia-taller__play {
    background: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    transform: scale(1.1);
}

/* -> Reproductor */

.multimedia-taller__reproductor {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.multimedia-taller__reproductor iframe,
.multimedia-taller__reproductor video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    animation: multimedia-fadein 0.35s ease forwards;
}

@keyframes multimedia-fadein {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}


/* ==============================> META DE TALLER */

.meta-taller {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    animation: taller-fadein 0.5s ease 0.2s forwards;
}

/* -> Item */

.meta-taller__item {
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 0;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    -webkit-transform: translateZ(0);
}

.meta-taller__item:hover {
    border-color: var(--e-global-color-primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.meta-taller__icono {
    font-size: 20px;
    color: var(--e-global-color-primary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.meta-taller__item:hover .meta-taller__icono {
    transform: scale(1.15);
}

.meta-taller__etiqueta {
    font-size: 14px;
    opacity: 0.55;
}

.meta-taller__valor {
    font-size: 16px;
    font-weight: 600;
}


/* ==============================> DESCRIPCIÓN CORTA */

.descripcion-corta-taller {
	color: #fff;
    font-size: 16px;
	text-align: justify;
    opacity: 0;
    animation: taller-fadein 0.5s ease 0.25s forwards;
}

.descripcion-corta-de-taller p:last-child{
	margin-bottom: 0;
}


/* ==============================> DESCRIPCIÓN COMPLETA */

.descripcion-completa-taller {
    position: relative;
    font-size: 15px;
    line-height: 1.75;
    opacity: 0;
    animation: taller-fadein 0.5s ease 0.3s forwards;
}

.descripcion-completa-taller h2 {
	font-size: 32px;
	font-weight: 500;
	margin-bottom: 8px;
}

/* -> Contenido colapsable */

.descripcion-completa-taller__contenido {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.4s ease;
}

.descripcion-completa-taller__contenido p:last-child {
	margin-bottom: 0;
}

.descripcion-completa-taller--expandido .descripcion-completa-taller__contenido {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* -> Ver más inline */

.descripcion-completa-taller__ver-mas {
    font-size: 15px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    tallerr: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    display: inline;
}

.descripcion-completa-taller--expandido .descripcion-completa-taller__ver-mas {
    display: inline-block;
    margin-top: 6px;
}

.descripcion-completa-taller__ver-mas:hover {
    opacity: 0.7;
}

/* -> Contenido interno */

.descripcion-completa-taller__contenido h2,
.descripcion-completa-taller__contenido h3,
.descripcion-completa-taller__contenido h4 {
    margin-top: 1.5em;
}

.descripcion-completa-taller__contenido a {
    color: var(--e-global-color-primary);
    transition: opacity 0.2s ease;
}

.descripcion-completa-taller__contenido a:hover {
    opacity: 0.75;
}


/* ==============================> ANIMACIÓN BASE */

@keyframes taller-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==============================> RESPONSIVE */

/* -> Tablet 768px */

@media (max-width: 768px) {
    .meta-taller {
        flex-direction: column;
        gap: 8px;
    }

    .meta-taller__item {
        width: 100%;
    }

    .multimedia-taller__play {
        width: 54px;
        height: 54px;
    }

    .multimedia-taller__play svg {
        width: 20px;
        height: 20px;
    }

    .migas-taller {
        font-size: 13px;
    }

    .descripcion-corta-taller {
        font-size: 15px;
    }
}

/* -> Móvil 480px */

@media (max-width: 480px) {
    .multimedia-taller {
        border-radius: 8px;
    }

    .meta-taller__item {
        padding: 10px 12px;
    }

    .meta-taller__valor {
        font-size: 13px;
    }
}


/* ==============================> TEMARIO DE TALLER */

.temario-taller {
    display: flex;
    flex-direction: column;
    width: 100%;
    opacity: 0;
    animation: taller-fadein 0.5s ease 0.2s forwards;
}

.temario-taller h2 {
	font-size: 32px;
	font-weight: 500;
}

/* -> Tema */

.temario-taller__tema {
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.temario-taller__tema:last-child {
    border-bottom: none;
}

.temario-taller__tema--abierto {
}

/* -> Cabecera */

.temario-taller__cabecera {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    tallerr: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.2s ease;
}

.temario-taller__cabecera:hover {
    opacity: 0.75;
}

.temario-taller__numero {
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--e-global-color-primary);
}

.temario-taller__titulo {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    line-height: 1.4;
}

.temario-taller__flecha {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.4;
    transition: transform 0.35s ease, opacity 0.2s ease;
    -webkit-transition: -webkit-transform 0.35s ease, opacity 0.2s ease;
}

.temario-taller__tema--abierto .temario-taller__flecha {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    opacity: 1;
    color: var(--e-global-color-primary);
}

/* -> Cuerpo colapsable */

.temario-taller__cuerpo {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.35s ease;
    -webkit-transition: max-height 0.4s ease, padding 0.35s ease;
    padding: 0;
}

.temario-taller__tema--abierto .temario-taller__cuerpo {
    max-height: 2000px;
    padding-bottom: 20px;
}

/* -> Descripción */

.temario-taller__descripcion {
    font-size: 14px;
    line-height: 1.65;
    opacity: 0.7;
    margin: 0 0 16px;
}

/* -> Lista */

.temario-taller__lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.temario-taller__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: opacity 0.2s ease;
}

.temario-taller__item:last-child {
    border-bottom: none;
}

.temario-taller__item:hover {
    opacity: 0.65;
}

.temario-taller__icono {
    font-size: 15px;
    flex-shrink: 0;
    opacity: 0.5;
}

.temario-taller__item-texto {
    font-size: 14px;
    flex: 1;
    line-height: 1.4;
}

/* ==============================> RESPONSIVE */

/* -> Tablet */

@media (max-width: 768px) {
    .temario-taller__cabecera {
        padding: 16px 0;
    }

    .temario-taller__titulo {
        font-size: 14px;
    }
}

/* -> Móvil */

@media (max-width: 480px) {
    .temario-taller__titulo {
        font-size: 13px;
    }

    .temario-taller__numero {
        font-size: 14px;
    }

    .temario-taller__item-texto {
        font-size: 13px;
    }
}



/* ==============================> TESTIMONIOS TALLER */

.titulo-testimonios {
    display: flex;
    justify-content: space-between;
	align-items: center;
	gap: 16px;
    padding-bottom: 24px;    
}

.titulo-testimonios h2 {
	font-size: 32px;
	font-weight: 500;
	margin: 0;
}

.testimonios-taller {
    width: 100%;
    opacity: 0;
    animation: taller-fadein 0.5s ease 0.2s forwards;
}

/* -> Carrusel */

.testimonios-taller__carrusel {
    width: 100%;
    overflow: hidden;
}

/* -> Tarjeta */

.testimonios-taller__tarjeta {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    -webkit-transform: translateZ(0);
}

.testimonios-taller__tarjeta:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
}

/* -> Cabecera */

.testimonios-taller__cabecera {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

/* -> Avatar */

.testimonios-taller__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--e-global-color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
}

/* -> Info */

.testimonios-taller__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.testimonios-taller__nombre {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -> Estrellas */

.testimonios-taller__estrellas {
    display: flex;
    gap: 2px;
}

.testimonios-taller__estrellas svg {
    width: 13px;
    height: 13px;
    fill: #FBBC04;
}

/* -> Logo Google */

.testimonios-taller__logo {
    flex-shrink: 0;
    opacity: 0.55;
}

.testimonios-taller__logo img {
    width: 18px;
    height: 18px;
    display: block;
}

/* -> Texto */

.testimonios-taller__texto {
    font-size: 13px;
    line-height: 1.65;
    opacity: 0.72;
    margin: 0;
}

/* -> Paginación */

.testimonios-taller__paginacion {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.testimonios-taller__paginacion .swiper-pagination-bullet {
    background: rgba(0,0,0,0.2);
    opacity: 1;
    transition: background 0.25s ease, transform 0.25s ease;
}

.testimonios-taller__paginacion .swiper-pagination-bullet-active {
    background: var(--e-global-color-primary);
    transform: scale(1.3);
    -webkit-transform: scale(1.3);
}

/* -> Controles externos */

.testimonios-taller__controles {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* -> Botones */

.testimonios-taller__btn--prev,
.testimonios-taller__btn--next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #d0d0d0;
    background: #fff;
    color: #333;
    font-size: 16px;
    tallerr: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    -webkit-transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, -webkit-transform 0.2s ease;
}

.testimonios-taller__btn--prev:hover,
.testimonios-taller__btn--next:hover {
    background: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    color: #fff;
    transform: scale(1.08);
    -webkit-transform: scale(1.08);
}

.testimonios-taller__btn--prev:active,
.testimonios-taller__btn--next:active {
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
}

/* ==============================> RESPONSIVE */

/* -> Tablet */

@media (max-width: 768px) {
    .testimonios-taller__tarjeta {
        padding: 16px;
    }
}

/* -> Móvil */

@media (max-width: 480px) {
    .testimonios-taller__avatar {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .testimonios-taller__nombre {
        font-size: 13px;
    }

    .testimonios-taller__controles {
        justify-content: center;
    }
}



/* ==============================> TALLERES RELACIONADOS */

.cr-bloque {
    width: 100%;
    overflow: hidden;
}

/* -> Cabecera */

.cr-cabecera {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cr-cabecera__fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.cr-cabecera__titulo {
    font-size: 32px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

/* -> Controles */

.cr-controles {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cr-controles__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #d0d0d0;
    color: #333;
    font-size: 16px;
    tallerr: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    -webkit-transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, -webkit-transform 0.2s ease;
}

.cr-controles__btn:hover {
    border-color: var(--e-global-color-primary);
    background: var(--e-global-color-primary);
    color: #fff;
    transform: scale(1.08);
    -webkit-transform: scale(1.08);
}

.cr-controles__btn:active {
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
}

/* -> Pista */

.cr-pista-outer {
    width: 100%;
    overflow: hidden;
    padding: 0 24px;
    box-sizing: border-box;
}

.cr-pista {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-transition: -webkit-transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* -> Tarjeta */

.cr-tarjeta {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
    opacity: 0;
    transform: translateY(20px);
    -webkit-transform: translateY(20px);
    animation: cr-entrada 0.5s ease forwards;
    -webkit-animation: cr-entrada 0.5s ease forwards;
}

.cr-tarjeta:nth-child(1) { animation-delay: 0.05s; }
.cr-tarjeta:nth-child(2) { animation-delay: 0.13s; }
.cr-tarjeta:nth-child(3) { animation-delay: 0.21s; }
.cr-tarjeta:nth-child(4) { animation-delay: 0.29s; }
.cr-tarjeta:nth-child(5) { animation-delay: 0.37s; }
.cr-tarjeta:nth-child(6) { animation-delay: 0.45s; }

@keyframes cr-entrada {
    to { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes cr-entrada {
    to { opacity: 1; -webkit-transform: translateY(0); }
}

/* -> Enlace */

.cr-tarjeta__enlace {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* -> Imagen */

.cr-tarjeta__imagen-wrapper {
    width: 100%;
    aspect-ratio: 4 / 2;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

.cr-tarjeta__imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
    -webkit-transition: -webkit-transform 0.45s ease;
    transform: scale(1);
    -webkit-transform: scale(1);
}

.cr-tarjeta:hover .cr-tarjeta__imagen {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
}

/* -> Info */

.cr-tarjeta__info {
    padding: 14px 4px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cr-tarjeta__titulo {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px;
    line-height: 1.2;
    text-align: center;
    color: var(--e-global-color-secondary);
    transition: opacity 0.25s ease;
}

.cr-tarjeta:hover .cr-tarjeta__titulo {
    opacity: 0.8;
}

.cr-tarjeta__categoria {
    text-align: center;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #aaa;
}

/* ==============================> RESPONSIVE */

/* -> Tablet */

@media (max-width: 1024px) {
    .cr-tarjeta {
        flex: 0 0 calc(50% - 12px);
    }
}

/* -> Móvil */

@media (max-width: 768px) {
    .cr-cabecera__titulo {
        font-size: 22px;
    }

    .cr-tarjeta {
        flex: 0 0 100%;
    }

    .cr-pista-outer {
        padding: 0 16px;
    }

    .cr-cabecera {
        padding: 0 16px;
    }
}