/*==========================================================
 ICI · Tipografía y estilos base
 Se carga desde include/header.php, después de style.css,
 así que estas reglas ganan a las del tema sin !important
 (salvo donde Bootstrap ya usa !important).

 Pareja tipográfica:
 - Fraunces (serif editorial) para títulos grandes: transmite
   solidez y confianza, propio de una inversión inmobiliaria.
 - Figtree (sans) para texto, menú, botones y títulos pequeños:
   muy legible en pantalla y con buenos acentos en español.
 ==========================================================*/
:root {
	--theme-ordinary-font: 'Figtree', 'Segoe UI', system-ui, sans-serif;
	--theme-highlight-font: 'Fraunces', Georgia, 'Times New Roman', serif;

	/* Texto general: más oscuro que el #74777b original para
	   pasar contraste AA sobre blanco y sobre el gris #f5f5f5 */
	--theme-ordinary-color: #555c68;

	/* Verde claro para texto sobre fotos oscuras (el #00A859
	   pierde contraste sobre imágenes) */
	--ici-green-on-dark: #4ee39b;

	--ici-ink: #1f2f4a;
	--ici-line: #dfe3ea;
	--ici-radius: 6px;
}

/*---------- Base ----------*/
html {
	-webkit-text-size-adjust: 100%;
}
body {
	font-size: 16px;
	line-height: 1.7;
	color: var(--theme-ordinary-color);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
p {
	line-height: 1.7;
	text-wrap: pretty;
}
::selection {
	background: rgba(0, 168, 89, .18);
	color: var(--ici-ink);
}

/* Texto justificado (párrafos largos)
   Sin partición silábica: ninguna palabra se corta con guion "-".
   Para que no se abran huecos grandes entre palabras se justifica solo
   cuando la columna es ancha (>=768px) y se usa text-wrap: pretty, que
   reparte mejor las líneas. En pantallas estrechas va a la izquierda. */
.text-justify,
.text_all_p_tag_css,
.property-details > p,
.modal-body .text-justify p {
	text-align: left;
	hyphens: manual;
	-webkit-hyphens: manual;
	-ms-hyphens: manual;
	overflow-wrap: normal;
	word-break: normal;
	text-wrap: pretty;
}
@media (min-width: 768px) {
	.text-justify,
	.text_all_p_tag_css,
	.property-details > p,
	.modal-body .text-justify p {
		text-align: justify !important;
		text-justify: inter-word;
		text-align-last: left;
		word-spacing: -0.02em;
	}
}
/* Tarjetas estrechas y centradas (Misión, Visión...): en columnas de
   ~270px el justificado abre huecos enormes, así que siguen centradas */
.text-center .text-justify,
.text-center.text-justify {
	text-align: center !important;
	text-align-last: center;
}

/*---------- Títulos ----------*/
h1, .h1, h2, .h2, h3, .h3 {
	font-family: var(--theme-highlight-font);
	font-weight: 600;
	font-optical-sizing: auto;
	letter-spacing: -0.015em;
	line-height: 1.15;
	text-wrap: balance;
}
h1, .h1 {
	font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
}
h2, .h2 {
	font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.6rem);
}
h3, .h3 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
}

/* Títulos pequeños (tarjetas, widgets, subtítulos) en sans:
   una serif a 18px se ve pesada y compite con los H2 */
h4, .h4, h5, .h5, h6, .h6 {
	font-family: var(--theme-ordinary-font);
	font-weight: 700;
	letter-spacing: -0.005em;
	line-height: 1.35;
	text-wrap: balance;
}
h4, .h4 {
	font-size: 1.3rem;
}
h5, .h5 {
	font-size: 1.125rem;
	line-height: 1.4;
}
h6, .h6 {
	font-size: 1rem;
}

/* Títulos de las columnas del pie de página */
.footer-widget .widget-title,
.widget-title {
	font-family: var(--theme-highlight-font);
	font-weight: 600;
	font-size: 1.4rem;
	letter-spacing: -0.01em;
}

/*---------- Menú ----------*/
.secondary-nav .navbar-nav .nav-link {
	font-family: var(--theme-ordinary-font);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.005em;
}
.top-header,
.top-header a {
	font-size: 14px;
}

