/* Categoría Arteba
   Se carga solo si el body lleva la clase "arteba" (layout/index.pug):
   - body.categoria.arteba  -> página /cursos/arteba
   - body.cursode.arteba -> ficha de un curso de arteba
   - body.programade.arteba -> ficha de un programa de arteba
   - body.arteba        -> todas las anteriores  */

body.categoria.arteba {
    background: white;
}

body.categoria.arteba header, body.cursode.arteba header {
    background:#180038;
    border: none;
}

body.categoria.arteba .logoBadge, body.cursode.arteba .logoBadge {
 
    background: #e1fd50;
    color: #180038;
}

body.categoria.arteba header .btn.btn-primary, body.cursode.arteba header .btn.btn-primary {
  color: #180038;
  background: #e1fd50;
  border: 1px solid #e1fd50;
}

body.categoria.arteba header .btn-border, body.cursode.arteba header .btn-border  {
    color: #e1fd50;
    border: 1px solid #e1fd50;
    background: transparent;
}

body.categoria.arteba header .btn, body.cursode.arteba header .btn {
    color: #e1fd50;
}

body.categoria.arteba .btn.btn-ruta, body.cursode.arteba .btn.btn-ruta {
    color: #e1fd50;
    border: 1px solid #e1fd50;
    background: transparent;
}

body.categoria.arteba .btn-ruta__icon, body.cursode.arteba .btn-ruta__icon {
    color: #e1fd50;
}

body.categoria.arteba .cbFinder {
    display: none;
}
body.categoria.arteba header .logo, body.cursode.arteba header .logo {
 background: url(../../images/logo-W.svg) no-repeat;
 position:relative;
}
body.categoria.arteba .listCursos {
    background:none;
    padding-top: 0;
    margin-top: 0;
}
body.categoria.arteba .home-slider__bullet.is-active {
    background: #b8d432;
}

body.categoria.arteba .cursosBalanz {
    background:none;
}

body.categoria.arteba .home-slider__content {

    width: 100%;
    height: 100%;
    position: relative;
    max-width: 100%;
    max-height: 100%;
    padding: 48px;
}

body.categoria.arteba .home-slider__slide.animate-content .btn {
    background: #b8d432;
    color: #fff;
    position: absolute;
    left: 50%;
    margin-left: -100px;
    bottom: 48px;
 
}

body.categoria.arteba  .dato .expand-content {
    box-shadow: 0 1px 3px rgba(13, 32, 84, 0.06), 0 8px 20px rgba(13, 32, 84, 0.06);
    background: #180038;

}
body.categoria.arteba  .dato .expand-content h2, body.categoria.arteba .dato .expand-content p, body.categoria.arteba .dato .expand-content .duracion {
    color: #b8d432;
}

body.categoria.arteba .dato.new .expand-content .info-precio-duracion{
    display: none;
}

 body.categoria.arteba .btn-primary {
    color: #180038;
    background: #b8d432;
    border: 1px solid #b8d432;
}

body.categoria.arteba .dato.new .expand-content .price {
    color: #b8d432;
}

body.categoria.arteba .siteFooter, body.cursode.arteba .siteFooter {
    color: #b8d432;
    background: #180038;
    margin-left: 12px;
    margin-right: 12px;
    border-radius: 16px;
}


body.categoria.arteba .siteFooter__brand .logo, body.cursode.arteba .siteFooter__brand .logo {
    background: url(../../images/logo-W.svg) no-repeat;
}

body.categoria.arteba .siteFooter__social, body.categoria.arteba .siteFooter__divider, body.cursode.arteba .siteFooter__social, body.cursode.arteba .siteFooter__divider{
    border:none
}


body.categoria.arteba .btnCompartir {
    background: #007bff;
}
 
body.categoria.arteba header .headerBrand, body.cursode.arteba header .headerBrand {
    position: relative;
    
}
body.categoria.arteba header .headerBrand:before, body.cursode.arteba header .headerBrand:before {
    position: absolute;
    right: 0;
    bottom: 4px;
    margin-right: -148px;
    width: 128px;
    height: 32px;
    background: url(../../images/logo-arteba.png) no-repeat left center / contain;
    content: "";
    z-index: 1;
    opacity: 1;
    transition: opacity 0.63s;
}

body.categoria.arteba.scroll header .headerBrand:before {
    opacity: 1;
}
/*   cards flip (frente: imagen + título / dorso: info + botón)
     markup en js/cursosProgramasSelect.js (FLIP_CATEGORIES)  */

body.categoria.arteba {
    --arteba-primary: #180038;
    --arteba-primary-2: #2c0a63;
    --arteba-accent: #e1fd50;
    --arteba-radius: 24px;
}

body.categoria.arteba .dato.new.-flip {
    flex: 0 1 calc((100% - 72px) / 3);
    min-width: 0;
    max-width: none;
    height: 440px;
    margin-bottom: 0;
    background: none;
    border-radius: var(--arteba-radius);
    perspective: 1400px;
    outline: none;
}

