/*
 Theme Name:   ProGEO Child
 Description:  ProGEO Child Theme
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/* 
All style editing is done via /assets/scss/_bootscore_custom.scss
*/

/* ==================================================
   1. GLOBALES Y RESET
================================================== */
* {
    font-family: "Raleway", sans-serif;
}

.img-mobile {
  display: none !important;
}

::selection {
    background-color: #bec0a4 !important;
}

.wp-block-separator {
  margin: 20px 0px !important;
  display: block;
}

a {
    color: #646464;
}

a:hover {
    color: #949494;
}

.container {
    margin-left: auto !important;
    margin-right: auto !important;
}

.container-fluid {
    padding-left: 0px !important;
    padding-right: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
}


/* ==================================================
   2. HEADER Y NAVEGACIÓN
================================================== */
.container-logo {
    padding: 5rem 0rem;
    font-family: "Raleway", sans-serif;
}

.container-logo h2 {
    font-size: 3.5rem;
    font-weight: bold;
}

.container-logo h3 {
    font-size: 1.8rem;
}

#bootscore-navbar {
    margin: 0 auto !important;
    font-family: "Lato light";
}

#bootscore-navbar a {
    font-size: 0.90rem;
}

#bootscore-navbar li {
    padding: 0px 8px;
}

#bootscore-navbar li ul li {
    border-left: 0px solid grey !important;
}

#bootscore-navbar li:first-child {
    border-left: 0px;
}

.dropdown-menu.depth_0 {
    border: 0px;
}

.dropdown-item.active,
.dropdown-item:active {
    text-decoration: none;
    background-color: #8f907b;
}

/* Forzar fondo blanco para los items dentro del submenú de nav-item-1766 */
.nav-item-1766 .dropdown-menu .dropdown-item, .nav-item-2999 .dropdown-menu .dropdown-item, .nav-item-2994 .dropdown-menu a.dropdown-item {
    background-color: white !important;
}
.nav-item-1766 .dropdown-menu:hover .dropdown-item:hover, .nav-item-2999 .dropdown-menu:hover .dropdown-item:hover, .nav-item-2994 .dropdown-menu:hover a.dropdown-item:hover {
 background-color: #f8f9fa !important;
}




/* Mantener el estilo active específico para los subitems si es necesario */
.nav-item-1766 .dropdown-menu .dropdown-item.active {
    background-color: white !important; /* O el color que quieras para active en subitems */
    color: #212529 !important;
}
/* Mantener el estilo active específico para los subitems si es necesario */
.nav-item-2999 .dropdown-menu .dropdown-item.active {
    background-color: white !important; /* O el color que quieras para active en subitems */
    color: #212529 !important;
}
.nav-item-2994 .dropdown-menu, .dropdown-item.active {
    background-color: white !important; /* O el color que quieras para active en subitems */
    color: #212529 !important;
}


#idiomas {
    padding: 0.5rem 0px;
}

#idiomas a {
    text-decoration: none;
    padding: 8px;
    border: 1px solid #666;
}

#idiomas a:first-child {
    border-right: 0px;
    margin-right: -5px;
}

.idioma_activo {
    background: #c5c5c5;
}

.lang-active {
  color: #bec0a4;
  font-weight: bold;
}

.lang-inactive {
  color: inherit;
}

.lang-active:hover,
.lang-inactive:hover {
  opacity: 0.8;
}

