/*
 * Solving Ingeniería — estilos del tema.
 * Aquí solo va lo que Elementor (versión gratuita) no ofrece como control.
 * Las clases que empiezan con "sv-" dan el diseño: no las borre en Elementor.
 */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
[id] { scroll-margin-top: 16px; }

/* ---------- Anchos máximos de texto (se aplican al elemento interior) ---------- */
.sv-max-820 .elementor-heading-title { max-width: 820px; }
.sv-max-620 p { max-width: 620px; }
.sv-max-640 { max-width: 640px; }
.sv-max-680 { max-width: 680px; }
.sv-max-760 { max-width: 760px; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ---------- Línea junto a los títulos de sección ---------- */
.e-con.sv-rule { min-width: 60px; height: 2px; min-height: 2px !important; padding: 0 !important; }

/* ---------- Cuadrícula de plano (elemento gráfico del manual de marca) ---------- */
.sv-grid-tl, .sv-grid-tr { position: relative; overflow: hidden; }
.sv-grid-tl::after, .sv-grid-tr::after {
	content: ""; position: absolute; top: 0; pointer-events: none; z-index: 0;
	background-image:
		linear-gradient(rgba(0, 25, 36, .28) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 25, 36, .28) 1px, transparent 1px);
	background-size: 22px 22px;
	border-bottom: 1px solid rgba(0, 25, 36, .35);
}
.sv-grid-tl::after { left: 0; width: 46%; height: 260px; border-right: 1px solid rgba(0, 25, 36, .35); }
.sv-grid-tr::after { right: 0; width: 38%; height: 220px; border-left: 1px solid rgba(0, 25, 36, .35); }
.sv-grid-tl > .e-con-inner, .sv-grid-tr > .e-con-inner { position: relative; z-index: 1; }

/* Cuadrícula gris detrás de las fotos */
.sv-deco { position: relative; }
.sv-deco::after {
	content: ""; position: absolute; width: 60%; height: 60%; z-index: 0; pointer-events: none;
	border: 1px solid #A2A2A2;
	background-image:
		linear-gradient(rgba(162, 162, 162, .35) 1px, transparent 1px),
		linear-gradient(90deg, rgba(162, 162, 162, .35) 1px, transparent 1px);
	background-size: 22px 22px;
}
.sv-deco-bl::after { left: -24px; bottom: -24px; }
.sv-deco-tr::after { right: -24px; top: -24px; width: 55%; height: 55%; }
.sv-deco > .elementor-widget { position: relative; z-index: 1; }
.sv-deco img { display: block; }
@media (max-width: 767px) {
	.sv-deco-bl::after { left: -12px; bottom: -12px; }
	.sv-deco-tr::after { right: -12px; top: -12px; }
	.sv-deco img { height: 300px !important; }
}

/* ---------- Tarjetas de servicio ---------- */
.e-con.sv-card { transition: border-color .2s ease, transform .2s ease; }
.e-con.sv-card:hover { border-color: #0039B3 !important; transform: translateY(-3px); }

/* ---------- Menú (Lista de íconos en línea) ---------- */
.sv-menu .elementor-icon-list-items { row-gap: 8px; }
.sv-menu .elementor-icon-list-icon { display: none; }
@media (max-width: 767px) {
	.e-con.sv-header { justify-content: center !important; }
	.e-con.sv-nav { justify-content: center !important; width: 100%; }
	.sv-menu .elementor-icon-list-items { justify-content: center; }
}

/* ---------- Franja de materiales: cuadrado azul entre ítems ---------- */
.sv-materials .elementor-icon-list-items { justify-content: space-between; row-gap: 14px; }
.sv-materials .elementor-icon-list-icon { display: none; }
.sv-materials .elementor-icon-list-item:not(:last-child)::after {
	content: "" !important; position: static !important; display: inline-block !important;
	width: 8px !important; height: 8px !important; border: 0 !important;
	background: #0039B3; margin-left: 28px; align-self: center;
}
@media (max-width: 1024px) {
	.sv-materials .elementor-icon-list-items { justify-content: center; column-gap: 0; }
}

/* ---------- Datos de contacto ---------- */
.sv-contact-list .elementor-icon-list-icon { color: #FFFFFF; }
.sv-contact-list .elementor-icon-list-icon svg { fill: none !important; width: 22px; height: 22px; }
.sv-contact-list a { color: inherit; }

/* ---------- Formulario (Contact Form 7) ---------- */
.sv-form .wpcf7 form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.sv-form .wpcf7 form > p { margin: 0; }
.sv-form .wpcf7 br { display: none; }
.sv-form .sv-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 600px) { .sv-form .sv-form-grid { grid-template-columns: 1fr; } }
.sv-form label.sv-f {
	display: flex; flex-direction: column; gap: 8px; margin: 0;
	color: #FFFFFF; font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase;
}
.sv-form .wpcf7-form-control-wrap { display: block; }
.sv-form input[type="text"], .sv-form input[type="email"], .sv-form input[type="tel"],
.sv-form select, .sv-form textarea {
	width: 100%; box-sizing: border-box; min-height: 48px; padding: 14px;
	background: #FFFFFF; color: #001924; border: 0; border-radius: 0;
	font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 400;
	letter-spacing: 0; text-transform: none;
}
.sv-form textarea { resize: vertical; min-height: 120px; }
.sv-form input:focus, .sv-form select:focus, .sv-form textarea:focus { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.sv-form .wpcf7-submit, .sv-form input.sv-submit {
	width: 100%; min-height: 52px; padding: 18px 28px; cursor: pointer;
	background: #0039B3 !important; color: #FFFFFF !important; border: 0 !important; border-radius: 0 !important;
	font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 700; letter-spacing: .03em;
	transition: background-color .2s ease;
}
.sv-form .wpcf7-submit:hover { background: #FFFFFF !important; color: #0039B3 !important; }
.sv-form .wpcf7-spinner { display: none; margin: 12px auto 0; }
.sv-form form.submitting .wpcf7-spinner { display: block; }
.sv-form .hidden-fields-container { display: none; }
.sv-form .wpcf7-not-valid-tip { color: #FFB4A8; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; margin-top: 6px; }
.sv-form .wpcf7 form .wpcf7-response-output {
	margin: 0; padding: 14px 16px; border: 2px solid #FFFFFF; color: #FFFFFF;
	font-family: "Montserrat", sans-serif; font-size: 15px;
}
.sv-form .wpcf7 form.invalid .wpcf7-response-output { border-color: #FFB4A8; }

/* ---------- Anchos automáticos en filas ---------- */
.e-con.sv-rule { --width: auto; flex: 1 1 60px; }
.e-con.sv-nav { --width: auto; }
@media (max-width: 767px) { .e-con.sv-nav { --width: 100%; } }
.e-con > .elementor-widget-text-editor { min-width: 0; }
.e-con.sv-person > .e-con { min-width: 0; }