/*---------- Botones ----------*/
.btn {
	font-family: var(--theme-ordinary-font);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.01em;
	border-radius: var(--ici-radius);
}

/*---------- Formularios ----------*/
.form-control {
	font-family: var(--theme-ordinary-font);
	font-size: 15px;
	color: var(--ici-ink);
	border: 1px solid var(--ici-line);
	border-radius: var(--ici-radius);
	background-color: #fff;
}
.form-control:focus {
	border-color: var(--theme-primary-color);
	box-shadow: 0 0 0 3px rgba(0, 168, 89, .18);
}
/* El tema pintaba el placeholder en blanco: en formularios
   de fondo blanco quedaba invisible */
.form-control::placeholder {
	font-family: var(--theme-ordinary-font);
	color: #8a919c;
	opacity: 1;
}
.transparent-white .form-control::placeholder {
	color: rgba(255, 255, 255, .8);
}
label {
	font-weight: 600;
	color: var(--ici-ink);
}

/*---------- Portada (hero) ----------*/
.slider-banner1.overlay-black::before {
	background: linear-gradient(180deg, rgba(13, 22, 40, .45) 0%, rgba(13, 22, 40, .7) 100%);
}
.slider-banner1 h1 {
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.slider-banner1 h1 .text-primary {
	color: var(--ici-green-on-dark) !important;
	font-style: italic;
	font-weight: 500;
}

/*---------- Tarjetas de proyectos ----------*/
/* Todas las fotos con la misma proporción: antes cada tarjeta
   tenía una altura distinta y la cuadrícula quedaba desalineada */
.featured-thumb .overlay-black img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}
/* Degradado inferior para que el precio se lea sobre cualquier foto */
.featured-thumb .overlay-black::after {
	content: "";
	position: absolute;
	inset: 45% 0 0 0;
	background: linear-gradient(180deg, transparent, rgba(10, 18, 34, .75));
	pointer-events: none;
	z-index: 10;
}
/* El velo negro al 50% del tema apagaba todas las fotos;
   ahora solo se oscurece la parte baja con el degradado */
.featured-thumb .overlay-black::before {
	background-color: rgba(10, 18, 34, .12);
}
.featured-thumb .price {
	font-family: var(--theme-ordinary-font);
	font-size: 1.35rem;
	line-height: 1.2;
	color: var(--ici-green-on-dark) !important;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
	z-index: 99;
}
.featured-thumb .price b {
	font-weight: 700;
}
.featured-thumb .price span {
	margin-top: 2px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, .9) !important;
}
.featured-thumb .sale,
.featured-thumb .featured {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase !important;
	line-height: 1.2;
	padding: 6px 10px;
	border-radius: 4px;
}
.featured-thumb-data h5 {
	font-size: 1.1rem;
}
.featured-thumb .location {
	font-size: 14px;
}

/*---------- Bloques de icono + texto ("Qué hacemos") ----------*/
.text-box-one h5 {
	font-size: 1.15rem;
}
.text-box-one p {
	font-size: 15px;
}

/*---------- Pie de página ----------*/
#footer p, .footer-widget p, .footer-widget li, .footer-widget a {
	font-size: 15px;
}

@media (max-width: 575.98px) {
	body {
		font-size: 15px;
	}
	.btn {
		font-size: 15px;
	}
}

/*---------- Ajustes por página ----------*/
/* Contáctanos: el texto azul oscuro sobre el bloque verde
   no se leía (contraste ~2:1) */
.bg-primary .contact-info .text-secondary {
	color: #fff !important;
	opacity: .92;
}

/*==========================================================
 Ajustes de "taste" (portada)
 Diales elegidos para la página de inicio:
 - Variación de diseño: media-alta. Portada y títulos alineados
   a la izquierda en vez de repetir "título centrado + raya"
   en cada bloque.
 - Movimiento: se mantiene el sistema ici-motion (sin añadir más).
 - Densidad: espaciosa; más aire en la portada y en los bloques.
 ==========================================================*/