.bg-body-tertiary {
    background: white !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ==================================================
   3. CONTENIDO GENERAL
================================================== */
.content-area p {
    padding: 5px 0px 5px 0px;
}

.content-area img {
    margin-top: 20px;
}

.entry-content h2 {
    padding: 10px 0px 10px 0px;
    font-size: 2em;
}

.entry-content h3 {
    padding: 10px 0px 10px 0px;
    font-size: 1.5em;
}

.noticia-content p {
    padding: 8px 0px;
}

.justificado {
    text-align: justify !important;
}

.footer_widget {
    color: #222;
}

.footer_widget p {
    line-height: 1.5rem;
    margin: 20px 0px !important;
}

/* Utilidades */
.block-center {
    margin: 0 auto !important;
}

.bg-verduzco {
    background: #bec0a4;
}

.borde-verduzco {
    border: 1px solid #bec0a4;
}

.bg-news-blue {
    background: #556370;
}

.bg-news-blue1 {
    background: #717d81;
}

.bg-news-content {
    background: #ffffff;
}

.bg-blue {
    background: #40c0f2;
    padding: 30px 0px;
}

.borde-gris {
    border: 1px solid #ddd;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.rellenar {
    width: 100%;
    height: 550px;
    /* o lo que necesites */
    overflow: hidden;
}

.rellenar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map {
    -webkit-filter: grayscale(50%);
}

/* ==================================================
   4. BLOQUES Y COMPONENTES ESPECÍFICOS
================================================== */
.top-button.visible {
    background: #bec0a4;
    padding: 15px !important;
    color: white !important;
    --bs-btn-border-color: #bec0a4;
}

.top-button.visible:hover {
    --bs-btn-border-color: #bec0a4;
}

.news-img-cover {
    width: 100%;
    height: 100%;
}

.news-img-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portada-noticias .row:first-of-type {
    padding-top: 3rem;
}

.first-item {
    margin-top: -3rem !important;
}

.portada-noticias {
    padding: 5px !important;
}

.titulo-noticia {
    min-height: 60px !important;
    overflow: hidden;
    display: block;
    font-size: 1.2rem;
}

.noticia-textos .excerpt {
    overflow: hidden;
    min-height: 150px !important;
    display: inline-block;
}

.aumentarImagen {
    display: block;
    overflow: hidden;
}

.aumentarImagen img {
    transition: all .3s ease-in-out;
}

a.aumentarImagen:hover img {
    transform: scale(1.10);
    background: rgba(0, 0, 0, 0.5);
}

.attachment-destacadaNoticias {
    height: 220px !important;
}

.bloque-animado:hover {
    background: #f1c260 !important;
    color: #000 !important;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: .1em .1em .25em -0.1em rgba(0, 0, 0, .25);
}

.bloque-animado-textos {
    min-height: 350px;
    background: rgba(160, 160, 160, 0.94) !important;
    text-decoration: none;
    color: black;
}

.paginacion .page-numbers {
    padding: 10px;
    border: 1px solid;
    border-radius: 4px;
}

.paginacion {
    text-align: center;
}

.banner-texto h2 {
    text-align: center;
    padding: 10px 0px;
    font-size: 3rem;
    color: #eea613;
}

/* ==================================================
   5. WOOCOMMERCE Y CARRITO
================================================== */


/* Posicionamiento relativo para el contenedor de la imagen */
.wc-block-components-product-image {
    position: relative !important;
}

/* Para los enlaces dentro de la imagen */
.wc-block-components-product-image a {
    position: relative !important;
    display: block !important;
}

/* Agregar el badge usando pseudo-elemento */
.product_tag-print-subscription .wc-block-components-product-image a:before {
    content: "Print Subscription";
    position: absolute;
    top: 15px;
    left: 15px;
    background: #39575f;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
    font-family: sans-serif;
}


.other_transactions .quantity {
    display: none !important;
}

.other_transactions .yee-nyp-des {
    font-size: 1rem;
    margin: 10px 0px !important;
}

.other_transactions .woocommerce div.product form.cart .button {
    vertical-align: middle;
    float: left;
    margin-left: 0px !important;
    padding: 20px;
    margin: 30px 0px !important;
}

.added_to_cart.wc_forward {
    color: white !important;
    padding: 5px 10px;
    background: #958e09;
    margin-left: 10px !important;
    color: white;
    border-radius: 3px;
}

.related.products {
    display: none !important;
}

/* Checkout */
.wc-block-components-sidebar {
    width: 30% !important;
    padding-left: 2% !important;
}

.wc-block-components-main {
    width: 70% !important;
}

.wc-block-components-product-metadata__description {
    display: none !important;
}

.wc-block-components-checkout-order-summary__title-text {
    padding: 15px;
}

.woocommerce-checkout .wc-block-components-text-input {
    margin: 10px 0px !important;
}

.woocommerce-checkout h2 {
    margin: 10px 0px !important;
}

.wc-block-components-text-input.wc-block-components-address-form__city,
.wc-block-components-text-input.wc-block-components-address-form__last_name {
    margin-left: 4px !important;
}

.wc-block-checkout__add-note,
.wc-block-checkout__actions_row {
    margin: 10px 0px !important;
}

.wc-block-components-checkbox__label {
    margin-left: 8px !important;
}

/* Producto individual */
.single_add_to_cart_button.button.alt>.btn-loader {
    display: none !important;
}

.single_add_to_cart_button.button.alt {
    margin-left: 10px !important;
    background: #bec0a4 !important;
}

.product_meta {
    display: none !important;
}

.woocommerce-variation-price {
    font-size: 1.8rem;
    padding: 10px 0px;
}

.woocommerce-tabs.wc-tabs-wrapper {
    padding-top: 20px !important;
}

/* Mi cuenta */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 90% !important;
    margin-left: 20px !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: right;
    width: 95%;
}
.wc-block-grid.wp-block-product-new.wp-block-woocommerce-product-new.wc-block-product-new.has-4-columns {
  display: none;
}


