/*
Theme Name: Hello Elementor Child (Foton)
Theme URI: https://elementor.com/hello-theme
Description: Child theme para el rediseño del sitio Foton basado en Hello Elementor.
Author: Animal Studio
Author URI: https://animalstudio.com
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

input:focus {
	outline: none !important;
}

.elementor-33 .elementor-element .elementor-heading-title {
	color: inherit !important;
}

.elementor-kit-5 .e-con.e-atomic-element.e-tabs-base.e-2485a2f-74238b2 button:focus {
	background-color: inherit !important;
}

.elementor-widget-n-menu {
	.e-n-menu-toggle {
		background: transparent !important;
	}
}

#nuestros-modelos {
	>.elementor-element {
		&:hover {
			>.elementor-element {
				/* 				transition: ease-in-out .2s; */

				&:last-child {
					/* 					transition: ease-in-out .2s; */


					>.elementor-element {
						transform: translateX(0%);

						&:nth-child(1) {
							transition: ease-in-out .6s;
						}

						&:nth-child(2) {
							transition: ease-in-out .4s;
						}

						&:nth-child(3) {
							transition: ease-in-out .2s;
						}
					}
				}
			}
		}
	}
}

#menu-contacto.e-n-menu-title {

	.e-n-menu-title-container {
		background: #57bbd1;
		border-radius: 6px;
		padding: 10px 40px;

		&:hover {
			background-color: var(--e-global-color-secondary);
		}
	}

	&.e-current {
		.e-n-menu-title-container {
			color: white;
		}
	}
}

.elementor-37 .elementor-element.elementor-element-51cda5e8>.e-n-menu>.e-n-menu-wrapper>.e-n-menu-heading>.e-n-menu-item>.e-n-menu-title#menu-contacto:hover {
	border-color: transparent;
}

.elementor-widget-post-info .elementor-icon-list-item {
	font-size: 9px !important;
	font-weight: 300 !important;
	text-transform: none !important;
}

.elementor-11648 .elementor-element.elementor-element-2d527a2 .elementor-social-icon:hover svg {
	path {
		fill: var(--e-global-color-primary);
	}
}

/* form */

textarea {
	&.elementor-field-textual {
		padding: .5rem 1rem .5rem 0;
	}

	&::placeholder {
		opacity: 1 !important;
	}
}

input[type='text'],
input[type='email'],
input[type='number'],
input[type='tel'],
select.elementor-field-textual {
	padding-left: 0;

	&::placeholder {
		opacity: 1 !important;
	}
}

select.elementor-field-textual {
	background-image: url("data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAxNi40IDguNCI+PGRlZnM+PHN0eWxlPi5zdDAgeyBmaWxsOiBub25lOyBzdHJva2U6ICNmZmY7IHN0cm9rZS1saW5lY2FwOiByb3VuZDsgc3Ryb2tlLWxpbmVqb2luOiByb3VuZDsgc3Ryb2tlLXdpZHRoOiAxLjFweDsgfTwvc3R5bGU+PC9kZWZzPjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIxNS45IiB5MT0iLjUiIHgyPSI4LjIiIHkyPSI3LjkiLz48bGluZSBjbGFzcz0ic3QwIiB4MT0iOC4yIiB5MT0iNy45IiB4Mj0iLjUiIHkyPSIuNSIvPjwvc3ZnPgo=");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 1rem auto;
}

.elementor-field-type-select .select-caret-down-wrapper {
	display: none !important;
}

button[type='submit'] {
	margin-top: 30px;
}

.page-id-441 {
	select.elementor-field-textual {
		filter: brightness(0);
	}
}

/* concesionarios */

.wpsl-store-details.wpsl-store-listing {
	display: none;
}

.wpsl-direction-wrap {
	display: none;
}

#wpsl-wrap #wpsl-result-list ul li {
	list-style: none !important;
	color: #000;
	padding: 25px 25px 0;
	border-bottom: none;
}

.gm-style-iw-chr {
	position: absolute;
	right: 0;

	.gm-ui-hover-effect {
		width: 40px !important;
		height: 34px !important;

		span {
			width: 18px !important;
			height: 18px !important;
			margin: 6px !important;
			background-color: white;
		}
	}
}

.gm-style-iw.gm-style-iw-c {
	padding-left: 0;
}

