/*
	Theme Name: Master Study Child
	Theme URI: http://stylemix.net
	Description: MasterStudy Child Theme
	Author: Retrazos Agencia Creativa
	Author URI: https://www.retrazos.es
	Template: masterstudy
	Version: 3.0
	Text Domain: masterstudy-child
*/



/* UPD SEPT */
@media (max-width: 400px) {
    .course-title-holder {
        padding-right: 5px;
    }
}

@media(max-width: 480px){
    .woocommerce-MyAccount-navigation ul {
        padding-left: 0;
    }
    .woocommerce-MyAccount-navigation ul li {
        display: block;
    }
}

@media (max-width: 767px) {
    .table-responsive>.table>tbody>tr>td,
    .table-responsive>.table>tbody>tr>th,
    .table-responsive>.table>tfoot>tr>td,
    .table-responsive>.table>tfoot>tr>th,
    .table-responsive>.table>thead>tr>td,
    .table-responsive>.table>thead>tr>th {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 655px) {
    .course_table tr td.number.number-visible.title, .course_table tr td.title {
        padding-left: 20px;
        display: block;
        width: 100%;
    }
    .course_table tr td.stm_badge {
        display: block;
        width: 100%;
        text-align: left;
    }
    .course_table tr td .meta {
        padding-left: 12px;
    }
    .course_table tr td.stm_badge .badge_unit {
        margin-left: 15px;
    }
    .woocommerce-message {
        padding-right: 26px;
    }
    .woocommerce-message .button {
        position: static;
        float: none;
        display: block;
    }
    .woocommerce-message .button:after {
        display: none;
    }
    .shop_table > tbody > tr td.actions {
        padding-left: 15px;
        padding-right: 15px;
    }
    .woocommerce .shop_table.cart .coupon .button {
        display: block;
        margin-top: 15px;
    }
    .woocommerce .shop_table.cart .coupon {
        float: none;
        margin-bottom: 30px;
    }
    .woocommerce .shop_table.cart .button.update-cart {
        float: none;
        margin-bottom: 15px;
    }
}

.tp-caption .icon_in_btn {
    text-align: center !important;
}

@media (max-width: 991px){
    .overflowed_content .wpb_column .vc_column-inner{
        margin-top: 0 !important;
    }
}

body .vc_row[data-vc-full-width] {
    overflow: visible;
}
body .vc_row[data-vc-full-width].vc_parallax {
    overflow: hidden;
}

.woocommerce-product-gallery {
    position: relative;
    margin-bottom: 3em
}
.woocommerce-product-gallery figure {
    margin: 0
}
.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2) {
    width: 25%;
    display: inline-block
}
.woocommerce-product-gallery .flex-control-thumbs li {
    list-style: none;
    float: left;
    cursor: pointer
}
.woocommerce-product-gallery .flex-control-thumbs img {
    opacity: .5
}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover {
    opacity: 1
}
.woocommerce-product-gallery img {
    display: block
}
.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
    width: 33.3333%
}
.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
    width: 25%
}
.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
    width: 20%
}
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 1em;
    right: 1em;
    z-index: 99
}
ol.flex-control-nav.flex-control-thumbs {
    padding-left: 0px;
}
.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
    width: 20%;
}
.woocommerce-product-gallery__trigger {
    right: inherit;
    left: .5em;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    position: absolute;
    top: .5em;
    right: .5em;
    font-size: 2em;
    z-index: 9;
    width: 36px;
    height: 36px;
    background: #fff;
    text-indent: -9999px;
    border-radius: 100%;
    box-sizing: content-box;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger:before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid #000;
    border-radius: 100%;
    position: absolute;
    top: 9px;
    left: 9px;
    box-sizing: content-box;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger:after {
    content: "";
    display: block;
    width: 2px;
    height: 8px;
    background: #000;
    border-radius: 6px;
    position: absolute;
    top: 19px;
    left: 22px;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    box-sizing: content-box;
}


/* Woo My Account Tabs*/
.woocommerce-account .woocommerce-MyAccount-navigation {
    display: table;
    float: none;
    width: 100%; }
.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
}
.woocommerce-MyAccount-navigation ul {
    display: table !important;
    table-layout: fixed;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 30px; }
.woocommerce-MyAccount-navigation  ul > li {
    display: table-cell; }
.woocommerce-MyAccount-navigation  ul > li > a {
    display: block;
    padding: 12px 20px;
    background-color: #457992;
    border: 0;
    border-left: 1px solid #fff;
    border-radius: 0;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    font-size: 14px;}
.woocommerce-MyAccount-navigation  ul > li.is-active a,
.woocommerce-MyAccount-navigation  ul > li a:hover,
.woocommerce-MyAccount-navigation  ul > li a:focus {
    background-color: #f0f2f5;
    color: #457992; }
.woocommerce div.product form.cart .variations td.label {
    display: none;
}
.woocommerce-product-gallery {
    position: relative;
    margin-bottom: 3em
}
.woocommerce-product-gallery figure {
    margin: 0
}
a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    z-index: 9 !important;
}
.stm_archive_product_inner_unit .stm_archive_product_inner_unit_centered .stm_featured_product_price .price h5 {
    font-weight: normal;
}
.widget_stm_recent_posts span.h6 {
    display: inline !important;
}
.widget_stm_recent_posts .cats_w {
    margin-left: 83px;
}