/*---------- Etiqueta pequeña sobre los títulos ----------*/
.ici-eyebrow {
	font-family: var(--theme-ordinary-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--theme-primary-color, #00A859);
	margin-bottom: .6rem;
	line-height: 1.2;
}
.ici-eyebrow--light {
	color: var(--ici-green-on-dark);
}

/*---------- Cabecera de sección ----------*/
.ici-head {
	max-width: 640px;
	margin-bottom: 2.75rem;
}
.ici-head h2 {
	margin: 0;
}
.ici-head--center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
.ici-head--split {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}
.ici-head-link {
	font-weight: 600;
	font-size: 15px;
	color: var(--ici-ink);
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	white-space: nowrap;
}
.ici-head-link:hover,
.ici-head-link:focus {
	color: var(--theme-primary-color, #00A859);
	text-decoration: none;
}

/*---------- Portada ----------*/
.ici-hero.slider-banner1 {
	height: auto;
	min-height: min(78vh, 720px);
	padding: 96px 0 88px;
}
/* Degradado lateral: el texto vive a la izquierda y la foto respira a la derecha */
.ici-hero.slider-banner1.overlay-black::before {
	background: linear-gradient(90deg, rgba(13, 22, 40, .82) 0%, rgba(13, 22, 40, .55) 50%, rgba(13, 22, 40, .15) 100%);
}
.ici-hero h1 {
	font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem);
	line-height: 1.04;
	letter-spacing: -0.025em;
}
.ici-hero-lead {
	color: rgba(255, 255, 255, .88);
	font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
	line-height: 1.6;
	max-width: 34ch;
	margin-bottom: 2rem;
}
/* Buscador en una sola pieza: campo + botón */
.ici-search {
	display: flex;
	max-width: 560px;
	padding: 6px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.ici-search .form-control {
	flex: 1;
	min-width: 0;
	height: 52px;
	border: 0;
	box-shadow: none;
	padding-left: 14px;
	font-size: 16px;
}
.ici-search .form-control:focus {
	box-shadow: none;
}
.ici-search:focus-within {
	box-shadow: 0 0 0 3px rgba(78, 227, 155, .45), 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.ici-search .btn {
	height: 52px;
	flex-shrink: 0;
	border-radius: 7px;
}
@media (max-width: 575.98px) {
	.ici-hero.slider-banner1 {
		padding: 72px 0 64px;
		min-height: 0;
	}
	.ici-search .form-control {
		font-size: 15px;
	}
	.ici-search .btn {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}

/*---------- Qué hacemos: bloques alineados a la izquierda ----------*/
.ici-home .text-box-one .row > div > div {
	height: calc(100% - 1.5rem);
	border-top: 2px solid var(--ici-line);
	border-radius: 0 0 var(--ici-radius) var(--ici-radius) !important;
	padding: 1.75rem 0 1.25rem !important;
	background: transparent !important;
	box-shadow: none !important;
	transition: border-color 300ms cubic-bezier(0.2, 0, 0, 1);
}
/* Al pasar el ratón solo se enciende la línea superior: sin caja flotante */
.ici-home .text-box-one .row > div > div:hover {
	border-top-color: var(--theme-primary-color, #00A859);
}
.ici-home .text-box-one h5 {
	padding: 1rem 0 .6rem !important;
}

/*---------- Cifras: números grandes ----------*/
.ici-home .fact-counter .count-num {
	font-family: var(--theme-highlight-font);
	font-weight: 600;
	font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
	line-height: 1;
	color: #fff !important;
	font-variant-numeric: tabular-nums;
	margin: 1.25rem 0 .6rem !important;
}
.ici-home .fact-counter .h5 {
	font-family: var(--theme-ordinary-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .8) !important;
}
.ici-home .fact-counter .flat-large::before {
	font-size: 40px;
	color: var(--ici-green-on-dark);
}

/*---------- Testimonios ----------*/
.ici-testimonials .testimony-wrap {
	border: 1px solid var(--ici-line);
	border-radius: 10px;
	padding: 4px 24px;
}
.ici-testimonials .testimony-wrap p.mb-4 {
	color: var(--ici-ink);
	font-size: 16px;
}
.ici-testimonials .testimony-wrap .name {
	font-size: 17px;
	font-weight: 700;
	color: var(--ici-ink);
}
/* El cargo estaba en #ccc: casi invisible sobre blanco */
.ici-testimonials .testimony-wrap .position {
	font-size: 14px;
	color: #6b7280;
}
.ici-testimonials .testimony-wrap .user-img {
	width: 56px;
	height: 56px;
	background-size: cover;
	background-position: center;
}
