/*
    Theme Name:   Museo Misiones
    Description:  Tema personalizado para el sitio web Museo Misiones Salesianas.
    Author:       Introarte SL
    Author URI:   https://introarte.net
    Template:     generatepress
    Version:      0.1
*/
/** TOP **/
@media (min-width: 1400px) {
    .ms-top-container {
        background: linear-gradient(
        to right,
        var(--accent) 0%,
        var(--accent) 50%,
        var(--contrast-3) 50%,
        var(--contrast-3) 100%
        );
    }
}
.ms-top {
	border-top-right-radius: 30px;
}
.ms-border {
    border-top-right-radius: 150px;
}
@media screen and (max-width: 1250px) {
    .ms-top {
        gap: 1rem;
    }
    .ms-top img {
        height: 30px !important;
    }
    .top-redes {
        display: none !important;
    }
}
@media screen and (max-width: 900px) {
    .ms-top img {
        height: 20px !important;
    }
}
@media screen and (max-width: 767px) {
    .ms-top img {
        height: auto !important;
    }
    .nomobile {
        display: none !important;
    }
}
.elementor-button-icon svg {
    width: 1.5em !important;
    height: 1.5em !important;
    display: inline-flex;
    margin-top: -.25em;
}
.elementor-button-content-wrapper {
    align-items: center;
}



@media screen and (min-width: 1410px) {
    .inside-header {
        padding: 20px 0 20px 40px !important;
        max-width: 1400px;
        margin: 0 auto;        
    }
    .main-navigation .main-nav ul li a {
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media screen and (max-width: 1260px) {
    .main-navigation .main-nav ul li a {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 768px) {
    .site-header .header-image {
        width: 160px;
    }
    .slideout-navigation.do-overlay .inside-navigation {
        padding: 10% 5% 0;
    }
    #generate-slideout-menu .slideout-menu li {
        border-top: 1px solid #fff;
    }
    /*.site-header {
        margin-bottom: 2rem;
    }*/
    #generate-slideout-menu {
        margin-top: 160px;        
        clip-path: ellipse(170% 100% at 50% 100%);
    }
    #generate-slideout-menu .wp-block-woocommerce-customer-account a {
    display: block;
    line-height: inherit;
    padding: 0; 
    }
    #generate-slideout-menu svg {
        width: 36px;
        height: 36px;
    }
    button.slideout-exit.has-svg-icon {
        display: none;
    }
    .slideout-navigation .main-nav {
        margin-bottom: 0 !important;
    }
    .slideout-navigation.do-overlay .menu-item-has-children .dropdown-menu-toggle {
        padding-top: 5px !important;
    }

}







/** CABECERAS **/
.fondo-cabecera {
	clip-path: ellipse(90% 120% at 100% 50%);
	padding-left: 25% !important;
}
.term-description {
    display: none;
}
.cabecera-categoria {
    background-size: 60% !important;
}
@media screen and (max-width: 768px) {
    .fondo-cabecera {
        clip-path: margin-box;
        padding-left: 10% !important;
    }
    .site-header.has-inline-mobile-toggle .site-logo {
        max-width: 65%;
    }
}





/** ACORDEON **/
/*.acordeon-ms details:first-of-type > div > div,*/
.acordeon-ms details:first-of-type > summary {
    border-top-right-radius: 150px !important;
}
.acordeon-ms details {
    border-bottom: 1px solid #fff;
}
.acordeon-ms summary {
    /*background: url(/wp-content/uploads/2025/12/fondo-acordeon.webp);*/
    background: var(--accent);
}
/*.acordeon-ms details[open] > summary {
    height: 0 !important;
    margin: 0;
    padding: 0;
}  */
@media screen and (max-width: 768px) {
    .acordeon-ms details[open] > div > div {
        flex-direction: column-reverse;
        clip-path: none !important;
    }
    .acordeon-ms details[open] > div > div > div {
        clip-path: none !important;
        min-height: auto !important;
    }
}
.main-navigation .menu-toggle, .main-navigation .mobile-bar-items a, .main-navigation .menu-bar-item > a {
    padding-right: 0;
	background-color: transparent;
}
.entry-content:not(:first-child), .entry-summary:not(:first-child), .page-content:not(:first-child) {
    margin-top: 0;
}

/** SLIDER **/
.ms-slider .swiper-pagination {
    padding: 1rem 3rem;
    border-radius: 20px;
    background: #fff;
}
.ms-slider .swiper-pagination-bullet {
    width: 16px !important;
    height: 16px !important;
    outline-color: var(--accent);
    outline-width: 1px;
    outline-style: solid;
    outline-offset: 2px;
}
.ms-slider .swiper-pagination-bullet-active {
    background-color: var(--accent) !important; 
}
@media screen and (min-width: 1024px) {
    .mobile-ms-slider .elementor-loop-container {
        overflow: visible !important;
    }
}



