/*
 * Efimaster: detalles de estilo que Elementor gratis no permite desde el panel.
 * Los colores salen de Elementor > Ajustes del sitio > Colores globales
 * (si cambiás el color "Acento" ahí, cambia también acá).
 */

/* Base de la página (plantilla Canvas de Elementor) */
html {
	scroll-behavior: smooth;
}
body.elementor-template-canvas {
	background: var(--e-global-color-efmfondo, #0b0f13);
	color: var(--e-global-color-text, #fff);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.elementor-template-canvas :is(h1, h2, h3, h4, h5, h6, p, a) {
	font-family: inherit;
}
.elementor-template-canvas p:last-child {
	margin-bottom: 0;
}
.elementor-template-canvas a {
	text-decoration: none;
}
.elementor-template-canvas :focus-visible {
	outline: 3px solid var(--e-global-color-primary, #ffc41a);
	outline-offset: 3px;
}

/* Parte amarilla del nombre: <span class="efm-y">Efi</span>master */
.efm-y {
	color: var(--e-global-color-primary, #ffc41a);
}

/* Logo de la barra superior: "Taller" chico arriba, "Efimaster" grande abajo */
.efm-logo .elementor-heading-title,
.efm-logo .elementor-heading-title a {
	display: flex;
	flex-direction: column;
	color: inherit;
}
.efm-logo .efm-logo-top {
	font-size: .6em;
	letter-spacing: .03em;
}

/* Menú: el primer ítem ("Inicio") queda marcado como en el diseño */
.efm-nav .elementor-icon-list-item:first-child .elementor-icon-list-text {
	color: var(--e-global-color-primary, #ffc41a);
	border-bottom: 2px solid var(--e-global-color-primary, #ffc41a);
	padding-bottom: 4px;
}

/* Encabezado: "Taller" en una línea más chica arriba de "Efimaster" */
.efm-hero .efm-h1-top {
	display: block;
	font-size: .55em;
	line-height: 1.1;
	letter-spacing: 0;
}
/* "Taller mecánico en Olivos": es parte del H1 (por SEO) pero se ve como subtítulo */
.efm-hero .efm-h1-sub {
	display: block;
	margin-top: 12px;
	font-size: max(20px, .335em);
	font-style: normal;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}
/* Texto de presentación de Servicios */
.efm-intro .elementor-heading-title {
	max-width: 720px;
	margin-inline: auto;
}
/* Fondo decorativo mientras no haya foto. Al cargar una imagen de fondo en Elementor, esto se reemplaza solo. */
@media (min-width: 768px) {
	.efm-hero {
		background-image:
			linear-gradient(112deg, transparent 0 59%, var(--e-global-color-primary, #ffc41a) 59% 59.5%, transparent 59.5%),
			linear-gradient(112deg, transparent 0 59.5%, #1d2631 59.5% 100%);
	}
}
.efm-facts a {
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, .3);
	text-underline-offset: 3px;
}

/* Títulos de sección con líneas amarillas a los costados */
.efm-title-lines .elementor-heading-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	text-align: center;
}
.efm-title-lines .elementor-heading-title::before,
.efm-title-lines .elementor-heading-title::after {
	content: "";
	/* Las líneas ocupan el espacio que sobra (hasta 130 px) y se achican antes de que el texto se parta. */
	flex: 1 1 0%;
	max-width: 130px;
	min-width: 14px;
	height: 3px;
	border-radius: 2px;
	background: var(--e-global-color-primary, #ffc41a);
}
.efm-lines-wide .elementor-heading-title::before,
.efm-lines-wide .elementor-heading-title::after {
	max-width: 220px;
	height: 2px;
}
@media (max-width: 767px) {
	.efm-title-lines .elementor-heading-title {
		gap: 14px;
	}
}

/* Botones */
.elementor-template-canvas .elementor-button {
	transition: filter .15s, transform .1s, border-color .15s, background-color .15s;
}
.elementor-template-canvas .elementor-button:active {
	transform: scale(.98);
}
.elementor-template-canvas .efm-pill .elementor-button-content-wrapper {
	align-items: center;
}
.elementor-template-canvas .efm-pill .elementor-button-icon svg {
	width: 1.8em;
	height: 1.8em;
}
.elementor-template-canvas .efm-pill .elementor-button-text {
	flex-grow: 0;
	text-align: left;
}
.efm-pill-arrow .elementor-button-content-wrapper::after {
	content: "";
	flex: none;
	width: .5em;
	height: .5em;
	margin-left: 14px;
	border-top: 3px solid currentColor;
	border-right: 3px solid currentColor;
	transform: rotate(45deg);
}
.efm-btn-ghost .elementor-button-icon svg {
	fill: var(--e-global-color-primary, #ffc41a);
}

/* Servicio "¿Otro arreglo?": todo el bloque es clickeable */
.efm-card-cta {
	position: relative;
}
.efm-card-cta a {
	color: inherit;
}
.efm-card-cta .elementor-icon-box-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* "¿Por qué elegirnos?": líneas divisorias entre motivos */
@media (min-width: 768px) {
	.efm-why-grid .efm-why-item + .efm-why-item {
		border-left: 1px solid var(--e-global-color-efmborde, rgba(255, 255, 255, .15));
	}
}
/* Frase manuscrita */
.efm-slogan .elementor-heading-title {
	display: inline-block;
	font-family: "Segoe Script", "Bradley Hand", "Snell Roundhand", "Dancing Script", "Brush Script MT", cursive;
	transform: rotate(-7deg);
}
.efm-slogan .elementor-heading-title::after {
	content: "";
	display: block;
	width: 70%;
	height: 4px;
	margin: 12px 0 0 auto;
	border-radius: 4px;
	background: var(--e-global-color-primary, #ffc41a);
}

/* Galería: todas las fotos con la misma proporción */
.efm-gal img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
/* Encuadre para las fotos que tienen lo importante en la parte de abajo */
.efm-gal--abajo img {
	object-position: 50% 80%;
}

/* Íconos alineados con el título (el tema le agrega margen arriba a los títulos) */
.elementor-template-canvas .elementor-icon-box-title {
	margin-top: 0;
}

/* Datos de contacto y pie */
.efm-info a,
.efm-footer a {
	color: inherit;
}
.efm-footer a {
	font-weight: 700;
}

/* Mapa con bordes redondeados */
.efm-map,
.efm-map iframe {
	display: block;
	border-radius: 10px;
	overflow: hidden;
}

/* Botón flotante de WhatsApp */
.efm-wa-float .elementor-icon {
	box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.elementor-template-canvas .elementor-button,
	.efm-wa-float .elementor-icon {
		transition: none;
	}
}
