/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/*GENERAL*/
p, a {
	font-family: 'Myriad Pro' !important;
	text-decoration: none !important;
}

b {
	font-weight: 700;
}

.title-hero {
	width: 40%;
	margin-left: auto;
}

a.elementor-button {
    font-family: "Syncopate", Sans-serif !important;
	text-decoration: none;
}

.menu-legal a {
	color: white !important;
	font-size: 0.9rem !important;
}

/*HEADER*/
/*menu*/
ul#menu-menu-en {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
/*Idiomas*/
a.wpml-ls-link {
    margin-bottom: 0 !important;
}

/* Transición suave al hacer scroll */
#masthead,
.e-con.elementor-sticky--effects,
header .elementor-section.elementor-sticky--effects {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#masthead ul#menu-menu-principal {
    display: block;
    padding: 3rem 1.5rem;
}

#masthead a {
	font-family: "Syncopate", Sans-serif !important;
	text-decoration: none;
	margin-bottom: 0.8rem;
}

@media (min-width: 993px) {

/* MENÚ HAMBURGUESA */
/* Oculta el menú horizontal SOLO cuando no está activo */
.ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-container:not(.active) {
    display: none !important;
}
/* Cuando está activo, lo mostramos como panel fijo (offcanvas) */
.ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-container.active {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    width: 300px !important;
    max-width: 85vw !important;
    background: #fff !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2) !important;
}
/* Overlay oculto por defecto, visible cuando el menú está activo */
.ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-overlay {
    display: none;
}
.ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-container.active ~ .elementskit-menu-overlay {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 9998 !important;
}
/* Botón hamburguesa: estructura y tamaño (bloque único, sin duplicar) */
.ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}
/* Las 3 líneas del icono */
.ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-hamburger-icon {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}
/* Color ANTES de hacer scroll (header arriba) */
body:not(.header-scrolled) .elementor-59 .elementor-element-1660093 .ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-hamburger-icon {
    background-color: #ffffff !important;
}
/* Color DESPUÉS de hacer scroll (header ya bajado) */
body.header-scrolled .elementor-59 .elementor-element-1660093 .ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-hamburger-icon {
    background-color: #000000 !important;
}
.elementor-kit-10 button:hover, .elementor-kit-10 button:focus, .elementor-kit-10 input[type="button"]:hover, .elementor-kit-10 input[type="button"]:focus, .elementor-kit-10 input[type="submit"]:hover, .elementor-kit-10 input[type="submit"]:focus, .elementor-kit-10 .elementor-button:hover, .elementor-kit-10 .elementor-button:focus {
    background-color: transparent !important;
}
/* Hover en el botón hamburguesa (header SIN scroll) */
body:not(.header-scrolled) .elementor-59 .elementor-element-1660093 .ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-hamburger:hover .elementskit-menu-hamburger-icon {
    background-color: #1d83cf !important;
}
/* Hover en el botón hamburguesa (header CON scroll) */
body.header-scrolled .elementor-59 .elementor-element-1660093 .ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-hamburger:hover .elementskit-menu-hamburger-icon {
    background-color: #1d83cf !important;
}

/* X para cerrar el menú */
.ekit-wid-con.ekit_menu_responsive_tablet .elementskit-nav-identity-panel {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    padding: 15px !important;
    overflow: visible !important;
    z-index: 10000 !important;
    background: transparent !important;
}
.ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-close {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    font-size: 24px !important;
    line-height: 1 !important;
    color: #000 !important;
    cursor: pointer !important;
    padding: 5px 10px !important;
    margin: 0 !important;
    text-indent: 0 !important;
    white-space: normal !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 10001 !important;
}
.ekit-wid-con.ekit_menu_responsive_tablet .elementskit-menu-close:hover {
    color: #1d83cf !important;
}

/* Empuja el primer enlace del menú hacia abajo para que no quede tapado por la X */
.ekit-wid-con.ekit_menu_responsive_tablet .elementskit-navbar-nav {
    padding-top: 50px !important;
}

}