.gm-style-iw-d {
	overflow: hidden !important;

	.wpsl-info-window {
		p {
			margin: 0 0 6px !important;

			&:after {
				content: '';
				width: 90%;
				height: 1px;
				background-color: #b4b9bd;
				margin: 6px auto 0;
				display: block;
			}

			>strong {
				background: #0c2e66;
				display: block;
				color: white;
				font-size: 12px;
				font-weight: bold;
				padding: 10px 10px;
			}

			span {
				&:first-of-type {
					padding: 10px 10px 0;
				}
			}
		}

		span {
			font-size: 10px;
			font-weight: 100;
			padding: 0 10px;

			a {
				font-size: 10px;
				font-weight: 100;
				color: inherit;
			}

			strong {
				font-weight: 100;
			}
		}
	}

	.wpsl-info-actions {
		a.wpsl-directions {
			font-size: 10px;
			font-weight: bold;
			text-transform: uppercase;
			color: white;
			background: #5dc4e5;
			padding: 4px 8px;
			border-radius: 3px;
			float: none;
			margin: 0 auto;

			&:hover {
				background-color: #0c2e66;
			}
		}
	}
}

.wpsl-search {
	margin-bottom: 0;
	background: #dbdde0;
	border-radius: 10px 10px 0 0;
	border-bottom: solid 1px #969696;

	form {
		display: flex;
		justify-content: space-between;

		.wpsl-input {
			float: none;
			width: calc(100% - 170px);

			/* &:focus, */
			&:focus-within,
			/* &:focus-visible, */
			&.has-text {
				>div {
					display: none;

				}
			}

			>div {
				/* display: none; */
				position: absolute;
				left: 15px;
				top: 3px;
				color: #8c8c8c;
				pointer-events: none;
				transition: all 0.2s ease;
			}

			input#wpsl-search-input {
				width: 100%;
				margin: 0 !important;
				border-radius: 6px;

				&::before {
					content: 'Mi ubicación';
				}
			}
		}

		.wpsl-search-btn-wrap {
			float: none;
			margin-right: 0 !important;
			width: 100%;
			max-width: 170px;

			input[type='submit']#wpsl-search-btn {
				margin: 0 !important;
				font-size: 14px;
				font-weight: bold;
				background: #5dc4e5;
				border-radius: 6px;
				color: white;
				text-transform: uppercase !important;
				border: none;
				width: 100%;
			}
		}
	}
}

#wpsl-stores {
	ul {
		li {

			.wpsl-store-location {
				border-bottom: 1px solid #0c2e66;
			}
		}
	}
}

#wpsl-result-list {
	width: 33.5%;
	margin-right: 0;
	background: #dbdde0;

	p {
		font-weight: 500;

		strong {
			font-weight: 500;
		}

		a {
			color: inherit;
		}
	}
}

#wpsl-result-list .wpsl-contact-details {
	display: flex;
	flex-direction: column;
	gap: 7px;

	span {
		display: flex !important;
	}
}

#wpsl-search-btn,
#wpsl-search-wrap input {
	border: 1px solid #d2d2d2;
	border-radius: 0;
	height: 40px;
}


#wpsl-search-btn,
#wpsl-search-wrap input {
	border: 1px solid #d2d2d2;
	border-radius: 30 !important;
	height: 40px;
	margin: 0 15px !important;
	padding: 0 15px !important;
}

/* Scrollbar para la lista de resultados */

/* Chrome, Safari, Edge (Control total del diseño) */
/* Aplicamos a todos los elementos dentro de la lista por si el scroll está en el ul o el div interno */
#wpsl-result-list::-webkit-scrollbar,
#wpsl-result-list *::-webkit-scrollbar {
	width: 20px;
	/* Ancho total del fondo de la barra */
	height: 20px;

}

#wpsl-result-list::-webkit-scrollbar-track,
#wpsl-result-list *::-webkit-scrollbar-track {
	background: #b4b9bd;
	/* Color del fondo (track) */
}

#wpsl-result-list::-webkit-scrollbar-thumb,
#wpsl-result-list *::-webkit-scrollbar-thumb {
	background-color: #ffffff;
	/* Color de la barra (thumb) */
	border-radius: 20px;
	/* Bordes muy redondeados */

	/* TRUCO: Como el track mide 20px, para que la barra mida 10px le ponemos 
	   un borde del color del fondo de 5px de cada lado. */
	border: 5px solid #b4b9bd;
	background-clip: content-box;
}

#wpsl-result-list::-webkit-scrollbar-thumb:hover,
#wpsl-result-list *::-webkit-scrollbar-thumb:hover {
	background-color: #f1f1f1;
}

/* Flechas superior e inferior del scrollbar */
#wpsl-result-list::-webkit-scrollbar-button:vertical:start:decrement,
#wpsl-result-list *::-webkit-scrollbar-button:vertical:start:decrement,
#wpsl-result-list::-webkit-scrollbar-button:vertical:end:increment,
#wpsl-result-list *::-webkit-scrollbar-button:vertical:end:increment {
	background-color: #b4b9bd;
	display: block;
	height: 20px;
	width: 20px;
}