/*** FORMULARIO ***/
.ms-form .wpforms-submit-container {
    float: right;
    margin-top: 10px !important;
    margin-right: 10px;
}
.wpforms-submit:after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 1.2em;
    margin-left: 1rem;
    background-color: currentColor;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.9 3.8 17.1 12 8.9 20.2 7.8 19.1 14.9 12 7.8 4.9Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.9 3.8 17.1 12 8.9 20.2 7.8 19.1 14.9 12 7.8 4.9Z'/%3E%3C/svg%3E");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;

    vertical-align: -0.3em;
}
.wpforms-submit:hover {
    transform: scale(1.05);
    background: var(--accent) !important;
}
@media screen and (max-width: 768px) {
    .ms-form .wpforms-submit-container {
        float: none;
        margin: 2rem auto 0 !important;
        display: flex;
        justify-content: center;
    }
}

/** ORDENAR PRODUCTOS **/
body.tax-product_cat .woocommerce-ordering:after {
    display: none;
}
.ordering-menu__list.is-open li:first-of-type {
    display: none;
}
.woocommerce-ordering.ordering-menu {
    position: relative;
    display: inline-block;
    font-family: inherit;
    margin: 0 6em 1em;
}

.ordering-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 220px;
    border: none;
    color: #000;
    background: #fff;
    cursor: pointer;
    text-transform: uppercase;
    padding: 0;
    font-size: 13px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
button.ordering-menu__toggle:hover,
button.ordering-menu__toggle:focus,
button.ordering-menu__toggle.is-active {
    background: #fff !important;
    color: #000 !important;
}
span.ordering-menu__toggle-text {
    padding: 10px 14px;
}

.ordering-menu__toggle-icon {
    background-color: var(--accent);
    color: #fff;
    margin-left: 10px;
    font-size: 12px;
    padding: 10px 14px;
}

.ordering-menu__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    display: none;
    z-index: 100;
}

/* Cuando está abierta */
.ordering-menu__list.is-open {
    display: block;
}

/* Elementos de la lista */
.ordering-menu__item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
}

.ordering-menu__item:first-child {
    border-top: none;
}
/* Quitar borde azul feo en algunos navegadores */
.ordering-menu__item:focus {
    outline: none;
}

/* Estilo de las <option> (limitado por los navegadores) */
.woocommerce-ordering select.orderby option {
    background-color: #fff;
    color: var(--contrast-2);
    padding: 8px;
    border-bottom: 1px solid #eee;
}
@media screen and (max-width: 768px) {
    .woocommerce-ordering.ordering-menu {
        display: flex;
        margin: 2rem auto !important;
        justify-content: center;
    }
}


/** HOME **/
.fondo-gris-claro  {
    position: relative !important;
}
.fondo-gris-claro::before  {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--base);
    right: 0;
    top: 0;
}


/*** LOOP TALLERES ***/
#capaPaginacion {
    font-size: 40px;
    flex-direction: row;
    column-gap: 1rem;
}
/*#capaPaginacion .page-numbers {
    display: none;
}
#capaPaginacion .page-numbers.next,
#capaPaginacion .page-numbers.prev {
    display: block;
}*/
.taller-evento {
    transition: all 0.3s ease;
}
.taller-evento:hover {
    transform: none !important;
    background-color: var(--accent) !important; 
}
.taller-evento:hover .contenido-taller-evento * {
    color: #fff !important;
}
.taller-evento:hover .contenido-taller-evento .elementor-button {
    background-color: #fff !important;
    color: var(--accent) !important;
    border-color: #fff !important; /* borde blanco como en tu captura */
}
.taller-evento:hover .contenido-taller-evento .elementor-button .elementor-button-text {
    color: var(--accent) !important;
}

/*** LOOP TARJETA EVENTO ***/
.tarjeta-evento {
    transition: all 0.3s ease;
}
.tarjeta-evento:hover {
    transform: scale(1.03);
    background-color: var(--accent) !important; 
}
.tarjeta-evento:hover .contenido-evento * {
    color: #fff !important;
    fill: #fff !important;
}
.tarjeta-evento:hover .contenido-evento .elementor-button-link:hover span  {
    color: var(--accent) !important;
}
.tarjeta-evento .contenido-evento .elementor-button {
    width: auto !important;
    display: inline-flex !important;
    max-width: none !important;
}
.tarjeta-evento:hover .contenido-evento .elementor-button svg {
    fill: #fff !important;
    stroke: #fff !important;
}


/*** LOOP BLOG ***/
.tarjeta-blog {
    transition: all 0.3s ease;
}
.tarjeta-blog:hover {
    background-color: var(--accent) !important;
}
.tarjeta-blog:hover .fecha-blog-ms {
    background-color: #e6e6e6 !important; 
    color: var(--accent) !important;           
}
.tarjeta-blog:hover .fecha-blog-ms * {
    color: var(--accent) !important;
}
.tarjeta-blog:hover .contenido-blog * {
    color: #fff !important;
    fill: #fff !important;
}




