/*
Theme Name: Las nuevas poblaciones de Carlos III Child
Theme URI: https://www.lasnuevaspoblacionesdecarlosiii.com
Author: veovirtual.com
Author URI: https://www.veovirtual.com
Template: carlosiii
Version: 310125
*/

.foto-en-mapa{margin-top:20px;}
.botones-en-mapa{display: flex; justify-content: center; gap: 20px;}
.botones-en-mapa a{border-radius:5px;}
.mcb-section .mcb-wrap .mcb-item-9mf0qsjoe .mfn-header-menu > li.mfn-menu-li{display:flex; align-items:center;}

/*-------- Layout ----------*/
#Error_404 .error_desk p .button{display:inline-block;}
#bloque-parallax > div{overflow: hidden; display: flex; justify-content: center; position:relative; box-sizing: border-box;}
.the_content #bloque-parallax .mfn-parallax{position: absolute; left: 50%; top: 0; max-width: unset !important; transition: opacity .2s;  min-width: 100%; min-height: 100%; object-fit: cover;}
#bloque-parallax .contenido-parallax{position:relative; z-index:2;}
.has_content .the_content_wrapper {margin-bottom: 0;}
.the_content_wrapper {margin: 0; width: 100%;}
.alignleft {margin: 0;}
.wp-block-group{margin:0 auto;}

/* Quitar botón recaptcha V3 de Google */
.grecaptcha-badge { visibility: hidden !important; }

/* Ficha */
body.single-portfolio .mcb-column-inner{margin-bottom:inherit; margin-top:inherit; margin-right:inherit; margin-left:inherit;}
#ficha-cabecera{box-shadow: 0 0 20px rgba(0, 0, 0, 0.18); margin-bottom: 40px;}
.ficha-foto-principal .image_frame, .ficha-foto-principal img{width:100%;}
.acf-boton{display: inline-block; padding: 10px 20px; border-radius: 8px; transition:all .3s ease-in-out;}
.acf-boton:not(.acf-boton-pagina_web):hover{color:#fff; text-decoration:none;}
.acf-boton-como_llegar{background-color:#519dca; color:#fff;}
	.acf-boton-como_llegar:hover{background-color:#247bae;}
.acf-boton-telefono{background-color:#cc7518; color:#fff;}
	.acf-boton-telefono:hover{background-color:#cc5c18;}
.acf-boton-email{background-color:#344e9b; color:#fff;}
	.acf-boton-email:hover{background-color:#1f46b9;}
.acf-boton-pagina_web{border: solid 2px #b26b1e;}
.grupo-botones-contacto{display: flex; gap: 13px;}
.redes-ficha{list-style:none !important; display:flex; gap:10px; margin:0 !important; justify-content:start;}
.redes-ficha i{padding: 10px; display: inline-flex; width: 50px; height: 50px; justify-content: center; align-items:center; line-height: 1em; font-size: 1.45em; color: #fff; border-radius:50%;}
.acf-icono-social i{transition:all .3s ease-in-out;}
.acf-icono-social:hover i{transition:all .3s ease-in-out; transform: translate(0, -4px);}
.acf-icono-facebook i{background-color:#4b6ca4;}
.acf-icono-instagram i{background: linear-gradient(45deg, blue, transparent), radial-gradient(red, transparent);}
.acf-icono-x i{background-color:#000;}
.acf-icono-tiktok i{background-color:#000;}

/* Recursos miniaturas */
.acf-portfolio-titulo-grid {
text-align: center;
  font-size: 2.4em;
  margin-bottom: 20px;
  margin-top: 41px;
  padding-top: 20px;
  border-top: solid 1px #d7d7d7;
  line-height: 1.2em;
  font-weight: 300;
}

.acf-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.acf-portfolio-item {
    text-align: center;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.acf-portfolio-thumb {
    width: 100%;
    aspect-ratio: 1 / 1; /* Para que sea cuadrado */
    overflow: hidden;
    border-radius: 6px;
}

.acf-portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rellena manteniendo proporción */
    display: block;
    border-radius: 6px;
}

.acf-portfolio-title {
    margin-top: 12px;
    font-size: 1.1em;
    line-height: 1.2em;
    font-family: sans-serif;
    color: #222;
}

.acf-portfolio-title a {
    text-decoration: none;
    color: inherit;
}

.acf-portfolio-title a:hover {
    text-decoration: underline;
}

@media only screen and (min-width: 1240px){
	/*body.page #Content .section_wrapper, body.single-portfolio #Content .section_wrapper{max-width: inherit;}*/
	.caja > div{max-width: 1240px; padding:3%; margin:0 auto;}
}
@media only screen and (max-width: 1239px){
	
}

@media only screen and (min-width: 960px) and (max-width: 1239px){
	/*body.page #Content .section_wrapper, body.single-portfolio #Content .section_wrapper{max-width:inherit; padding:0;}*/
	.caja > div{padding:3%; margin:0 auto;}	
}

@media only screen and (min-width: 768px) and (max-width: 959px){
	/*body.page #Content .section_wrapper, body.single-portfolio #Content .section_wrapper{max-width:inherit;}*/
	.caja > div{padding:3%; margin:0 auto;}	
}
@media only screen and (min-width: 960px){
	/*#contenido-ficha > div{display:flex;}
	#contenido-ficha #datos-ficha{width:30%;}
	#contenido-ficha #texto-ficha{width:70%;}
	#contenido-ficha #datos-ficha, #contenido-ficha #texto-ficha{margin:0;}*/
	
}
@media only screen and (max-width: 959px){
	
}
@media only screen and (min-width: 768px){
	.movil{display:none;}
	.caja-reverso > div{justify-content:flex-end;}	
}
@media only screen and (max-width: 767px){
	body.page #Content .section_wrapper, body.single-portfolio #Content .section_wrapper{max-width:inherit !important; padding-left: 0; padding-right: 0;}
	.caja > div{padding:3%; margin:0 auto;}
	.pc-tablet{display:none;}	
}