/* ==================================================================
   ESTILOS DEL TEMA MULTISIC
   ------------------------------------------------------------------
   Copia el diseño del sitio original (Astra + Elementor): mismos
   colores, tipografía Ruda, tamaños y disposición, medidos del sitio.

   Orden del archivo:
     1. Variables (colores, tamaños)  ← cambia aquí la paleta
     2. Base (tipografía, enlaces)
     3. Utilidades (contenedor, botones, títulos)
     4. Encabezado y menú
     5. Portada
     6. Páginas internas (cabecera, nosotros, servicios, servicio)
     7. Contacto y formulario
     8. Pie de página
     9. Celular y tablet (media queries)
   ================================================================== */

/* 1. VARIABLES ---------------------------------------------------- */
:root {
	--azul: #0281cc;          /* azul de botones, menú activo y franjas */
	--azul-caja: #0274be;     /* azul de la caja "MULTISIC" de la portada */
	--azul-oscuro: #01649f;
	--titulos: #2b313d;       /* color de títulos */
	--morado: #231c60;        /* títulos del pie de página */
	--texto: #4b4f58;         /* texto general */
	--texto-pie: #5f5f5f;
	--gris-cifra: #3a3a3a;
	--celeste: #e3f7f9;       /* fondo del pie */
	--borde: #e7e9ec;
	--blanco: #ffffff;
	--verde-wsp: #25d366;

	--fuente: "Ruda", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ancho: 1200px;          /* ancho máximo del contenido */
	--espacio: clamp(56px, 7vw, 100px); /* separación entre secciones */
}

/* 2. BASE --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--fuente);
	font-size: 17px;
	line-height: 1.85;
	color: var(--texto);
	background: var(--blanco);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip; /* lo que entra desde los costados no crea barra horizontal */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
a:hover { color: var(--azul-oscuro); }
h1, h2, h3 { color: var(--titulos); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

.sr-only {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 16px; z-index: 100; background: var(--blanco); padding: 8px 14px; }

/* 3. UTILIDADES --------------------------------------------------- */
.contenedor { width: min(100% - 40px, var(--ancho)); margin-inline: auto; }
.seccion { padding-block: var(--espacio); }
.seccion--oscura { background: var(--titulos); color: rgba(255, 255, 255, .85); }
.seccion--oscura h2, .seccion--oscura h3 { color: var(--blanco); }

/* Texto chico sobre los títulos ("Ingeniería, Construcción y…") */
.antetitulo { font-size: 15px; font-weight: 300; color: var(--azul); margin-bottom: .3em; line-height: 1.2; }
.antetitulo--claro { color: var(--blanco); }
.antetitulo--cursiva { font-style: italic; font-size: 13px; }
.titulo-grande { font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.2; margin-bottom: .3em; }
.intro { font-size: 1.05rem; max-width: 900px; margin: 0 auto 3rem; text-align: center; }

/* Título centrado con raya azul debajo ("Nuestros servicios", "Testimonios") */
.titulo-centrado { text-align: center; margin-bottom: 2.5rem; }
.titulo-centrado h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0; }
.titulo-centrado h2::after {
	content: ""; display: block; width: 240px; max-width: 60%; height: 2px;
	background: var(--azul); margin: 22px auto 0;
}