/** PAGINA PRODUCTO **/
.fondo-rosa {
    position: relative !important;
}
.fondo-rosa::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: #fff;
    right: 0;
    top: -1px;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

p.relleno {
    height: 1rem;
}
.info-gastos strong {
    line-height: 3rem;
}


/** MAPA **/
.contenedor-mapa .elementor-custom-embed:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #c10e1930;
    left: 0;
    top: 0;
    pointer-events: none;
}




/** AGENDA **/
.fecha-actividad {
    font-family: "Antonio", Sans-serif;
    font-size: 24px;
    text-align: center;
}
.fecha-actividad .dia-semana {
    text-transform: uppercase;
}
.fecha-actividad .dia {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.3em;
}













/** FOOTER **/
.ms-pie .gb-shape svg {
    color: #fff !important;
    fill: #fff !important;
}
.ms-pie-rojo a {
    color: #fff;
    text-decoration: none;
} 
.ms-pie h3:after {
    content: "";
    display: block;
    width: 50%;
    height: 2px;
    background-color: var(--accent);
    margin-bottom: 1rem;
    margin-top: 1rem;
}
#mc_embed_signup .title {
    color: #fff;
    font-size: 1.8em;
    font-family: Antonio;
}
#mc_embed_signup a {
    color: #fff;
    text-decoration: underline;
}
.mc-field-group {
    display: flex; 
    flex-direction: row; 
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
    width: 100%;
}
#mc_embed_signup .mc-field-group > div {
    text-align: left;
}
.caja-email {
    width: calc(100% - 430px);
}
#mc_embed_signup .contenedor_blanco {
    background-color: #fff;
    border-radius: 5px;
    padding: 5px;
    display: block;
    width: 100%;
}
#mc_embed_signup .contenedor_blanco .email {
    border: 0;
    background-color: #fff;
    padding: 5px 10px;
    width: calc(100% - 40px);
}
#mc_embed_signup .contenedor_blanco .button {
    padding: 5px 10px;
    color: #fff;
    background-color: var(--accent);
}
.site-footer ul {
    list-style: none;
}
.site-footer ul li a {
    color: #fff;
    text-decoration: none;
    line-height: 1.5em;
}
.btn-pie {
	background-size: 50px;
}



@media screen and (max-width: 768px) {
    .mc-field-group {
        flex-direction: column;
        gap: 1rem;
    }
    .caja-email {
        width: 100%;
    }
    .ms-pie h3:after {
        width: 80%;
        max-width: 300px;
        margin: 1rem auto;
    }  
    .menu-pie {
        align-items: center !important;
    }  
    .menu-pie li {
        margin-bottom: 0;
    }        
}


/*** Lupa en buscador ***/
.search-box{
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.search-box input[type="search"]{
    width: 100%;
    padding: 14px 60px 14px 20px;
    border-radius: 30px;
    border: 1px solid #ccc;
    font-size: 16px;
}
.search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.search-submit:hover {
    filter: brightness(1.1);
}

/* Circulo rojo + lupa blanca (SVG) */
/*.search-box::after{
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    pointer-events: none; 
}*/

/* Labels principales de WPForms */
.wpforms-form .wpforms-field-label {
    font-weight: 400 !important;
    font-size: 18px !important;
}

/* Asterisco de campo obligatorio */
.wpforms-form .wpforms-required-label {
    font-weight: 400 !important;
}

/* Sub-labels (Nombre / Apellidos dentro del campo) */
.wpforms-form .wpforms-field-sublabel {
    font-weight: 400 !important;
    font-size: 14px !important;
}

/* Texto dentro de inputs */
.wpforms-form input,
.wpforms-form textarea,
.wpforms-form select {
    font-weight: 400 !important;
    font-size: 16px !important;
}

/** PAGINACIÓN AGENDA **/
/* Solo a páginas NUMÉRICAS: excluye prev/next */
.elementor-pagination .page-numbers:not(.prev):not(.next) {
    font-size: 0;            /* ocultar el número */
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;   /* no forces flex en el contenedor */
    vertical-align: middle;
}

.elementor-pagination .page-numbers.current:not(.prev):not(.next) {
    background: var(--accent);
}

/* Mantén visibles las flechas tal cual */
.elementor-pagination .page-numbers.prev,
.elementor-pagination .page-numbers.next {
    font-size: inherit;   
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: inline;
}

/* Espaciado sin cambiar alineación del contenedor */
.elementor-pagination .page-numbers {
    margin-left: 6px;
}
.elementor-pagination .page-numbers:first-child {
    margin-left: 0;
}