/* ==================================================
   6. FORMULARIOS (CONTACT FORM 7 Y GETWID)
================================================== */
.wpcf7 p br {
    display: none;
}

.wpcf7 p {
    margin: 0;
}

.wpcf7 {
    max-width: 90%;
    margin: 0 auto;
    font-family: 'Raleway', sans-serif;
}

/* TÍTULO */
.wix-title {
    padding-top: 50px;
    padding-bottom: 30px;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: white;
}

/* CAMPOS */
.wix-field {
    margin-bottom: 20px;
    margin-top: 20px !important;
}

.wix-field label {
    display: block;
    font-size: 1.4em;
    color: white;
    margin-bottom: 8px;
}

/* INPUTS */
.wix-field input,
.wix-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    border-radius: 3px;
    transition: border 0.3s;
}

/* FOCUS estilo Wix */
.wix-field input:focus,
.wix-field select:focus {
    border-color: #000;
    outline: none;
}

/* PLACEHOLDER */
::placeholder {
    color: #999;
}

/* CHECKBOX */
.wix-checkbox {
    font-size: 12px;
    margin: 40px 0px !important;
    color: white;
}

/* espacio para € */
.amount-field input {
    padding-left: 25px !important;
}

.wix-checkbox input {
    margin-right: 8px;
}

/* BOTÓN */
.wix-submit {
    margin-top: 25px;
}

.wix-submit input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: black;
    color: white;
    font-weight: bold;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.wix-submit input[type="submit"]:hover {
    background-color: #333;
}

/* MENSAJES DE ERROR */
.wpcf7-not-valid {
    border-color: red !important;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    color: red;
}

/* SUBTEXTO */
.wix-subtitle {
    font-size: 22px;
    margin-bottom: 30px;
    color: #ccc;
}

/* LABEL DESCRIPCIÓN */
.wix-description-label {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: white;
}

/* TEXTAREA */
.wix-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #aaa;
    background: white;
    font-size: 14px;
    min-height: 120px;
    margin-bottom: 30px !important;
}

/* ==================================================
   7. MEDIA QUERIES (RESPONSIVE)
================================================== */

/* Media Query para tablets y móviles grandes (max-width: 991.98px) */
@media (max-width: 991.98px) {
    /* Ajustes para el checkout */
    .wc-block-components-sidebar,
    .wc-block-components-main {
        width: 100% !important;
        padding-left: 0 !important;
    }
}

