.woocommerce-account fieldset {
    margin-top: 5rem;
}

.section-shop-grid {
    padding: 4rem 0;
    background-color: var(--color-gris)
}

@media only screen and (min-width:768px) {
    .section-shop-grid {
        padding: 5rem 0 8rem;
    }
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4rem;
    margin: 0 auto;
    width: 96%;
}

@media only screen and (min-width:768px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.section-shop-grid h2 {
    text-align: center;
    color: var(--color-rojo-intenso)
}
.section-shop-toolbar {
    padding: 3rem 0;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 96%;
    margin: 0 auto;
}

@media only screen and (min-width:768px) {
    .shop-toolbar {
        flex-direction: row;
    }
}

.shop-results {
    font-size: 16px;
    font-weight: bold;
}

.section-shop-hero {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.shop-hero-media {
    position: absolute;
    inset: 0;
}

.shop-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgb(255 0 0);
    mix-blend-mode: darken;
}

.shop-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.shop-hero-content .shop-hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
}

/* CARD */
.shop-card {
    position: relative;
    background: #fff;
    border-radius: 31px;
    overflow: hidden;
    transition: transform .3s ease;

}

/* IMAGE */
.shop-card__media {
    position: relative;
    overflow: hidden;
}

.shop-card__media img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: opacity .35s ease, transform .5s ease;
}

/* =========================
   BADGE
========================= */

.shop-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .5rem .8rem;
    border: 1px solid #fff;
    border-radius: 100px;
}

/* CONTENT */

.shop-card__content {
    position: relative;
    z-index: 2;
    padding: 0 2rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: .5rem;
}

/* CATEGORY */

.shop-card__cat {
    font-size: 1rem;
    background: red;
    border-radius: 100px;
    display: block;
    width: fit-content;
    padding: 5px 10px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 7px;
    margin-top: -17px;
}

/* TITLE */
.shop-card__title {
    font-size: 23px;
    line-height: 1.2;
    color: #000;
    font-weight: 700;
}

/* TEXTO */
.shop-card__text {
    display: none;
    margin: 2rem 0 3rem
}


/*-------- 'META' ---------*/
.shop-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1rem;
    margin-top: 1rem;
}

.shop-card__meta-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    line-height: 1;
    color: #566367
}

.shop-card:hover .shop-card__meta-item {
    color: white;
}

.shop-card__meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}

/* PRICE */

.shop-card__price {
    font-weight: 700;
    font-size: 25px;
    color: var(--color-rojo-intenso)
}

.shop-card__price del {
    opacity: .5;
    font-size: 1rem;
    color: var(--color-primary)
}

.shop-card__price ins {
    text-decoration: none;
    color: var(--color-rojo-intenso);
    font-size: 25px;
    ;
}

.shop-card__meta-icon img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    display: block;
}

/* CTA */

.shop-card__cta {
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 600;
    font-size: .9rem;

}

.shop-card__cta .button--primary {
    border: 1px solid #fff;
}

.shop-card__cta .button--primary:hover {
    background: linear-gradient(90deg, #D82626 0%, #740707 100%);
}




/*-------- 'SINGLE PRODUCT' ---------*/

.course-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 60px;
}


/* capa de fondo animada */
.shop-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #F00 0%, #D82626 100%);
    opacity: 0;
    transition: opacity .6s ease;
    z-index: 0;
}




/*-------- 'SINGLE PRODUCT' ---------*/
.course-hero {
    position: relative;
    overflow: hidden;
}

.course-hero h1 {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    width: 72%;
}

@media only screen and (min-width:768px) {
    .course-hero h1 {
        font-size: 40px;
    }
}

.course-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* degradado blanco -> transparente */
.course-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, .75) 60%,
            rgba(255, 255, 255, 0) 80%);
    z-index: 1;
}


/*-------- 'bradcrum' ---------*/
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb a {
    color: #000;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
    font-size: var(--text-14);
    color: #000;
}

.course-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 448px;
}

.single-course .course-meta {
    display: flex;
    justify-content: flex-start;
    gap: 3rem
}

.single-course .course-meta .shop-card__inicio,
.single-course .course-meta .shop-card__meta-item {
    color: var(--color-rojo);
    font-weight: 700;
    font-size: 20px;
}

/* grip principal */
.course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 60px;
}

@media only screen and (min-width:768px) {
    .course-grid {

        grid-template-columns: 1fr 340px;
        gap: 122px;
        margin-top: 60px;
    }
}

/* sticky bar */
.course-sidebar {
    position: sticky;
    top: 40px;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 31px;
    background: #fff;
    box-shadow: 0 20px 40px 0px rgb(0 0 0 / 18%);
    margin-top: 0px;
    z-index: 99;
    align-self: self-start;
}

@media only screen and (min-width:768px) {
    .course-sidebar {
        margin-top: -250px;
    }
}

.course-sidebar__card .shop-card-badge {
    left: 30px;
    top: 30px;
    width: fit-content;
}

.course-sidebar__card .course-sidebar__category {
    position: absolute;
    top: 0;
    right: 30px;
    top: 30px;
    width: 58px;
}

span.course-sidebar__label,
span.course-sidebar__value {
    font-weight: 600;
}

p.course-sidebar__tittle {
    text-align: center;
    font-weight: 800;
    color: #000;
}

.course-sidebar__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid silver;
    padding: 16px 0 1px;
}

.course-sidebar+div {
    display: flex;
    align-items: center;
}