body.categoria.arteba .dato.new.-flip .expand-content {
    position: relative;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: var(--arteba-radius);
    background: none;
    box-shadow: none;
    overflow: visible;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.15, 0.2, 1);
}

/* el giro reemplaza al translateY / borde del hover general */
body.categoria.arteba .dato.new.-flip .expand-content:hover {
    border: none;
    box-shadow: none;
    transform: none;
}

@media (hover: hover) {
    body.categoria.arteba .dato.new.-flip:hover .expand-content {
        transform: rotateY(180deg);
    }
}

body.categoria.arteba .dato.new.-flip:focus-within .expand-content,
body.categoria.arteba .dato.new.-flip.is-open .expand-content {
    transform: rotateY(180deg);
}

/* con la card girada el frente no toma clicks: así "Ver detalle" y
   compartir del dorso siempre reciben el click */
@media (hover: hover) {
    body.categoria.arteba .dato.new.-flip:hover .expand-left {
        pointer-events: none;
    }
}

body.categoria.arteba .dato.new.-flip:focus-within .expand-left,
body.categoria.arteba .dato.new.-flip.is-open .expand-left {
    pointer-events: none;
}

body.categoria.arteba .dato.new.-flip:focus-visible .expand-content {
    outline: 2px solid var(--arteba-accent);
    outline-offset: 4px;
    border-radius: var(--arteba-radius);
}

/* caras */
body.categoria.arteba .dato.new.-flip .expand-left,
body.categoria.arteba .dato.new.-flip .expand-right {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: var(--arteba-radius);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 2px 6px rgba(24, 0, 56, 0.08), 0 18px 40px rgba(24, 0, 56, 0.18);
}

/* frente */
body.categoria.arteba .dato.new.-flip .expand-left {
    overflow: hidden;
    background: var(--arteba-primary);
}

body.categoria.arteba .dato.new.-flip .expand-content .thumb,
body.categoria.arteba .dato.new.-flip .expand-content .thumb.introThumb.final {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    background-position: center;
    background-size: cover;
}

/* máscara: degradé del primario para leer el título sobre la imagen */
body.categoria.arteba .dato.new.-flip .flipFront {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 10px;
    padding: 28px 76px 28px 28px;
    background:
        linear-gradient(to top,
            rgba(24, 0, 56, 0.95) 0%,
            rgba(24, 0, 56, 0.7) 32%,
            rgba(24, 0, 56, 0) 62%);
}

body.categoria.arteba .dato.new.-flip .flipFront__kicker {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--arteba-accent);
    color: var(--arteba-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.categoria.arteba .dato.new.-flip .flipFront__title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.categoria.arteba .dato.new.-flip .flipFront__hint {
    position: absolute;
    right: 24px;
    bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(225, 253, 80, 0.6);
    color: var(--arteba-accent);
}

/* dorso */
body.categoria.arteba .dato.new.-flip .expand-content .expand-right {
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px;
    background: linear-gradient(150deg, var(--arteba-primary) 0%, var(--arteba-primary-2) 100%);
    /* translateZ: el dorso queda apenas por delante del frente (hit-test en 3D) */
    transform: rotateY(180deg) translateZ(1px);
}

body.categoria.arteba .dato.new.-flip .expand-content h2 {
    min-height: auto;
    margin-bottom: 16px;
    color: var(--arteba-accent);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

body.categoria.arteba .dato.new.-flip .expand-content .info {
    flex: 1;
    min-height: 0;
    margin-bottom: 0;
    overflow: hidden;
}

body.categoria.arteba .dato.new.-flip .expand-content .info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.categoria.arteba .dato.new.-flip .expand-content .shared.actions {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.categoria.arteba .dato.new.-flip .expand-content .price {
    margin: 0;
    color: var(--arteba-accent);
    font-size: 22px;
}

body.categoria.arteba .dato.new.-flip .expand-content .btnCompartir {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
}

body.categoria.arteba .dato.new.-flip .expand-content .btn {
    margin-top: 16px;
    border-radius: 24px;
    font-size: 16px;
    padding: 12px 0;
    background: var(--arteba-accent);
    border-color: var(--arteba-accent);
    color: var(--arteba-primary);
}

@media (prefers-reduced-motion: reduce) {
    body.categoria.arteba .dato.new.-flip .expand-content {
        transition: none;
    }
}

@media only screen and (max-width: 960px) {
    body.categoria.arteba .dato.new.-flip {
        flex-basis: calc((100% - 36px) / 2);
    }
}

@media only screen and (max-width: 600px) {
    body.categoria.arteba .dato.new.-flip {
        flex-basis: 100%;
        height: 420px;
    }
}


body.cursode.arteba .call-to-action {
    display: none;
}
 
body.categoria.arteba header .btn.btn-arteba,
body.categoria.arteba .menupartners .btn.btn-arteba {
    background: #e1fd50;
    border-color: #e1fd50;
    color: #180038;
}