/* Media Query para tablets (max-width: 767.98px) */
@media (max-width: 767.98px) {
    /* Noticias y portada */
    .portada-noticias .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .justify-content-center.row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .noticia-textos {
        padding: 1.25rem !important;
    }

    .noticia-textos .fs-3 {
        font-size: 1.5rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .news-img-cover {
        height: 220px;
        overflow: hidden;
    }

    .news-img-cover img {
        height: 100%;
        object-fit: cover;
    }

    .bg-news-content {
        margin-bottom: 1rem;
    }
    	.wp-block-image {
	  width: 100% !important;
	  height: auto 
	}
	.has-x-large-font-size {
  font-size: 1.5rem !important;
}
}

/* Media Query para móviles pequeños (max-width: 575.98px) */
@media (max-width: 575.98px) {
.img-desktop {
    display: none !important;
  }
.img-mobile {
display: block !important;
}

.bootscore-footer-info {
  text-align: center;
}

.bootscore-footer-info .ps-5 {
  padding-left: 1rem !important;
}

.wpcf7 {
    max-width: 99%;

}

.has-medium-font-size {
  font-size: 1.15rem !important;
}

/* TÍTULO */
.wix-title {
    padding-top: 50px;
    padding-bottom: 30px;
    font-size: 2rem;
    margin-bottom: 30px;

}

    /* Ajustes de texto en noticias */
    .noticia-textos .fs-3 {
        font-size: 1.25rem !important;
    }

    .noticia-textos {
        padding: 1rem !important;
    }

    .fecha,
    .lectura {
        font-size: 0.875rem;
    }

    .excerpt {
        font-size: 0.875rem;
    }

    /* Ajustes generales y de layout heredados de la media query original para móviles */
    .parent-pageid-257 .wp-block-group,
    .parent-pageid-1837 .wp-block-group,
    .parent-pageid-1841 .wp-block-group {
        margin: 0px 20px !important;
    }

    .wp-container-core-column-is-layout-f7059b37>:where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: 100% !important;
    }

    .home .wp-block-group {
        margin: 5px !important;
    }

    .home h2 {
        padding-bottom: 10px !important;
    }

    .wp-container-core-group-is-layout-988b637e {
        grid-template-columns: none !important;
        padding: 0px !important;
    }

    .wp-block-column.is-layout-constrained.wp-container-core-column-is-layout-7a3688e9 {
        margin: 10px 0px !important;
    }

    .wp-container-core-column-is-layout-8a400663>:where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: 95% !important;
    }

    .wp-container-core-column-is-layout-e6da8183>:where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: 95% !important;
    }

    .wp-container-core-column-is-layout-e6da8183 .ps-5 {
        padding: 18px 0px !important;
        padding-left: 0rem !important;
    }

    .wp-container-core-column-is-layout-e6da8183 .wp-block-column br {
        display: none;
    }
    
    .portada-noticias {
		padding: 0px !important;
	}
	
	.bg-news-blue1 {
		background: white;
	}
	
	.portada-noticias #content {
	  margin-top: 0px !important;
	  padding-top: 0px !important;
	}

    .portada-noticias .row:first-child {
        padding-top: 3rem;
    }

    #news-container>.pe-5 {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    #news-container>.ps5 {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    #bootscore-navbar li {
        padding: 5px 15px;
        border-left: 0px solid grey;
    }

    #idiomas {
        padding-left: 15px;
        padding-top: 10%;
    }

    .colaboran {
        text-align: center;
    }

    .colaboran img {
        padding: 5px 0px;
    }

    .testimonios {
        width: 98%;
    }

    .banner-texto main {
        padding: 0px 10px;
    }

    .banner-texto main h2 {
        font-size: 2rem;
    }

    .wp-container-core-group-is-layout-95fb8188>:where(:not(.alignleft):not(.alignright):not(.alignfull)),
    .wp-container-core-group-is-layout-35184b12>:where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: 90% !important;
    }

    .has-large-font-size {
        font-size: 24px !important;
    }

    .contacto .ps-5 {
        padding-left: 0px !important;
    }

    .contacto .p-5 {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .wp-container-core-columns-is-layout-28f84493 {
        display: block !important;
    }

    .wp-container-core-columns-is-layout-28f84493 .wp-block-image.aligncenter.size-full {
        float: left !important;
    }

    .wp-block-getwid-contact-form {
        margin-top: 30px !important;
    }

    .shop-menu {
        margin-top: 15px !important;
    }
}

/* Media Query para Desktop (punto de ruptura estándar) */
/* Mantiene los estilos de escritorio exactamente igual */
@media (min-width: 768px) {

    .noticia-textos {
        padding: 0;
    }

    .justify-content-center.row {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}