/*FORMS*/
.cf-container {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-right: -5px;
	margin-left: -5px;
}
.cf-col-1, .cf-col-2, .cf-col-3, .cf-col-4, .cf-col-5, .cf-col-6, .cf-col-7, .cf-col-8, .cf-col-9, .cf-col-10, .cf-col-11, .cf-col-12 {
	position: relative;
	width: 100%;
	min-height: 1px;
	padding-right: 5px;
	padding-left: 5px;
}
@media ( min-width: 576px ) {
	.cf-col-1 {
		-ms-flex: 0 0 8.333333%;
		flex: 0 0 8.333333%;
		max-width: 8.333333%;
	}
	.cf-push-1 { margin-left: 8.333333%; }
	.cf-col-2 {
		-ms-flex: 0 0 16.66667%;
		flex: 0 0 16.66667%;
		max-width: 16.66667%;
	}
	.cf-push-2 { margin-left: 16.66667%; }
	.cf-col-3 {
		-ms-flex: 0 0 25%;
		flex: 0 0 25%;
		max-width: 25%;
	}
	.cf-push-3 { margin-left: 25%; }
	.cf-col-4 {
		-ms-flex: 0 0 33.33333%;
		flex: 0 0 33.33333%;
		max-width: 33.33333%;
	}
	.cf-push-4 { margin-left: 33.33333%; }
	.cf-col-5 {
		-ms-flex: 0 0 41.66667%;
		flex: 0 0 41.66667%;
		max-width: 41.66667%;
	}
	.cf-push-5 { margin-left: 41.66667%; }
	.cf-col-6 {
		-ms-flex: 0 0 50%;
		flex: 0 0 50%;
		max-width: 50%;
	}
	.cf-push-6 { margin-left: 50%; }
	.cf-col-7 {
		-ms-flex: 0 0 58.33333%;
		flex: 0 0 58.33333%;
		max-width: 58.33333%;
	}
	.cf-push-7 { margin-left: 58.33333%; }
	.cf-col-8 {
		-ms-flex: 0 0 66.66667%;
		flex: 0 0 66.66667%;
		max-width: 66.66667%;
	}
	.cf-push-8 { margin-left: 66.66667%; }
	.cf-col-9 {
		-ms-flex: 0 0 75%;
		flex: 0 0 75%;
		max-width: 75%;
	}
	.cf-push-9 { margin-left: 75%; }
	.cf-col-10 {
		-ms-flex: 0 0 83.33333%;
		flex: 0 0 83.33333%;
		max-width: 83.33333%;
	}
	.cf-push-10 { margin-left: 83.33333%; }
	.cf-col-11 {
		-ms-flex: 0 0 91.66667%;
		flex: 0 0 91.66667%;
		max-width: 91.66667%;
	}
	.cf-push-11 { margin-left: 91.66667%; }
	.cf-col-12 {
		-ms-flex: 0 0 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}
}

.label {
	display: none;
}

.legal {
	font-size: 0.85rem;
	color: #fff;
	margin-bottom: 0.5rem;
}

.legal a{
	color: #fff !important;
}

.legal a:hover {
	color: #6ba8d6;
}

input#btn-enviar {
    background: transparent !important;
    color: #fff !important;
	border: 1px solid #fff !important;
	border-radius: 0 !important;
	transition: all .3s ease-in-out !important;
	font-size: 1rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

input#btn-enviar:hover {
	background: #fff !important; 
	color: #016ab3 !important;
}

.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 0.8rem;
    font-weight: normal;
    display: block;
}

.w-html {
    line-height: 0;
}

input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], select, textarea {
    border: 1px solid #016ab3;
    border-radius: 0;
    padding: .5rem 1rem;
    transition: all .3s;
    width: 100%;
}

/*NUESTRAS PROPIEDADES*/
.grid-properties img {
	aspect-ratio: 1/1;
	object-fit: cover;
}

.grid-properties h3 {
	font-family: 'Myriad Pro' !important;
	text-decoration: none;
}

.properties .grid-properties {
    display: flex;
    justify-content: space-between;
    background: white;
}

/*FICHA PROPIEDADES*/
.carousel-properties img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.column-price {
	position: fixed;
	width: 20% !important;
}
/*************************************************
Pantallas más pequeñas de 1280px
**************************************************/
@media (max-width: 1280px) {
	.title-hero {
		width: 50%;
	}
	.column-price {
		width: 26% !important;
	}

}

/*************************************************
Pantallas más pequeñas de 992px
**************************************************/
@media (max-width: 992px) {
    .ekit-wid-con .elementskit-menu-hamburger-icon {
        height: 4px !important;
        background-color: #ffffff !important;
    }
    .ekit-wid-con .elementskit-menu-hamburger {
        width: 42px !important;
        height: 26px !important;
    }
	
	.elementor-59 .elementor-element.elementor-element-1660093 button.elementskit-menu-hamburger {
        border: none;
	}

    /* Color de las rayitas ANTES de hacer scroll (header arriba) */
    body:not(.header-scrolled) .ekit-wid-con .elementskit-menu-hamburger-icon {
        height: 4px !important;
        background-color: #ffffff !important;
        opacity: 1 !important;
    }

    /* Color de las rayitas DESPUÉS de hacer scroll (header ya bajado) */
    body.header-scrolled .ekit-wid-con .elementskit-menu-hamburger-icon {
        height: 4px !important;
        background-color: #000000 !important;
        opacity: 1 !important;
    }
	.title-hero {
		width: 75%;
	}
	.column-price {
		position: relative !important;
		width: 100% !important;
	}
}
/*************************************************
Pantallas más pequeñas de 650px
**************************************************/
@media (max-width: 650px) {
	.title-hero {
		width: 95%;
	}
}