/* Botones (como Elementor: esquinas casi rectas, mayúsculas, espaciado) */
.boton {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	padding: 15px 30px; border-radius: 3px; border: 0;
	background: var(--azul); color: var(--blanco);
	font: 700 14px/1 var(--fuente); letter-spacing: 1px; text-transform: uppercase;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.boton:hover { background: var(--azul-oscuro); color: var(--blanco); }
.boton--blanco { background: var(--blanco); color: var(--azul-caja); }
.boton--blanco:hover { background: #eaf4fb; color: var(--azul-caja); }
.boton--borde-oscuro { background: transparent; color: var(--azul); box-shadow: inset 0 0 0 2px var(--azul); }
.boton--ancho { width: 100%; margin-top: .75rem; }
.boton--whatsapp { background: var(--verde-wsp); color: #06371b; }
.boton--whatsapp:hover { background: #1fb457; color: #06371b; }
/* Círculo con flecha de los botones del original (⊕→) */
.icono-flecha {
	width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%;
	display: inline-grid; place-items: center;
}
.icono-flecha::after {
	content: ""; width: 4px; height: 4px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
	transform: translateX(-1px) rotate(45deg);
}

.lista-check { list-style: none; padding: 0; margin: 0 0 1.5em; }
.lista-check li { position: relative; padding-left: 1.9em; margin-bottom: .5em; line-height: 1.6; }
.lista-check li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 1.1em; height: 1.1em;
	border-radius: 50%; background: var(--azul)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.dos-columnas--arriba { align-items: start; grid-template-columns: 1.4fr 1fr; }
.contenido-texto { max-width: 780px; }
.contenido-texto h3 { font-size: 17px; margin: 1.4em 0 .3em; }
.contenido-texto ul { padding-left: 1.2em; }

/* Fondo de "manchas" celestes del original (svg de la biblioteca de medios) */
.con-manchas { background: var(--manchas) right top / auto 100% no-repeat; }

/* 4. ENCABEZADO Y MENÚ -------------------------------------------- */
.cabecera { background: var(--blanco); box-shadow: 0 1px 6px rgba(0, 0, 0, .08); position: relative; z-index: 50; }
.cabecera__fila {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	width: min(100% - 40px, 1300px); margin-inline: auto; min-height: 145px;
}
.cabecera__logo { justify-self: start; }
.cabecera__logo img { width: 150px; height: auto; }
.cabecera__brochure { justify-self: end; }
.cabecera__boton-menu { display: none; }

.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; align-items: center; gap: 4px; }
.menu a {
	display: block; padding: 0 14px; line-height: 70px;
	color: var(--texto); font-weight: 600; text-transform: uppercase; text-decoration: none;
}
.menu a:hover, .menu a[aria-current="page"], .menu a.actual { color: var(--azul); }
.menu__brochure-movil { display: none; }

/* Flechita de "Servicios" y submenú */
.menu__con-hijos { position: relative; }
.menu__con-hijos > a::after {
	content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .5em;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-.25em) rotate(45deg);
}
.submenu {
	position: absolute; top: 100%; left: 0; min-width: 280px; padding: 0 !important;
	background: var(--blanco); border-top: 2px solid var(--azul); box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
	opacity: 0; visibility: hidden; transition: .2s;
}
.menu__con-hijos:hover .submenu, .menu__con-hijos:focus-within .submenu { opacity: 1; visibility: visible; }
.submenu a { line-height: 1.45; padding: 12px 18px; font-size: 15px; border-bottom: 1px solid var(--borde); }
.submenu a:hover { background: #f5f9fc; }

/* 5. PORTADA ------------------------------------------------------ */
/* Banner: foto de fondo → video (cuando carga) → logo grande encima */
.banner {
	position: relative; overflow: hidden;
	height: clamp(380px, 50vw, 680px);
	display: grid; place-items: center;
	background: #1d2633 var(--fondo) center / cover no-repeat;
}
.banner__logo { position: relative; z-index: 2; width: min(520px, 62%); height: auto; }
/* Fotos alternadas del banner: fundido de 1,5 s y un acercamiento muy lento */
.banner__fotos { position: absolute; inset: 0; z-index: 0; }
.banner__foto {
	position: absolute; inset: 0; background: center / cover no-repeat;
	opacity: 0; transition: opacity 1.5s ease;
}
.banner__foto.activa { opacity: 1; animation: banner-acercar 8s ease-out both; }
@keyframes banner-acercar { from { transform: scale(1); } to { transform: scale(1.06); } }
/* Halo claro detrás del logo: lo hace legible sobre cualquier foto */
.banner::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: radial-gradient(ellipse 45% 50% at center, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .35) 55%, rgba(255, 255, 255, 0) 100%);
}

/* Video de fondo (portada y cabeceras): se agranda hasta cubrir la sección */
.fondo-video {
	position: absolute; inset: 0; z-index: 0;
	container-type: size; opacity: 0;
	transition: opacity .2s ease; /* al pausar: se oculta rápido, antes de que se vean los botones de YouTube */
}
.video-listo .fondo-video { opacity: 1; transition: opacity 1s ease; } /* al reproducir: aparece suave */
.fondo-video iframe {
	position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
	width: max(100cqw, 177.78cqh); height: max(56.25cqw, 100cqh);
	/* scale(1.2): agranda el video un 20 % para que los bordes, donde
	   YouTube pone su logo y textos, queden fuera del marco. */
	transform: translate(-50%, -50%) scale(1.2);
}

/* Caja azul + cifras */
.presentacion { display: grid; grid-template-columns: 1fr 1fr; }
.presentacion__caja {
	background: var(--azul-caja); color: var(--blanco);
	padding: 60px 50px 70px max(50px, calc((100vw - var(--ancho)) / 2));
}
.presentacion__caja h1 { color: var(--blanco); font-size: clamp(2.6rem, 4.5vw, 3.75rem); line-height: 1.3; margin-bottom: .3em; }
.presentacion__caja h1 .antetitulo { display: block; margin-bottom: .3em; } /* el lema dentro del H1 se ve como antes */
.presentacion__caja p { font-size: 16px; line-height: 1.75; }
.presentacion__caja .boton { margin-top: 1.4rem; }
.presentacion__cifras {
	display: grid; grid-template-columns: 1fr 1fr;
	padding-right: max(20px, calc((100vw - var(--ancho)) / 2));
	box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}
/* Sin cifras: la caja azul ocupa todo el ancho, con el texto a un ancho cómodo */
.presentacion--sin-cifras { grid-template-columns: 1fr; }
.presentacion--sin-cifras .presentacion__caja { padding-right: max(50px, calc((100vw - var(--ancho)) / 2)); }
.presentacion--sin-cifras .presentacion__caja p { max-width: 820px; }
.cifra { padding: 34px 40px; border-left: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.cifra__numero { font-size: 38px; font-weight: 700; color: var(--gris-cifra); line-height: 1.3; margin: 0; }
.cifra__texto { margin: .2em 0 0; }

/* Título "Nuestros servicios" sobre hexágonos */
.servicios-portada {
	padding: clamp(60px, 7vw, 90px) 20px 40px;
	background: var(--blanco) var(--hexagonos) center / cover no-repeat;
}

/* Tarjetas de foto (portada) */
.tarjetas-foto {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
	padding: 0 12px 12px;
}
.tarjeta-foto {
	position: relative; display: block; height: clamp(360px, 36vw, 520px); overflow: hidden;
	color: var(--blanco); text-decoration: none; background: #3a3a3a;
}
.tarjeta-foto__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tarjeta-foto::after { /* degradado oscuro de abajo hacia arriba, como el original */
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(40, 45, 55, .9) 0%, rgba(58, 58, 58, .55) 38%, rgba(58, 58, 58, 0) 62%);
	transition: background .3s;
}
.tarjeta-foto:hover .tarjeta-foto__img { transform: scale(1.05); }
.tarjeta-foto:hover { color: var(--blanco); }
.tarjeta-foto__texto { position: absolute; left: 30px; right: 30px; bottom: 34px; z-index: 1; display: grid; gap: 14px; }
.tarjeta-foto__titulo { font-size: 24px; font-weight: 700; line-height: 1.2; }
.tarjeta-foto__mas { font-size: 15px; text-transform: uppercase; }

/* Secciones opcionales de la portada (desactivadas por defecto) */
.proceso {
	list-style: none; padding: 0; margin: 2.5rem 0 0; counter-reset: paso;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.proceso__paso { counter-increment: paso; position: relative; padding-top: 60px; border-top: 2px solid rgba(255, 255, 255, .15); }
.proceso__paso::before {
	content: counter(paso, decimal-leading-zero); position: absolute; top: 12px; left: 0;
	font-size: 2rem; font-weight: 800; color: #9fd3ff; line-height: 1;
}
.proceso__paso p { margin: 0; font-size: .95rem; }
.rubros { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rubros li { padding: .3em .9em; border-radius: 999px; border: 1px solid var(--borde); font-weight: 600; }

/* 6. PÁGINAS INTERNAS --------------------------------------------- */
/* Cabecera: foto o video + franja oscura con el título al centro */
.cabecera-pagina {
	position: relative; overflow: hidden;
	height: clamp(260px, 35vw, 474px);
	display: grid; align-items: center;
	background: #1d2633 var(--fondo) center / cover no-repeat;
}
.cabecera-pagina__franja {
	position: relative; z-index: 1; background: rgba(0, 0, 0, .5);
	padding: 14px 20px; text-align: center;
}
.cabecera-pagina h1 { color: var(--blanco); font-size: clamp(2.2rem, 5vw, 4.4rem); margin: 0; line-height: 1.25; }
.cabecera-pagina__bajada { color: rgba(255, 255, 255, .92); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; max-width: 760px; margin: .5em auto 0; }
/* Títulos largos (servicios) un poco más chicos */
.es-servicio .cabecera-pagina h1 { font-size: clamp(1.8rem, 3.8vw, 3.4rem); max-width: 1100px; margin-inline: auto; }

/* Nosotros */
.foto-alta img { width: 100%; height: clamp(360px, 52vw, 710px); object-fit: cover; }
.valores { background: var(--azul); color: var(--blanco); padding-block: clamp(60px, 8vw, 110px); }
.valores__grilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.valor { text-align: center; }
.valor img { width: 70px; height: 70px; object-fit: contain; margin: 0 auto 18px; }
.valor h3 { color: var(--blanco); font-size: 1.1rem; margin-bottom: .4em; }
.valor p { font-size: 15px; line-height: 1.7; margin: 0; }

.testimonios { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 34px; max-width: 1100px; margin-inline: auto; }
.testimonio {
	margin: 0; padding: 32px 30px; text-align: center; color: var(--blanco);
	background: #6a6a6a; border-bottom: 5px solid var(--azul);
}
.testimonio:nth-child(4n+2), .testimonio:nth-child(4n+3) { background: #3d3d3d; } /* alterna claro/oscuro como el original */
.testimonio figcaption { font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; margin-bottom: .5em; }
.testimonio blockquote { margin: 0; font-style: italic; font-size: 16px; line-height: 1.7; }

/* Servicios: filas con foto y texto alternados */
.fila-servicio {
	display: grid; grid-template-columns: minmax(280px, 480px) 1fr; gap: clamp(30px, 5vw, 70px);
	align-items: center; margin-bottom: clamp(50px, 7vw, 100px);
}
.fila-servicio:nth-of-type(even) .fila-servicio__foto { order: 2; }
.fila-servicio__foto img { width: 100%; height: clamp(320px, 45vw, 620px); object-fit: cover; }
.fila-servicio h2 { font-size: 30px; }
.fila-servicio h2 a { color: var(--titulos); text-decoration: none; }
.fila-servicio h2 a:hover { color: var(--azul); }

/* Página de un servicio */
.caja-cotizar { background: #f4f8fb; border-top: 3px solid var(--azul); padding: 28px; position: sticky; top: 30px; }
.caja-cotizar h2 { font-size: 1.3rem; }
.titulo-chico { font-size: 1.25rem; margin-top: 2em; }
.seccion--gris { background: #f4f8fb; }
.galeria { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 1.5rem; }
.galeria__item { display: block; overflow: hidden; }
.galeria__item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.galeria__item:hover img { transform: scale(1.05); }
.js .galeria--recortada .galeria__item--extra { display: none; } /* fotos 16 en adelante, hasta presionar el botón */
.galeria__mas { text-align: center; margin: 2rem 0 0; }
.grilla-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 1.5rem; }
.tarjeta { background: var(--blanco); border-bottom: 3px solid var(--azul); box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.tarjeta__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tarjeta__texto { padding: 14px 18px; }
.tarjeta__texto h3 { margin: 0; font-size: 1rem; }

.foto-destacada { margin: 2rem 0 0; }
.foto-destacada img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.foto-destacada figcaption { margin-top: .6em; font-size: .9rem; }
.videos { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 1rem; }
.video { margin: 0; width: min(100%, 300px); }
.video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--titulos); }
.video figcaption { margin-top: .6em; font-size: .9rem; }

/* Visor de fotos (lo crea main.js) */
.visor {
	position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
	background: rgba(5, 12, 22, .92); padding: 24px;
}
.visor img { max-height: 88vh; width: auto; }
.visor button {
	position: absolute; background: none; border: 0; color: var(--blanco);
	font-size: 2.4rem; cursor: pointer; padding: 12px 18px; line-height: 1;
}
.visor__cerrar { top: 8px; right: 8px; }
.visor__anterior { left: 4px; top: 50%; transform: translateY(-50%); }
.visor__siguiente { right: 4px; top: 50%; transform: translateY(-50%); }

.seccion--404 { text-align: center; }
.seccion--404 .contenido-texto { margin-inline: auto; }

/* 7. CONTACTO Y FORMULARIO ---------------------------------------- */
.contacto {
	position: relative; color: var(--blanco); text-align: center;
	padding: clamp(70px, 9vw, 120px) 20px;
	background: linear-gradient(rgba(38, 48, 78, .62), rgba(38, 48, 78, .62)), var(--fondo) center / cover no-repeat;
}
.contacto__interior { max-width: 960px; margin-inline: auto; }
.contacto .formulario { max-width: 620px; margin-inline: auto; }
.contacto__bajada { font-size: 20px; font-weight: 300; line-height: 1.5; margin-bottom: .4em; }
.contacto__titulo { color: var(--blanco); font-size: clamp(2.1rem, 4.5vw, 3.1rem); line-height: 1.4; margin-bottom: 1.2em; }

.formulario { display: grid; gap: 14px; text-align: left; }
.formulario__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formulario label { display: block; }
.formulario input, .formulario select, .formulario textarea {
	font: inherit; font-size: 16px; color: var(--texto); width: 100%;
	padding: 11px 14px; min-height: 48px; border: 1px solid #e2e2e2; border-radius: 2px; background: #fafafa;
}
.formulario textarea { min-height: 110px; }
.formulario input:focus, .formulario select:focus, .formulario textarea:focus {
	outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(2, 129, 204, .25);
}
.formulario__acepto { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.formulario__acepto input { width: 20px; height: 20px; min-height: 0; flex-shrink: 0; margin-top: .1em; } /* más fácil de marcar con el dedo */
.formulario__acepto a { color: var(--blanco); }
.formulario .boton { justify-self: start; }
.trampa { position: absolute; left: -9999px; }
.aviso { padding: 12px 16px; margin: 0; border-radius: 2px; }
.aviso--ok { background: #e6f6ec; color: #145a2e; }
.aviso--error { background: #fdecec; color: #8a1c1c; }

/* 8. PIE DE PÁGINA ------------------------------------------------ */
.pie {
	background: var(--celeste) var(--formas) center / cover no-repeat;
	color: var(--texto-pie); padding-top: 80px; font-size: 15px;
}
.pie__columnas { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 50px; align-items: start; padding-bottom: 60px; }
.pie__titulo { color: var(--morado); font-size: 20px; margin-bottom: 1em; }
.pie__somos p { font-size: 15px; line-height: 1.9; }
.pie__somos strong { color: var(--titulos); }
.pie a { color: var(--texto-pie); text-decoration: none; }
.pie a:hover { color: var(--azul); }
.pie ul { list-style: none; padding: 0; margin: 0; }
.datos__item { position: relative; padding-left: 32px; margin-bottom: 16px; line-height: 1.6; }
.datos__etiqueta { display: block; }
/* Iconos de teléfono, correo y ubicación dibujados con CSS (sin imágenes) */
.datos__item::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: var(--texto);
	-webkit-mask: var(--icono) center / contain no-repeat; mask: var(--icono) center / contain no-repeat;
}
.datos__item--telefono { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.datos__item--correo { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='M3 6l9 7 9-7'/%3E%3C/svg%3E"); }
.datos__item--ubicacion { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.pie__redes { display: flex; gap: 14px; }
.pie__logo { justify-self: center; }
.pie__logo img { width: min(260px, 100%); }
.pie__legal { background: #000; color: var(--blanco); text-align: center; padding: 14px 20px; font-size: 12px; }
.pie__legal p { margin: 0; }
.pie__legal a { color: var(--blanco); }
.pie__legal a:hover { color: #9fd3ff; }

/* Botón flotante "¿Necesitas ayuda?" (abre WhatsApp) */
.whatsapp {
	position: fixed; right: 20px; bottom: 20px; z-index: 60;
	display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.whatsapp__texto {
	background: var(--blanco); color: #333; font-size: 14px; padding: 6px 12px; border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.whatsapp__icono {
	width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
	background: var(--verde-wsp); color: var(--blanco); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.whatsapp:hover .whatsapp__icono { transform: scale(1.08); }

/* 9. CELULAR Y TABLET --------------------------------------------- */
@media (max-width: 1100px) {
	.menu a { padding: 0 9px; font-size: 15px; }
	.tarjetas-foto { grid-template-columns: repeat(2, 1fr); }
	.galeria { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
	.valores__grilla, .proceso { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
	.pie__columnas { grid-template-columns: 1fr 1fr; }
	.pie__logo { grid-column: 1 / -1; }
	.presentacion { grid-template-columns: 1fr; }
	.presentacion__caja { padding: 50px 30px; }
	.presentacion__cifras { padding-right: 0; }
}

@media (max-width: 860px) {
	/* Encabezado móvil: menú a la izquierda, logo al centro (como el original) */
	.cabecera__fila { min-height: 90px; grid-template-columns: 46px 1fr 46px; }
	.cabecera__logo { justify-self: center; }
	.cabecera__logo img { width: 110px; }
	.cabecera__brochure { display: none; }
	.cabecera__boton-menu {
		display: grid; place-items: center; width: 46px; height: 46px;
		background: none; border: 0; cursor: pointer; grid-column: 1; grid-row: 1;
	}
	.cabecera__logo { grid-column: 2; grid-row: 1; }
	.hamburguesa, .hamburguesa::before, .hamburguesa::after {
		display: block; width: 24px; height: 3px; background: var(--azul); position: relative; transition: .25s;
	}
	.hamburguesa::before, .hamburguesa::after { content: ""; position: absolute; left: 0; }
	.hamburguesa::before { top: -8px; }
	.hamburguesa::after { top: 8px; }
	.menu-abierto .hamburguesa { background: transparent; }
	.menu-abierto .hamburguesa::before { top: 0; transform: rotate(45deg); }
	.menu-abierto .hamburguesa::after { top: 0; transform: rotate(-45deg); }

	.menu {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--blanco);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .12); max-height: 0; overflow: hidden;
		/* visibility: con el menú cerrado, el teclado no entra a sus enlaces escondidos */
		visibility: hidden; transition: max-height .3s, visibility 0s .3s;
	}
	.menu-abierto .menu { max-height: 85vh; overflow-y: auto; visibility: visible; transition: max-height .3s; }
	.menu > ul { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; gap: 0; }
	.menu a { line-height: 1.4; padding: 14px 0; border-bottom: 1px solid var(--borde); font-size: 16px; }
	.menu__con-hijos > a::after { display: none; }
	.submenu { position: static; opacity: 1; visibility: inherit; box-shadow: none; border: 0; padding-left: 16px !important; min-width: 0; }
	.submenu a { font-size: 14px; text-transform: none; }
	.menu__brochure-movil { display: block; }
	.menu__brochure-movil a { color: var(--azul); border-bottom: 0; }

	.dos-columnas, .dos-columnas--arriba, .fila-servicio { grid-template-columns: 1fr; }
	.fila-servicio:nth-of-type(even) .fila-servicio__foto { order: 0; }
	.caja-cotizar { position: static; }
	.testimonios { grid-template-columns: 1fr; }
	.testimonio:nth-child(n) { background: #6a6a6a; }
	.testimonio:nth-child(even) { background: #3d3d3d; }
	/* Teléfono y correo del pie: zona táctil más alta sin cambiar el espaciado */
	.datos__item a { display: inline-block; padding-block: 10px; margin-block: -10px; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.tarjetas-foto { grid-template-columns: 1fr; }
	.tarjeta-foto { height: 340px; }
	.cifra { padding: 24px 20px; }
	.cifra__numero { font-size: 32px; }
	.formulario__fila { grid-template-columns: 1fr; }
	.pie__columnas, .proceso { grid-template-columns: 1fr; }
	.galeria { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.whatsapp__texto { display: none; }
	.banner__logo { width: 80%; }
}

/* 10. ANIMACIONES DE ENTRADA --------------------------------------- */
/*
 * Las mismas del sitio anterior (Elementor): al bajar, cada bloque con
 * data-animar aparece deslizándose desde su lado. main.js le agrega la
 * clase "animado" cuando entra en pantalla.
 *   data-animar="izquierda" | "derecha" | "arriba" (sube) | "abajo" (baja)
 *   data-duracion="lenta"   → 2 s en vez de 1,25 s
 *   style="--retraso: .3s"  → espera antes de empezar
 * Quien pidió "reducir movimiento" en su sistema ve todo sin animación.
 */
@media (prefers-reduced-motion: no-preference) {
	.js [data-animar] { opacity: 0; }
	.js [data-animar].animado {
		animation: var(--entrada, entrar-arriba) 1.25s ease both;
		animation-delay: var(--retraso, 0s);
	}
	.js [data-animar][data-duracion="lenta"].animado { animation-duration: 2s; }
	[data-animar="izquierda"] { --entrada: entrar-izquierda; }
	[data-animar="derecha"]   { --entrada: entrar-derecha; }
	[data-animar="arriba"]    { --entrada: entrar-arriba; }
	[data-animar="abajo"]     { --entrada: entrar-abajo; }
}
@keyframes entrar-izquierda { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes entrar-derecha   { from { opacity: 0; transform: translate3d(100%, 0, 0); }  to { opacity: 1; transform: none; } }
@keyframes entrar-arriba    { from { opacity: 0; transform: translate3d(0, 100%, 0); }  to { opacity: 1; transform: none; } }
@keyframes entrar-abajo     { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }

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