/* Retrazos */
/* --- Base REM --- */
html {
  font-size: 18px;
}

/* En pantallas de 767px o menos, cambia el tamaño base a 14px. 1rem = 14px. */
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
}


/* Fuente */
@font-face {
  font-family: 'ClashDisplay-Regular';
  src: url('./assets/fonts/ClashDisplay-Regular.woff2') format('woff2'),
       url('./assets/fonts/ClashDisplay-Regular.woff') format('woff'),
       url('./assets/fonts/ClashDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'ClashDisplay-Regular', sans-serif !important;
}

a.boton-iniciar-sesion {
    color: #000;
    text-transform: uppercase;
    font-size: 0.8rem;
}

body.page-template-default h1, body.woocommerce h1{
    font-size: 3rem;
    text-transform: none !important;
}

body.page-template-default .entry-header, body.woocommerce .entry-header {
    background-color: #2432e5;
    padding: 10px 0;
}

body.page-template-default .post_type_exist h2 {
    font-size: 2.61rem;
    font-weight: 400;
    line-height: 1em;
    margin-bottom: 35px;
}

body.post-type-archive-product h2{
    display:none;
}
.calcula-margen-izquierdo {
    padding-left: 15px;
}
@media (min-width:1370px) {
    .calcula-margen-izquierdo {
        padding-left: calc((100vw - 1400px) / 2);
    }
}

#menu-principal a.hfe-menu-item {
    font-family: 'Archivo' !important;
}
header#masthead .menu-item a.hfe-sub-menu-item, header#masthead .menu-item a.hfe-menu-item {
    font-family: 'Archivo' !important;
}

/* Detalle de curso */
.masterstudy-single-course-classic__cta.boton-matricularse {
    display: inline-block;
    background: transparent;
    width: auto;
    padding: 0;
}
.masterstudy-single-course-classic__cta .boton-matricularse-blanco{
    background-color: #ffffff;
    border: none;
    border-radius: 5px;
}
.masterstudy-single-course-classic__cta .boton-matricularse-blanco .masterstudy-buy-button__link{
    padding: 20px 30px;
    min-height: 0;
}
.masterstudy-single-course-classic__cta .boton-matricularse-blanco .masterstudy-buy-button__title{
    color: #E91D00;
    border-radius: 5px;
    font-size: 15px;
    letter-spacing: 0;
}

.masterstudy-single-course-classic__cta .boton-matricularse-rojo {
    background-color: #E91D00;
    border: none;
    border-radius: 5px;
}
.masterstudy-single-course-classic__cta .boton-matricularse-rojo .masterstudy-buy-button__link{
    padding: 20px 30px;
    min-height: 0;
}
.masterstudy-single-course-classic__cta .boton-matricularse-rojo .masterstudy-buy-button__title{
    color: #fff;
    border-radius: 5px;
    font-size: 15px;
    letter-spacing: 0;
}

.boton-matricularse-cabecera a.masterstudy-buy-button__link.masterstudy-buy-button__link_centered {
    padding: 13px 18px;
    min-height: 0;
}

body .masterstudy-buy-button {
    white-space:normal !important;
}


/* Listado de cursos shortcode */
.listado-cursos-shortcode {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.listado-cursos-shortcode .curso-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s;
    padding: 10px;
    border-radius: 8px;
}

.listado-cursos-shortcode .curso-item:hover {
    background-color: #f0f2f5;
}

.listado-cursos-shortcode .curso-imagen img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.listado-cursos-shortcode .curso-titulo {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.listado-cursos-shortcode .curso-autor {
    margin: 0;
    font-size: 14px;
    color: #555;
}


/* Formularios */

.form-control, .select2-search input.select2-input, .select2-search__field, input[type=email], input[type=number], input[type=password], input[type=tel], input[type=text] {
    border-radius: 50px;
}

textarea.form-control {
    border-radius: 10px;
}

.formulario-contacto-invertido label {
    color: #fff;
    font-size: 0.8rem;
}
.btn.btn-default, .button, .form-submit .submit, .post-password-form input[type=submit] {
    background-color: #e91D00;
    border-color: #e91D00;
    border-radius: 50px !important;
    padding: 20px 45px !important;
}

.btn.btn-default:hover, .button:hover, .form-submit .submit:hover, .post-password-form input[type=submit]:hover {
    background-color: #ff391f;
    border-color: #ff391f;
}
.wpcf7 .form-pregunta label{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap:10px;
}
.wpcf7 .form-pregunta label input{
    width: 100px;
}
.wpcf7-form .form-group {
    margin-bottom: 15px !important; 
}

.wpcf7 span.popup-privacidad{
    display:inline-block;
    border-bottom: 1px dashed #000;
    cursor: pointer;
}
.wpcf7 .formulario-contacto-invertido span.popup-privacidad{
    border-bottom: 1px dashed #fff
}

.wpcf7 label {
    color: #000;
}

.formulario-contacto-invertido label{color: #fff;}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Popups */
.pum-container h2 {
    font-size: 1.5rem;
}