span.course-sidebar__icon {
    vertical-align: middle;
    margin-right: 5px;
    width: 28px;
    display: inline-block;
    text-align: center;
}

/* tabs */
.course-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.course-tabs button {
    background: none;
    border: none;
    padding: 12px 0;
    font-weight: 600;
    cursor: pointer;
    opacity: .5;
}

.course-tabs button.active {
    opacity: 1;
    border-bottom: 2px solid #111;
}

/* ficha curso */

.course-tab-content {
    list-style: none;
    padding-left: 0;
}

.course-tab-content h2 {
    color: #000;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0
        /*70px*/
}

.course-tab-content ul {
    margin-bottom: 40px;
}

.course-tab-content li {
    position: relative;
    padding-left: 40px;
    margin-left: 5px;
    line-height: 40px;
}

.course-tab-content li::before {
    content: "";
    width: 17px;
    height: 17px;
    background: #f00;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.7em;
}

.course-tab-content .curso-temas li {
    padding-left: 18px;
}

.course-tab-content .curso-temas li::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 1.1em;
}

.course-tab-content .curso_descripcion {
    font-size: 30px;
    color: #000;
    font-weight: 700;
    margin-bottom: 40px;
}

.course-tab-content .curso-bonificacion,
.course-tab-content .curso-dirigido {
    border-radius: 15px;
    background: #F5F5F5;
    padding: 18px;
    margin: 2rem 0;
}

.course-tab-content .curso-bonificacion h2,
.course-tab-content .curso-dirigido h2 {
    margin: 0 0 3px 0;
    color: #000;
    font-size: 18px;
    font-weight: 700;
}

.course-tab-content .curso-bonificacion p {
    color: #566367;
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
    margin: 0;

}

/*- sidebar -*/
.course-sidebar__content {
    padding: 30px;
}

/* boton*/
.course-sidebar__footer {
    padding: 0 2rem 2.5rem;
}

.woocommerce .button {
    all: unset
}



/* editar direcciones */
.woocommerce-account .addresses .title .edit {
    float: left;
    color: var(--color-rojo);
    margin: 3rem 0
}
/*-------- 'single' ---------*/
/*======================================
=            SINGLE SPACE
======================================*/

.single-space{
    overflow:hidden;
}

/*======================================
=            HERO
======================================*/

.space-hero{
    position:relative;
    padding:2rem 0 2rem;
    overflow:hidden;
}

.space-breadcrumbs{
    margin-bottom:1rem;
}
.space-hero h1 {
    font-size: 30px;
    color: var(--color-primary)
}
.space-breadcrumbs,
.space-breadcrumbs a{
    color:#fff;
    opacity:.85;
}

.space-title{
    color:#fff;
    margin:0;
}

/*======================================
=            GRID
======================================*/

.space-main{
    padding:1rem 0;
}

.space-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 638px;
    gap:4rem;
    align-items:start;
}

/*======================================
=            GALLERY
======================================*/

.space-gallery{
    margin-bottom:3rem;
    position: relative;
}

.space-gallery__featured{

    overflow:hidden;
    border-radius:1rem;
    margin-bottom:1rem;

}

.space-gallery__featured img{

    display:block;
    width:100%;
    height:auto;

}


/*-------- 'galeria' ---------*/
ol.flex-control-nav.flex-control-thumbs {
    display: flex;
    margin: 5px 0;
}
ol.flex-control-nav.flex-control-thumbs li {
margin-right: 5px;
cursor:pointer
}
a.woocommerce-product-gallery__trigger {
    position: absolute;
    z-index: 999;
    right: 0;
}
.space-gallery__thumbs img{

    width:100%;
    display:block;
    border-radius:.75rem;
    cursor:pointer;
    transition:.3s;

}

.space-gallery__thumbs img:hover{

    transform:scale(1.03);

}

/*======================================
=            CONTENT
======================================*/

.space-description{

    margin-top:3rem;

}

.space-description h2{

    margin-bottom:2rem;

}

.space-description p{

    margin-bottom:1.5rem;

}
.space-description h2 {
    font-size: 20px;
    color:var(--color-rojo-intenso)
}
.space-description ul,
.space-description ol{

    margin-bottom:2rem;
    padding-left:2rem;

}

/*======================================
=            SIDEBAR
======================================*/

.space-sidebar {
    position: sticky;
    top: 120px;
    background: silver;
    width: 100%;
    min-height: 333px;
    border-radius: 20px;
}

/* reutilizamos el estilo del sidebar del curso */

.course-sidebar__card,
.course-sidebar__content,
.course-sidebar__footer{

    border-radius:1rem;

}

/*======================================
=            BOOKING PLACEHOLDER
======================================*/

.booking-placeholder{

    display:flex;
    align-items:center;
    justify-content:center;

    min-height:320px;

    border:2px dashed #d9d9d9;
    border-radius:1rem;

    background:#fafafa;

    margin-bottom:2rem;

    color:#777;

    text-align:center;

    padding:2rem;

}

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

@media (max-width:1024px){

    .space-grid{

        grid-template-columns:1fr;

    }

    .space-sidebar{

        position:relative;
        top:auto;

    }

}

@media (max-width:768px){

    .space-main{

        padding:3rem 0;

    }

    .space-hero{

        padding:6rem 0 3rem;

    }

    .space-gallery__thumbs{

        grid-template-columns:repeat(3,1fr);

    }

}