/* Electromecánica Aplicada
 * Escala: el diseño está hecho en un lienzo de 1440 px. 1rem = 28 px a 1440 px de ancho y se reduce
 * con la pantalla (mínimo 16 px). Así los textos conservan las proporciones del diseño.
 */
:root {
	--negro: #000;
	--amarillo: #edb53a;
	--amarillo-osc: #d9a12a;
	--olivo: #2e301a;
	--gris-banda: #d9d9d9;
	--gris-claro: #efefef;
	--gris-tag: #6e6e6e;
	--texto: #111;
	--wrap: 1290px;
	--f-titulo: 'Saira Semi Condensed', system-ui, sans-serif;
	--f-corta: 'Saira Semi Condensed', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: clamp(16px, 1.944vw, 28px); }
body {
	margin: 0;
	font-family: var(--f-titulo);
	font-weight: 300;
	font-size: 1.42rem;
	line-height: 1.12;
	color: var(--texto);
	background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 14px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- títulos ---------- */
.titulo-pagina { font-size: 2.71rem; font-weight: 600; line-height: 1.02; }
.titulo-seccion { font-size: 1.98rem; font-weight: 600; line-height: 1.02; }

/* ---------- botones ---------- */
.btn {
	display: inline-block; font-family: var(--f-corta); font-weight: 600; font-size: 1.42rem; line-height: 1.1; letter-spacing: .02em;
	text-decoration: none; border: 0; border-radius: 999px; padding: .3em 1.7em; cursor: pointer; transition: background .2s;
}
.btn--amarillo { background: var(--amarillo); color: #000; }
.btn--amarillo:hover, .btn--amarillo:focus-visible { background: var(--amarillo-osc); }
.btn--chico { font-size: 1.12rem; padding: .12em .9em; }

/* ---------- encabezado ---------- */
.site-header { background: var(--negro); position: relative; z-index: 50; }
.site-header__inner { width: min(1500px, 100% - 5.5%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; min-height: 6.9rem; gap: 24px; }
.brand__logo { height: 4.7rem; width: auto; }
.main-nav__list { display: flex; gap: 1.8rem; }
.main-nav__list a {
	display: block; position: relative; font-family: var(--f-corta); font-weight: 500; font-size: 1.05rem; line-height: 1.1; letter-spacing: .01em;
	text-transform: uppercase; text-decoration: none; color: #fff; padding: .15em 0 .2em;
}
.main-nav__list .current-menu-item > a, .main-nav__list .current_page_item > a { color: var(--amarillo); }
.main-nav__list .current-menu-item > a::after, .main-nav__list .current_page_item > a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: .14rem; min-height: 3px; background: var(--amarillo);
}
.main-nav__list a:hover { color: var(--amarillo); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 28px; height: 3px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- portada ---------- */
.hero { position: relative; background: #1b1d22; color: #fff; }
.hero__foto img { width: 100%; height: clamp(360px, 59.5vw, 900px); object-fit: cover; object-position: center top; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.04) 58%); pointer-events: none; }
.hero__contenido {
	position: absolute; z-index: 2; left: 0; right: 0; bottom: 9%; text-align: center; padding-inline: 20px;
	display: flex; flex-direction: column; align-items: center; gap: .45rem;
}
.hero__titulo { font-size: 2.83rem; font-weight: 500; line-height: 1.05; text-shadow: 0 2px 14px rgba(0,0,0,.6); }

/* ---------- presentación + cifras ---------- */
.intro { padding: 2.9rem 0 2.8rem; }
.intro__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.intro__texto .titulo-seccion { margin-bottom: .75rem; }
.intro__texto > p { max-width: 25em; }
.clientes { margin-top: 1rem; }
.clientes img { width: min(100%, 27.5rem); height: auto; opacity: .95; }
.cifras { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.cifra { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cifra__numero { font-size: 3.66rem; font-weight: 600; line-height: .95; }
.cifra__etiqueta { font-family: var(--f-corta); font-size: 1.89rem; text-transform: uppercase; }
.cifras-fila { display: flex; gap: 3.4rem; margin-top: 1rem; align-items: flex-start; }
.cifra--suelta { align-items: flex-start; margin-top: 0; }
.cifra--suelta .cifra__etiqueta { padding-left: 1.4rem; }

/* ---------- pestañas ---------- */
.tabs__lista { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.tabs__tab {
	font-family: var(--f-titulo); font-weight: 600; font-size: 1.12rem; line-height: 1.05; min-height: 4.2rem; padding: .3rem 1.6rem;
	background: #f2f2f2; border: 0; border-radius: .45rem .45rem 0 0; border-bottom: 3px solid #e1e1e1; color: #111; cursor: pointer; transition: background .2s;
}
.tabs__tab.is-active { background: var(--amarillo); border-bottom-color: var(--amarillo); }
.tabs__tab:hover:not(.is-active) { background: #e8e8e8; }
.tabs__tab:focus-visible { outline: 3px solid var(--olivo); outline-offset: -3px; }
.tabs__panel[hidden] { display: none; }
html:not(.js) .tabs__panel[hidden] { display: grid; }

.servicios-tabs { padding-bottom: 3rem; }
.panel-servicio { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.2rem; align-items: center; padding-top: .5rem; }
.panel-servicio__texto { padding-left: .4rem; }
.panel-servicio__texto > p { margin: .5rem 0 .8rem; max-width: 12.5em; }
.panel-servicio__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.etiquetas { display: flex; flex-wrap: wrap; gap: .3rem .35rem; margin-top: .6rem; }
.etiquetas li {
	background: var(--gris-tag); color: #fff; font-family: var(--f-corta); font-weight: 500; font-size: 1.36rem; line-height: 1.1; text-transform: uppercase;
	letter-spacing: .02em; padding: .13em .7em;
}

/* ---------- nuestros trabajos ---------- */
.trabajos { background: var(--gris-banda); padding: 1.2rem 0 1.8rem; text-align: center; }
.etiqueta-olivo {
	display: inline-block; background: var(--olivo); color: #fff; font-size: 1.77rem; font-weight: 500; line-height: 1.1;
	padding: .2em .8em; transform: translateY(-50%); margin-bottom: -.4rem;
}
.carrusel { display: grid; grid-template-columns: 2.4rem 1fr 2.4rem; align-items: center; gap: .6rem; }
.carrusel__flecha {
	width: 1.5rem; min-width: 30px; aspect-ratio: 1; border-radius: 50%; background: #000; color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; justify-self: center; padding: 0;
}
.carrusel__flecha svg { width: 62%; height: 62%; }
.carrusel__flecha:hover { background: var(--olivo); }
.carrusel__flecha[hidden] { display: block; visibility: hidden; }
.trabajo { text-align: left; max-width: 36rem; margin-inline: auto; }
.trabajo[hidden] { display: none; }
.trabajo__nombre { display: inline-block; font-size: 1.65rem; font-weight: 500; line-height: 1.1; border-bottom: .07rem solid var(--amarillo); padding-bottom: .1rem; margin-bottom: .3rem; }
.trabajo__desc { font-size: 1rem; line-height: 1.1; max-width: 24em; margin-bottom: .5rem; }
.trabajo__fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; }
.trabajo__fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- sección "necesitas un presupuesto" ---------- */
.cta { background: var(--negro); color: #fff; padding: 2.4rem 0 3rem; }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); align-items: start; }
.cta .wrap { width: min(1170px, 100% - 48px); }
.cta__titulo { font-size: 2.71rem; font-weight: 600; line-height: 1; margin-bottom: 1rem; }
.contactos { display: grid; gap: .6rem; }
.contacto__nombre { font-family: var(--f-titulo); font-weight: 500; font-size: 1.18rem; color: var(--amarillo); line-height: 1.05; }
.contacto__esp { font-size: 0.78rem; font-weight: 600; margin-bottom: .3rem; }
.contacto__medios { display: grid; gap: .45rem; }
.contacto__medios a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.contacto__medios a:hover { text-decoration: underline; }
.medio-icono { width: 1.3rem; height: 1.3rem; min-width: 24px; min-height: 24px; flex: none; display: block; }

/* ---------- formulario ---------- */
.form-cotizacion { display: grid; gap: .45rem; }
.campo { display: grid; gap: .25rem; font-size: 1.42rem; line-height: 1.1; }
.campo input { width: 100%; border: 0; border-radius: 0; background: #fff; color: #000; font: inherit; font-size: 1.18rem; padding: .3rem .5rem; min-height: 2.1rem; }
.campo input:focus-visible { outline: 3px solid var(--amarillo); }
.form-cotizacion__enviar { justify-self: center; margin-top: .3rem; font-size: 1.36rem; }
.form-trampa { position: absolute; left: -9999px; }
.form-aviso { padding: .4rem .6rem; font-weight: 500; font-size: 0.94rem; }
.form-aviso--ok { background: #dff3e3; color: #14451f; }
.form-aviso--error { background: #fbe0de; color: #6d1710; }

/* ---------- sobre nosotros ---------- */
.sobre { overflow: hidden; }
.sobre__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; padding-top: 1.6rem; }
.sobre__texto { padding-bottom: 1.4rem; padding-top: .9rem; }
.sobre__texto .titulo-pagina { margin-bottom: .4rem; }
.sobre__texto > p:first-of-type { max-width: 16em; }
.sobre__mapa { justify-self: end; width: min(100%, 20rem); }
.franja { background: #979797; height: 6.2rem; overflow: hidden; }
.franja img { width: 100%; height: 100%; object-fit: contain; }
.clientes-frase { background: var(--gris-banda); padding: 2rem 0 1.8rem; text-align: center; }
.frase { font-size: 1.53rem; line-height: 1.1; max-width: 27em; margin: 0 auto 1.6rem; }
.clientes-frase .trabajos { background: none; padding: 0; }
.sobre-servicios { padding: 1.8rem 0; }
.sobre-servicios__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: center; }
.sobre-servicios__texto p { margin-bottom: .7rem; max-width: 17em; }
.botones-olivo { display: grid; gap: .22rem; }
.botones-olivo a {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--olivo); color: #fff; text-decoration: none; font-weight: 500; font-size: 1.24rem; line-height: 1.1;
	padding: .85rem .8rem; border-radius: .3rem; transition: background .2s;
}
.botones-olivo a:hover { background: #484b2a; }
.botones-olivo a::after { content: ''; width: 1.4rem; height: 1.4rem; flex: none; background: url('../img/icon-flecha.png') center / contain no-repeat; }

/* ---------- servicios ---------- */
.serv-hero { padding: .6rem 0 1.6rem; }
.serv-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: center; }
.serv-hero__foto img { border-radius: .7rem; width: 100%; max-width: 24rem; aspect-ratio: 4 / 3; object-fit: cover; }
.serv-hero__texto { text-align: right; }
.serv-hero__texto .titulo-pagina { margin-bottom: .35rem; font-size: 2.6rem; }
.serv-hero__texto p { font-size: 1.53rem; line-height: 1.02; margin-left: auto; max-width: 10.5em; }
.serv-tabs { padding-bottom: 1.8rem; }
.serv-panel { padding-top: .7rem; position: relative; font-size: 1rem; }
.ancla { position: absolute; top: -110px; }
.serv-panel__cabeza { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; margin-bottom: .8rem; }
.serv-panel__texto { padding-right: 1rem; border-right: 1px solid #111; }
.serv-panel__texto > p { margin: .4rem 0 0; line-height: 1.1; }
.serv-panel__lista { padding-left: .9rem; font-size: 0.94rem; line-height: 1.15; display: grid; gap: .12rem; }
.serv-panel__lista li { position: relative; padding-left: .5rem; }
.serv-panel__lista li::before { content: '•'; position: absolute; left: 0; }
.serv-panel__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.serv-panel__fotos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.serv-panel .etiquetas li { font-size: 1.24rem; }

.termo { background: #eee; padding: 1.4rem 0 1.8rem; }
.termo__cabeza { display: grid; grid-template-columns: 1fr 1.05fr; gap: 1.2rem; align-items: center; margin-bottom: 1rem; }
.termo .titulo-seccion { font-size: 2.01rem; }
.resaltado { margin: .35rem 0 .7rem; }
.resaltado span { display: inline; background: var(--amarillo); font-weight: 600; font-size: 1.1rem; padding: .05em .25em; line-height: 1.5; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.termo__texto > p:last-child { max-width: 15em; font-size: 1.18rem; line-height: 1.12; }
.termo__foto img { border-radius: .8rem; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem; margin-bottom: 1.6rem; }
.paso { background: #fff; padding: 1.1rem .8rem 1.4rem; }
.paso:nth-child(1) { background: var(--amarillo); }
.paso:nth-child(2) { background: #d6d6d6; }
.paso .icon { width: 1.1rem; height: 1.1rem; min-width: 22px; margin-bottom: .2rem; }
.paso h3 { font-size: 1.42rem; font-weight: 600; margin-bottom: .1rem; }
.paso p { font-size: 0.94rem; font-weight: 500; line-height: 1.1; max-width: 14em; }
.termo__equipos-titulo { font-size: 1.42rem; font-weight: 600; margin-bottom: .4rem; }
.equipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem; margin-bottom: 1.6rem; }
.equipo { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.equipo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.equipo span { display: block; text-align: center; font-weight: 600; font-size: 1.06rem; line-height: 1.1; padding: 1.1rem .4rem 1.3rem; }
.persona { display: grid; grid-template-columns: 1fr 2fr; gap: 1.4rem; align-items: center; }
.persona__foto { justify-self: center; }
.persona__foto img { width: min(100%, 14.5rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.persona__etiqueta span { display: inline-block; background: var(--amarillo); font-weight: 600; font-size: 1rem; padding: .08em .45em; }
.persona__nombre { font-size: 2.01rem; font-weight: 600; line-height: 1.05; margin: .25rem 0 .4rem; }
.persona__bio p { font-size: 0.89rem; line-height: 1.12; margin-bottom: .4rem; max-width: 36em; }
.persona__in { display: inline-block; width: 1.05rem; min-width: 24px; margin-top: .25rem; }

/* ---------- contacto ---------- */
.contacto-pagina { padding: 2.6rem 0 3.4rem; }
.contacto-pagina__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: center; }
.contacto-pagina__info .titulo-pagina { margin-bottom: 1.7rem; }
.contacto-pagina .contactos { gap: 1.3rem; }
.contacto-pagina .contacto__nombre { font-size: 1.3rem; color: #000; }
.contacto-pagina .contacto__esp { color: #111; font-size: 0.94rem; font-weight: 600; }
.contacto-pagina .contacto__medios a { color: #111; font-size: 1.18rem; }
.contacto-pagina .medio-icono { width: 1.6rem; height: 1.6rem; }
.contacto-pagina__form { background: #f2f2f2; border-radius: 1rem; padding: 1.8rem 2.4rem 2rem; }
.contacto-pagina .campo { color: var(--olivo); font-size: 1.24rem; gap: .3rem; }
.contacto-pagina .form-cotizacion { gap: .8rem; }
.contacto-pagina .campo input { min-height: 2.3rem; }

.contenido-simple { padding: 60px 0; }
.contenido-simple .titulo-pagina { margin-bottom: 20px; }

/* ---------- tableta ---------- */
@media (max-width: 960px) {
	.site-header__inner { min-height: 78px; width: min(1500px, 100% - 40px); }
	.brand__logo { height: 54px; }
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute; left: 0; right: 0; top: 100%; background: #000; padding: 6px 24px 22px; display: none; border-top: 1px solid #333;
	}
	.main-nav.is-open { display: block; }
	.main-nav__list { flex-direction: column; gap: 0; }
	.main-nav__list a { font-size: 1rem; padding: 14px 0; border-bottom: 1px solid #222; }
	.main-nav__list .current-menu-item > a::after, .main-nav__list .current_page_item > a::after { display: none; }
	.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

	body { font-size: 1.1rem; line-height: 1.3; }
	.titulo-pagina { font-size: 2.2rem; }
	.titulo-seccion { font-size: 1.8rem; }
	.hero__titulo { font-size: 1.7rem; }
	.hero__contenido { bottom: 6%; }
	.btn { font-size: 1.1rem; padding: .45em 1.6em; }
	.btn--chico { font-size: .95rem; padding: .25em 1em; }
	.cifra__numero { font-size: 3.4rem; }
	.cifra__etiqueta { font-size: 1.3rem; }
	.tabs__tab { font-size: 1rem; min-height: 3rem; }
	.etiquetas li { font-size: 1rem; }
	.etiqueta-olivo { font-size: 1.5rem; }
	.trabajo__nombre { font-size: 1.5rem; }
	.trabajo__desc { font-size: 1rem; line-height: 1.25; }
	.cta { padding: 2.6rem 0; }
	.cta__titulo { font-size: 2.2rem; }
	.contacto__nombre { font-size: 1.2rem; }
	.contacto__esp { font-size: .95rem; }
	.contacto__medios a { font-size: 1.1rem; }
	.campo { font-size: 1.1rem; }
	.campo input { min-height: 46px; padding: 10px 12px; }
	.form-cotizacion__enviar { font-size: 1.2rem; }
	.frase { font-size: 1.3rem; line-height: 1.25; }
	.botones-olivo a { font-size: 1.15rem; padding: 16px 18px; }
	.serv-panel { font-size: 1rem; }
	.serv-panel__lista { font-size: 1rem; line-height: 1.3; }
	.serv-hero__texto p { font-size: 1.4rem; }
	.resaltado span { font-size: 1.05rem; }
	.termo__texto > p:last-child { font-size: 1.05rem; line-height: 1.3; }
	.paso h3 { font-size: 1.4rem; }
	.paso p { font-size: .95rem; max-width: none; }
	.termo__equipos-titulo { font-size: 1.4rem; }
	.equipo span { font-size: 1rem; padding: 14px 10px 18px; }
	.persona__nombre { font-size: 1.9rem; }
	.persona__bio p { font-size: 1rem; line-height: 1.3; }
	.persona__etiqueta span { font-size: 1rem; }
	.contacto-pagina .contacto__nombre { font-size: 1.3rem; }
	.contacto-pagina .contacto__esp { font-size: 1rem; }
	.contacto-pagina .contacto__medios a { font-size: 1.15rem; }
	.contacto-pagina__form { padding: 28px 22px 32px; border-radius: 24px; }
	.panel-servicio__texto > p { max-width: 34em; }
	.intro__texto > p, .sobre__texto > p:first-of-type, .sobre-servicios__texto p { max-width: 34em; }
	.termo__texto > p:last-child { max-width: 34em; }
	.intro, .sobre-servicios, .contacto-pagina { padding-block: 40px; }
	.servicios-tabs, .serv-tabs { padding-bottom: 40px; }
	.termo { padding: 36px 0 48px; }

	.intro__inner, .cta__inner, .contacto-pagina__inner, .sobre-servicios__inner, .termo__cabeza, .persona { grid-template-columns: 1fr; gap: 28px; }
	.cifras { flex-direction: row; justify-content: flex-start; gap: 50px; }
	.sobre__inner, .serv-hero__inner { grid-template-columns: 1fr; }
	.sobre__mapa { justify-self: center; width: min(100%, 320px); }
	.franja { height: 90px; }
	.serv-hero__texto { text-align: left; }
	.serv-hero__texto .titulo-pagina { font-size: 2.2rem; }
	.serv-hero__texto p { margin-left: 0; max-width: none; }
	.serv-hero__foto img { max-width: 100%; border-radius: 18px; }
	.panel-servicio { grid-template-columns: 1fr; gap: 20px; padding-top: 22px; }
	.panel-servicio__texto { padding-left: 0; }
	.panel-servicio__texto > p { margin: 14px 0 18px; }
	.serv-panel__cabeza { grid-template-columns: 1fr; gap: 14px; }
	.serv-panel__texto { border-right: 0; padding-right: 0; }
	.serv-panel__lista { padding-left: 0; }
	.carrusel { grid-template-columns: 52px 1fr 52px; }
	.pasos { gap: 6px; }
	.equipos { gap: 6px; }
	.trabajo__fotos { gap: 8px; }
	.sobre__inner { padding-top: 30px; }
}

@media (max-width: 640px) {
	.tabs__lista { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
	.tabs__tab { border-radius: 10px; }
	.carrusel { grid-template-columns: 1fr; position: relative; }
	.carrusel__flecha { position: absolute; z-index: 2; top: 45%; width: 34px; height: 34px; }
	.carrusel__flecha--prev { left: -8px; }
	.carrusel__flecha--next { right: -8px; }
	.trabajo__fotos { grid-template-columns: 1fr 1fr; }
	.trabajo__fotos figure:first-child { grid-column: 1 / -1; }
	.pasos, .equipos { grid-template-columns: 1fr; }
	.serv-panel__fotos { grid-template-columns: 1fr; }
	.hero__foto img { object-position: 30% top; }
	body { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