/* Flecha Arriba */
#wpsl-result-list::-webkit-scrollbar-button:vertical:start:decrement,
#wpsl-result-list *::-webkit-scrollbar-button:vertical:start:decrement {
	background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAxMi43IDcuNCI+CiAgPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDMwLjYuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDIuMS40IEJ1aWxkIDEwOSkgIC0tPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuc3QwIHsKICAgICAgICBmaWxsOiBub25lOwogICAgICAgIHN0cm9rZTogI2ZmZjsKICAgICAgICBzdHJva2UtbGluZWNhcDogcm91bmQ7CiAgICAgICAgc3Ryb2tlLWxpbmVqb2luOiByb3VuZDsKICAgICAgICBzdHJva2Utd2lkdGg6IDJweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L2RlZnM+CiAgPGxpbmUgY2xhc3M9InN0MCIgeDE9IjEiIHkxPSI2LjQiIHgyPSI2LjQiIHkyPSIxIi8+CiAgPGxpbmUgY2xhc3M9InN0MCIgeDE9IjYuNCIgeTE9IjEiIHgyPSIxMS43IiB5Mj0iNi40Ii8+Cjwvc3ZnPg==');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 10px;
}

/* Flecha Abajo */
#wpsl-result-list::-webkit-scrollbar-button:vertical:end:increment,
#wpsl-result-list *::-webkit-scrollbar-button:vertical:end:increment {
	background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAxMi43IDcuNCI+CiAgPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDMwLjYuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDIuMS40IEJ1aWxkIDEwOSkgIC0tPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuc3QwIHsKICAgICAgICBmaWxsOiBub25lOwogICAgICAgIHN0cm9rZTogI2ZmZjsKICAgICAgICBzdHJva2UtbGluZWNhcDogcm91bmQ7CiAgICAgICAgc3Ryb2tlLWxpbmVqb2luOiByb3VuZDsKICAgICAgICBzdHJva2Utd2lkdGg6IDJweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L2RlZnM+CiAgPGxpbmUgY2xhc3M9InN0MCIgeDE9IjExLjciIHkxPSIxIiB4Mj0iNi40IiB5Mj0iNi40Ii8+CiAgPGxpbmUgY2xhc3M9InN0MCIgeDE9IjYuNCIgeTE9IjYuNCIgeDI9IjEiIHkyPSIxIi8+Cjwvc3ZnPg==');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 10px;
}

/* Solo para Firefox (No soporta diseño exacto de 20px, solo colores) */
@-moz-document url-prefix() {

	#wpsl-result-list,
	#wpsl-result-list #wpsl-stores {
		scrollbar-color: #ffffff #b4b9bd;
		scrollbar-width: auto;
	}
}


/* Novedades */

/* Single */

.gallery {
	display: flex;
}

/* Tooltip de Versiones (Botones Home) */
.foton-multi-btn-wrapper {
	position: relative;
	display: inline-block;
}

.foton-versions-tooltip {
	display: none;
	position: absolute;
	top: calc(100% + 5px);
	/* Aparece arriba del boton */
	left: 0;
	background: var(--e-global-color-primary);
	/* border: 1px solid #e0e0e0; */
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	padding: 8px;
	z-index: 9999;
	min-width: 240px;
	border-radius: 8px;

	svg {

		rect,
		line {
			stroke: white;
		}
	}

	.elementor-icon-list-text {
		color: white !important;
		font-size: 13px;

		&:hover {
			color: var(--e-global-color-secondary) !important;
		}
	}
}

.modelos-content {
	>div {
		/* overflow: hidden; */

		@media (min-width: 480px) {
			overflow: unset;
		}
	}
}

/* Flecha del tooltip */
.foton-versions-tooltip::after {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50px;
	margin-left: -6px;
	border-width: 6px;
	border-style: solid;
	border-color: transparent transparent var(--e-global-color-primary) transparent;
}

.foton-versions-tooltip::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50px;
	margin-left: -7px;
	border-width: 7px;
	border-style: solid;
	border-color: transparent transparent #e0e0e0 transparent;
}

.foton-versions-tooltip.active {
	display: block;
	animation: fadeIn 0.2s ease-out;
}

/* .foton-versions-tooltip ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.foton-versions-tooltip ul li {
    margin-bottom: 4px !important;
}
.foton-versions-tooltip ul li:last-child {
    margin-bottom: 0 !important;
}

.foton-versions-tooltip ul li a {
    display: block;
    padding: 8px 12px;
    color: #0c2e66;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.2s;
    text-align: center;
    background-color: #f8f9fa;
}

.foton-versions-tooltip ul li a:hover {
    background: #0c2e66;
    color: #ffffff;
} */

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}