/* =========================================================
   Inusual Real Estate · sistema de diseño (réplica de Framer)
   ========================================================= */

:root {
	--ie-ink: #292d29;
	--ie-ink2: #30352d;
	--ie-cream: #f7f5f0;
	--ie-softcream: #f6f5f0;
	--ie-sand: #e9e5dc;
	--ie-sand2: #e6e3da;
	--ie-grey: #72756d;
	--ie-olive: #59634f;
	--ie-red: #c2352a;
	--ie-wa: #128c4a;
	--ie-serif: "Cormorant Garamond", "Cormorant Garamond Placeholder", Georgia, serif;
	--ie-sans: "Manrope", Arial, sans-serif;
	--ie-inter: "Inter", Arial, sans-serif;
	--ie-pad-y: 88px;
	--ie-pad-x: 60px;
	--ie-line: rgba(41, 45, 41, 0.18);
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body.ie-page {
	margin: 0;
	background: var(--ie-cream);
	color: var(--ie-ink);
	font-family: var(--ie-sans);
	font-size: 14px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}
.ie-page a { color: inherit; text-decoration: none; }
.ie-page img { max-width: 100%; height: auto; display: block; }
.ie-page h1, .ie-page h2, .ie-page h3, .ie-page p { margin: 0; }
.ie-main { display: block; }

/* ---------- Tipografía ---------- */
.ie-h1, .ie-h1 .elementor-heading-title {
	font-family: var(--ie-serif); font-weight: 400; font-size: 92px; line-height: 1; letter-spacing: -0.02em; color: inherit;
}
.ie-h1--hero .elementor-heading-title { font-size: 80px; line-height: 1; letter-spacing: -1.6px; }
.ie-h2, .ie-h2 .elementor-heading-title {
	font-family: var(--ie-serif); font-weight: 400; font-size: 56px; line-height: 1.08; color: inherit;
}
.ie-h3, .ie-h3 .elementor-heading-title {
	font-family: var(--ie-serif); font-weight: 400; font-size: 32px; line-height: 1.15; color: inherit;
}
.ie-h3--lg { font-size: 36px; }
.ie-eyebrow, .ie-eyebrow p {
	font-family: var(--ie-sans); font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: 1.3px; color: inherit;
}
.ie-eyebrow--hero, .ie-eyebrow--hero p { font-family: var(--ie-inter); font-weight: 400; letter-spacing: 0.8px; line-height: 1.2; }
.ie-eyebrow--tight p { letter-spacing: 0.4px; }
.ie-body, .ie-body p { font-family: var(--ie-sans); font-size: 14px; line-height: 1.8; font-weight: 400; color: inherit; }
.ie-muted, .ie-muted p { color: var(--ie-grey) !important; }
.ie-soft, .ie-soft p { color: var(--ie-sand) !important; }
.ie-center, .ie-center .elementor-heading-title, .ie-center p { text-align: center; }
.ie-maxw p, .ie-maxw { max-width: 880px; }
.ie-lista p + p { margin-top: 0; }
.ie-lista p { margin: 0 0 6px; }
.ie-caption p { font-size: 12px; line-height: 1.5; color: #fff; }
.ie-hero__lead p { font-family: var(--ie-inter); font-size: 15px; line-height: 1.5; color: #fff; }

/* ---------- Elementor: anular espaciados por defecto ---------- */
.ie-page .e-con {
	--padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
	--padding-block-start: 0px; --padding-block-end: 0px; --padding-inline-start: 0px; --padding-inline-end: 0px;
	--gap: 0px; --row-gap: 0px; --column-gap: 0px;
	--margin-top: 0px; --margin-bottom: 0px;
	--content-width: 100%;
}
.ie-page .e-con > .elementor-widget { margin: 0 !important; }
.ie-page .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.ie-page .elementor-widget-button { width: auto !important; align-self: flex-start; }
.ie-page .elementor-widget-image img { width: 100%; }

/* ---------- Secciones ---------- */
body .ie-sec {
	padding: var(--ie-pad-y) var(--ie-pad-x) !important;
	background-color: var(--ie-cream);
	color: var(--ie-ink);
	box-sizing: border-box;
	width: 100%;
}
body .ie-sec.ie-sand { background-color: var(--ie-sand); }
body .ie-sec.ie-sand2 { background-color: var(--ie-sand2); }
body .ie-sec.ie-softcream { background-color: var(--ie-softcream); }
body .ie-sec.ie-white { background-color: #fff; }
body .ie-sec.ie-dark { background-color: var(--ie-ink); color: var(--ie-cream); }
.ie-dark .ie-link-btn, .ie-dark .elementor-button { color: var(--ie-cream); }

body .ie-stack-24 { gap: 24px !important; }
body .ie-stack-36 { gap: 36px !important; }
body .ie-narrow > * { max-width: 760px; }

/* Hero */
body .ie-hero {
	position: relative;
	min-height: 650px;
	padding: 70px 56px !important;
	justify-content: center !important;
	color: #fff;
	background-color: #555;
	overflow: hidden;
}
body .ie-hero::before {
	content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); z-index: 0; pointer-events: none;
}
body .ie-hero > * { position: relative; z-index: 1; }
body .ie-hero__txt { gap: 24px !important; max-width: 880px; }

/* Filas y rejillas (con !important: Elementor 4 fuerza flex: 0 1 auto en los contenedores) */
body .e-con.ie-row { flex-direction: row !important; align-items: flex-start !important; flex-wrap: nowrap !important; }
body .e-con.ie-row--80 { gap: 80px !important; }
body .e-con.ie-col-40 { flex: 0 0 calc(40% - 40px) !important; width: calc(40% - 40px) !important; --width: calc(40% - 40px); max-width: none !important; }
body .e-con.ie-col-fill { flex: 1 1 0% !important; width: auto !important; min-width: 0 !important; --width: auto; max-width: none !important; }
body .e-con.ie-col-form { flex: 0 0 calc(50% - 40px) !important; width: calc(50% - 40px) !important; --width: calc(50% - 40px); max-width: none !important; }
body .e-con.ie-sticky { position: sticky !important; top: 120px; align-self: flex-start !important; }
body .e-con.ie-head-row { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 32px !important; }
body .ie-head-row > .elementor-widget-heading { flex: 1 1 auto !important; }
body .ie-head-row > .elementor-widget-button { flex: none !important; }
body .e-con.ie-split { flex-direction: row !important; gap: 72px !important; align-items: center !important; flex-wrap: nowrap !important; }
body .ie-split > .elementor-widget-image { flex: 0 0 calc(50% - 36px) !important; width: calc(50% - 36px) !important; max-width: none !important; }
body .ie-split > .e-con { flex: 1 1 0% !important; width: auto !important; }
body .e-con.ie-center-v { justify-content: center !important; }
body .e-con > .e-con { flex-shrink: 1; }
body .ie-grid2 > *, body .ie-grid3 > *, body .ie-grid4 > * { width: auto !important; max-width: none !important; min-width: 0; }

/* Contenido centrado a 1320 px en pantallas grandes, como en Framer */
body .ie-sec { padding-left: max(var(--ie-pad-x), calc((100% - 1320px) / 2)) !important; padding-right: max(var(--ie-pad-x), calc((100% - 1320px) / 2)) !important; }
.ie-footer { padding-left: max(var(--ie-pad-x), calc((100% - 1320px) / 2)); padding-right: max(var(--ie-pad-x), calc((100% - 1320px) / 2)); }

body .ie-grid2, body .ie-grid3, body .ie-grid4 { display: grid !important; gap: 32px !important; }
body .ie-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .ie-grid2--20 { gap: 20px !important; }
body .ie-grid2--proyectos { gap: 36px 28px !important; }
body .ie-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .ie-grid3--20 { gap: 20px !important; }
body .ie-grid3--32 { gap: 32px !important; }
body .ie-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ie-grid3--cards, .ie-grid3--journal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* Imágenes */
.ie-img a { display: block; }
.ie-img img, .ie-page .elementor-widget-image.ie-img img { object-fit: cover; width: 100% !important; max-width: 100% !important; display: block; }
.ie-proyecto .elementor-heading-title a:hover { opacity: .6; }
.ie-img--proyecto img { transition: transform .6s ease; }
.ie-img--proyecto { overflow: hidden; }
.ie-proyecto:hover .ie-img--proyecto img { transform: scale(1.03); }
.ie-img--300 img { height: 300px; }
.ie-img--400 img { height: 400px; }
.ie-img--split img { height: 450px; }
.ie-img--515 img { height: 515px; }
.ie-img--proyecto img { height: 340px; }
body .ie-antes { gap: 12px !important; }
body .ie-proyecto { gap: 16px !important; }
.ie-proyecto .elementor-heading-title a { color: inherit; }

/* Pasos */
body .ie-paso { gap: 20px !important; }

/* Comparativa */
body .ie-cmp { padding: 32px !important; gap: 24px !important; border: 1px solid var(--ie-line); align-self: start; }
body .ie-cmp--sand { background: var(--ie-sand); border-color: transparent; }

/* Servicios */
body .ie-servicio { padding: 20px 8px 8px !important; gap: 12px !important; border-top: 1px solid rgba(233, 229, 220, 0.25); }
body .ie-offmarket { padding-top: 12px !important; }

/* Reseñas */
body .ie-resena { background: #fff; padding: 28px !important; gap: 20px !important; }
.ie-stars p { font-size: 18px; line-height: 1.6; letter-spacing: 1.8px; color: var(--ie-olive); }
.ie-quote p { font-size: 14px; line-height: 1.6; color: var(--ie-ink2); }
.ie-firma p { font-size: 11px; line-height: 1.6; font-weight: 600; color: var(--ie-ink2); }

/* Escalera animada */
.ie-stair-wrap { color: #fff; max-width: 380px; }
.ie-stair { width: 100%; height: auto; display: block; }

/* ---------- Botones ---------- */
.ie-btn .elementor-button,
.ie-link-btn {
	display: inline-flex; align-items: center; gap: 24px;
	padding: 12px 20px;
	background: transparent !important;
	color: inherit;
	border: 1px solid currentColor;
	border-radius: 0;
	font-family: var(--ie-sans); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: -0.24px;
	box-shadow: none;
	transition: background-color .25s ease, color .25s ease;
}
.ie-btn .elementor-button { color: var(--ie-ink); fill: currentColor; }
.ie-dark .ie-btn .elementor-button { color: var(--ie-cream); }
.ie-btn .elementor-button-text::after {
	content: ""; display: inline-block; width: 18px; height: 18px; margin-left: 24px; vertical-align: middle;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h10v10M7 17L17 7' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h10v10M7 17L17 7' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ie-btn--plain .elementor-button-text::after { display: none; }
.ie-btn .elementor-button:hover, .ie-link-btn:hover { background: var(--ie-ink) !important; color: var(--ie-cream) !important; }
.ie-dark .ie-btn .elementor-button:hover, .ie-dark .ie-link-btn:hover, .ie-footer .ie-link-btn:hover { background: var(--ie-cream) !important; color: var(--ie-ink) !important; }
.ie-arrow { width: 18px; height: 18px; flex: none; }
.ie-link-btn--14 { font-size: 14px; }

.ie-outline-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 20px; border: 1px solid var(--ie-grey); background: transparent; color: var(--ie-ink);
	font-family: var(--ie-sans); font-size: 12px; cursor: pointer; border-radius: 0;
}
.ie-outline-btn.is-on { background: var(--ie-ink); color: var(--ie-cream); }

/* ---------- Cabecera ---------- */
.ie-header { position: sticky; top: 0; z-index: 50; background: var(--ie-cream); }
.admin-bar .ie-header { top: 32px; }
.ie-nav { display: flex; align-items: center; gap: 36px; padding: 18px 40px; min-height: 94px; box-sizing: border-box; }
.ie-brand { display: block; width: 134px; flex: none; }
.ie-brand svg { width: 100%; height: auto; display: block; }
.ie-brand--footer { width: 190px; }
.ie-logo-text { font-family: var(--ie-sans); font-size: 28px; font-weight: 500; letter-spacing: -0.5px; }
.ie-logo-text small { font-size: 9px; letter-spacing: 0; }
.ie-nav__menu { display: flex; align-items: center; gap: 16px; flex: 1; }
.ie-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.ie-menu a, .ie-lang { font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: -0.24px; color: var(--ie-ink); }
.ie-menu a:hover, .ie-menu .current-menu-item a { opacity: .6; }
.ie-nav__right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.ie-ig { display: inline-flex; width: 22px; height: 22px; color: var(--ie-ink); }
.ie-ig svg { width: 100%; height: 100%; }
.ie-nav__cta { padding: 10px 14px; gap: 10px; }
.ie-burger { display: none; width: 32px; height: 32px; border: 0; background: transparent; padding: 6px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.ie-burger span { display: block; height: 1.5px; background: var(--ie-ink); transition: transform .25s; }
.ie-header.is-open .ie-burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.ie-header.is-open .ie-burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Pie ---------- */
.ie-footer { background: var(--ie-ink); color: var(--ie-cream); padding: 64px var(--ie-pad-x) 40px; }
.ie-footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.ie-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.ie-footer__brand .ie-brand { margin-bottom: 0; }
.ie-footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 56px; }
.ie-footer__links .ie-link-btn { border-color: transparent; padding: 8px 16px; }
.ie-footer__links .ie-link-btn:hover { border-color: currentColor; }
.ie-footer__bottom { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 64px; color: var(--ie-sand); }

/* WhatsApp flotante */
.ie-wa {
	position: fixed; right: 24px; bottom: 24px; z-index: 60;
	background: var(--ie-wa); color: #fff !important; border-radius: 28px;
	padding: 16px 24px; font-family: var(--ie-inter); font-size: 14px; line-height: 1.2; font-weight: 500; letter-spacing: -0.28px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

/* ---------- Tarjetas ---------- */
.ie-card { display: flex; flex-direction: column; color: var(--ie-ink); }
.ie-card__img { overflow: hidden; background: var(--ie-sand); }
.ie-card__img img { width: 100%; object-fit: cover; transition: transform .6s ease; }
.ie-card:hover .ie-card__img img { transform: scale(1.03); }
.ie-card--vivienda .ie-card__img img { height: 310px; }
.ie-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 4px 16px; }
.ie-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; border-top: 1px solid var(--ie-line); }
.ie-card--journal { gap: 16px; }
.ie-card--journal .ie-card__img img { height: 240px; }

/* ---------- Formularios ---------- */
.ie-form { display: flex; flex-direction: column; gap: 20px; padding: 8px; }
.ie-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ie-field { display: flex; flex-direction: column; gap: 10px; }
.ie-input-wrap { display: block; background: var(--ie-cream); border: 1px solid transparent; transition: border-color .2s; }
.ie-input-wrap:focus-within { border-color: var(--ie-grey); }
.ie-form input[type="text"], .ie-form input[type="email"], .ie-form input[type="tel"], .ie-form input[type="number"], .ie-form select, .ie-form textarea,
.ie-filtros input {
	width: 100%; box-sizing: border-box; border: 0; border-radius: 0; background: transparent; outline: none;
	padding: 12px; min-height: 48px; font-family: var(--ie-sans); font-size: 14px; color: var(--ie-ink); box-shadow: none;
}
.ie-form textarea { min-height: 110px; resize: vertical; }
.ie-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23292d29' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.ie-input-wrap--select { border-radius: 0; }
.ie-form ::placeholder, .ie-filtros ::placeholder { color: var(--ie-grey); opacity: 1; }
.ie-check { display: flex; align-items: flex-start; gap: 12px; padding: 8px; cursor: pointer; }
.ie-check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--ie-ink); flex: none; }
.ie-form .ie-link-btn { align-self: flex-start; }
.ie-submit {
	width: 100%; min-height: 53px; border: 0; border-radius: 0; cursor: pointer;
	background: var(--ie-red); color: var(--ie-cream); font-family: var(--ie-sans); font-size: 14px; line-height: 1.8;
	transition: filter .2s;
}
.ie-submit:hover { filter: brightness(.92); }
.ie-form__ok { background: var(--ie-ink); color: var(--ie-cream); padding: 16px 20px; font-size: 14px; }

/* Estilo de línea (home y newsletter) */
.ie-form--linea .ie-input-wrap { background: transparent; border: 0; border-bottom: 1px solid currentColor; }
.ie-form--linea input, .ie-form--linea select, .ie-form--linea textarea { padding-left: 0 !important; min-height: 36px; }
.ie-form--home .ie-input-wrap--select { background: var(--ie-sand); border: 0; border-radius: 10px; }
.ie-form--home .ie-input-wrap--select select { padding-left: 12px !important; }
.ie-form--home textarea { border: 1px solid currentColor; padding: 12px !important; }
.ie-form--home .ie-field--textarea .ie-input-wrap { border: 0; }
.ie-footer .ie-form { padding: 0; }
.ie-footer .ie-form input { color: var(--ie-cream); }
.ie-footer .ie-form ::placeholder { color: rgba(247, 245, 240, .6); }
.ie-footer .ie-check input { accent-color: var(--ie-cream); }
.ie-footer .ie-submit { width: 240px; }

/* Valoración por pasos */
.ie-steps { padding: 8px; gap: 24px; }
.ie-steps__bar { display: flex; gap: 8px; }
.ie-steps__bar span { flex: 1; height: 2px; background: rgba(41, 45, 41, .2); transition: background .3s; }
.ie-steps__bar span.is-done { background: var(--ie-ink); }
.ie-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ie-step[hidden] { display: none; }
.ie-steps .ie-input-wrap { background: var(--ie-cream); border: 1px solid var(--ie-grey); }
.ie-steps .ie-input-wrap input { min-height: 54px; }
.ie-steps__nav { display: flex; gap: 12px; }
.ie-step-btn { border: 1px solid var(--ie-grey); background: transparent; color: var(--ie-ink); padding: 12px 20px; font-family: var(--ie-sans); font-size: 12px; cursor: pointer; border-radius: 0; }
.ie-step-btn:hover { background: var(--ie-ink); color: var(--ie-cream); }
.ie-step-btn--send { background: var(--ie-red); border-color: var(--ie-red); color: var(--ie-cream); }
.ie-eyebrow--note { letter-spacing: 0.8px; line-height: 1.8; }
.ie-field.is-error .ie-input-wrap { border-color: var(--ie-red); }

/* Filtros de listados */
.ie-listado { display: flex; flex-direction: column; gap: 36px; }
.ie-filtros { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.ie-input-wrap--filtro { border: 1px solid var(--ie-line); border-radius: 10px; background: transparent; }
.ie-input-wrap--filtro input { min-height: 42px; padding: 8px 12px; }
.ie-listado--journal .ie-input-wrap--filtro { background: var(--ie-cream); border-color: transparent; }
.ie-listado .is-hidden { display: none !important; }

/* ---------- Ficha de vivienda ---------- */
.ie-ficha, .ie-lectura { display: flex; flex-direction: column; gap: 32px; }
.ie-ficha__tags { display: flex; gap: 24px; flex-wrap: wrap; }
.ie-ficha__hero img { width: 100%; height: 600px; object-fit: cover; }
.ie-ficha__galeria img { width: 100%; height: 480px; object-fit: cover; }
.ie-ficha__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ie-ficha__desc p { max-width: 880px; }
.ie-ficha .ie-link-btn { align-self: flex-start; }
.ie-calc { background: var(--ie-sand); padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.ie-calc__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ie-calc__fields label { display: flex; flex-direction: column; gap: 8px; }
.ie-calc__fields input { border: 1px solid var(--ie-grey); background: var(--ie-cream); padding: 10px 12px; font-family: var(--ie-sans); font-size: 14px; border-radius: 0; }
.ie-calc__cuota { font-family: var(--ie-serif); font-size: 36px; line-height: 1.15; }
.ie-calc__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Artículo */
.ie-lectura__img img { width: 100%; height: 500px; object-fit: cover; }
.ie-lectura__texto { max-width: 760px; }
.ie-lectura__texto p + p { margin-top: 1em; }
.ie-lectura .ie-link-btn { align-self: flex-start; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199px) {
	:root { --ie-pad-y: 72px; --ie-pad-x: 40px; }
	.ie-nav { padding: 20px 24px; min-height: 78px; gap: 20px; }
	.ie-burger { display: inline-flex; }
	.ie-nav__cta { display: none; }
	.ie-nav__menu {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: flex-start; gap: 20px;
		background: var(--ie-cream); padding: 24px 24px 32px; border-top: 1px solid var(--ie-line);
		display: none;
	}
	.ie-header.is-open .ie-nav__menu { display: flex; }
	.ie-menu { flex-direction: column; gap: 16px; }
	.ie-menu a, .ie-lang { font-size: 16px; }
	body .ie-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ie-filtros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 809px) {
	:root { --ie-pad-y: 56px; --ie-pad-x: 24px; }
	.ie-h1, .ie-h1 .elementor-heading-title { font-size: 54px; }
	.ie-h1--hero .elementor-heading-title { font-size: 48px; letter-spacing: -1px; }
	.ie-h2, .ie-h2 .elementor-heading-title { font-size: 38px; }
	.ie-h3, .ie-h3 .elementor-heading-title { font-size: 28px; }
	body .ie-hero { min-height: 560px; padding: 56px 24px !important; }
	body .e-con.ie-row, body .e-con.ie-split, body .e-con.ie-head-row { flex-direction: column !important; align-items: stretch !important; }
	body .e-con.ie-head-row { align-items: flex-start !important; }
	body .e-con.ie-row--80 { gap: 48px !important; }
	body .e-con.ie-col-40, body .e-con.ie-col-form, body .e-con.ie-col-fill, body .ie-split > .elementor-widget-image, body .ie-split > .e-con { flex: 1 1 auto !important; width: 100% !important; --width: 100%; }
	body .e-con.ie-sticky { position: static !important; }
	body .ie-split { gap: 32px !important; }
	body .ie-grid2, body .ie-grid3, body .ie-grid4,
	.ie-grid3--cards, .ie-grid3--journal, .ie-filtros, .ie-ficha__stats, .ie-calc__fields { grid-template-columns: 1fr; }
	.ie-img--split img, .ie-img--515 img, .ie-img--proyecto img { height: 300px; }
	.ie-img--400 img { height: 260px; }
	.ie-ficha__hero img { height: 360px; }
	.ie-ficha__galeria img, .ie-lectura__img img { height: 300px; }
	.ie-footer__top { grid-template-columns: 1fr; gap: 48px; }
	.ie-footer .ie-submit { width: 100%; }
	.ie-footer__bottom { gap: 12px; flex-direction: column; }
	.ie-wa { right: 16px; bottom: 16px; padding: 14px 20px; }
	.admin-bar .ie-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ie-card__img img { transition: none; }
}

/* ---------- Protección de datos en formularios ---------- */
.ie-check a, .ie-rgpd a, .ie-legal__txt a { text-decoration: underline; text-underline-offset: 2px; }
.ie-rgpd { font-size: 11px; line-height: 1.6; color: var(--ie-grey); border-top: 1px solid var(--ie-line); padding-top: 14px; }
.ie-rgpd__title { font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 10px; margin-bottom: 8px !important; color: inherit; }
.ie-rgpd dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 0 0 8px; }
.ie-rgpd dt { font-weight: 600; }
.ie-rgpd dd { margin: 0; }
.ie-footer .ie-rgpd, .ie-dark .ie-rgpd { color: rgba(247, 245, 240, .7); border-top-color: rgba(247, 245, 240, .2); }
.ie-footer__brand a:hover, .ie-footer__bottom a:hover { opacity: .7; }

/* ---------- Páginas legales ---------- */
body .ie-legal > * { max-width: 860px; }
body .ie-legal__sec { gap: 14px !important; }
.ie-legal__intro p { font-size: 16px; line-height: 1.7; }
.ie-legal__txt p { margin: 0 0 12px; }
.ie-legal__txt ul { margin: 0 0 12px; padding-left: 20px; }
.ie-legal__txt li { margin-bottom: 6px; }
.ie-tabla { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 13px; line-height: 1.6; }
.ie-tabla th, .ie-tabla td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--ie-line); }
.ie-tabla th { font-weight: 600; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; background: var(--ie-sand); }
@media (max-width: 809px) {
	.ie-rgpd dl { grid-template-columns: 1fr; gap: 0; }
	.ie-rgpd dd { margin-bottom: 6px; }
	.ie-tabla { display: block; overflow-x: auto; }
}

/* =========================================================
   Animaciones (solo con JS activo y sin «reducir movimiento»)
   ========================================================= */
:root { --ie-ease: cubic-bezier(.22, .61, .36, 1); --ie-ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Aparición al hacer scroll */
.ie-js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ie-ease-out), transform 1.1s var(--ie-ease-out); transition-delay: var(--ie-d, 0ms); will-change: opacity, transform; }
.ie-js [data-reveal="fade"] { transform: none; }
.ie-js [data-reveal].is-in { opacity: 1; transform: none; }

/* Imágenes que se descubren como una cortina */
.ie-js [data-reveal="img"] { opacity: 1; transform: none; overflow: hidden; }
.ie-js [data-reveal="img"] img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.4s var(--ie-ease-out), transform 1.8s var(--ie-ease-out); transition-delay: var(--ie-d, 0ms); }
.ie-js [data-reveal="img"].is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.ie-js .ie-card:hover [data-reveal="img"].is-in img, .ie-js .ie-card:hover .ie-card__img.is-in img { transform: scale(1.04); transition-duration: .8s; transition-delay: 0ms; }

/* Portada: zoom lento de la foto y entrada escalonada del texto */
body .ie-hero > .ie-hero__bg { position: absolute !important; inset: 0; z-index: 0 !important; width: auto; height: auto; background-size: cover; background-position: center; transform-origin: 60% 40%; }
.ie-js .ie-hero__bg { animation: ie-kenburns 18s var(--ie-ease) both; }
body .ie-hero::before { z-index: 1; }
body .ie-hero > .e-con, body .ie-hero > .elementor-widget { z-index: 2; }
@keyframes ie-kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.ie-js .ie-hero__txt > * { opacity: 0; transform: translate3d(0, 24px, 0); animation: ie-rise 1.2s var(--ie-ease-out) forwards; }
.ie-js .ie-hero__txt > *:nth-child(1) { animation-delay: .35s; }
.ie-js .ie-hero__txt > *:nth-child(2) { animation-delay: .55s; }
.ie-js .ie-hero__txt > *:nth-child(3) { animation-delay: .8s; }
.ie-js .ie-hero__txt > *:nth-child(4) { animation-delay: 1s; }
@keyframes ie-rise { to { opacity: 1; transform: none; } }

/* Entrada suave de la página */
.ie-js body.ie-page { animation: ie-fade .6s var(--ie-ease) both; }
@keyframes ie-fade { from { opacity: 0; } to { opacity: 1; } }

/* Cabecera: se compacta y gana una línea al bajar */
.ie-header { transition: box-shadow .4s var(--ie-ease), background-color .4s var(--ie-ease); }
.ie-nav { transition: min-height .4s var(--ie-ease), padding .4s var(--ie-ease); }
.ie-brand { transition: width .4s var(--ie-ease); }
.ie-header.is-scrolled { box-shadow: 0 1px 0 var(--ie-line), 0 10px 30px -18px rgba(41, 45, 41, .35); background: rgba(247, 245, 240, .94); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); }
.ie-header.is-scrolled .ie-nav { min-height: 74px; padding-top: 12px; padding-bottom: 12px; }
.ie-header.is-scrolled .ie-brand { width: 112px; }

/* Menú: subrayado que se dibuja */
.ie-menu a { position: relative; padding: 4px 0; }
.ie-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ie-ease-out); }
.ie-menu a:hover::after, .ie-menu .current-menu-item a::after { transform: scaleX(1); transform-origin: left; }
.ie-menu a:hover, .ie-menu .current-menu-item a { opacity: 1; }

/* Botones: la flecha avanza en diagonal */
.ie-arrow, .ie-btn .elementor-button-text::after, .ie-card__foot .ie-arrow { transition: transform .45s var(--ie-ease-out); }
.ie-link-btn:hover .ie-arrow, .ie-btn .elementor-button:hover .elementor-button-text::after, .ie-card:hover .ie-card__foot .ie-arrow { transform: translate(3px, -3px); }
.ie-btn .elementor-button, .ie-link-btn, .ie-submit, .ie-step-btn, .ie-outline-btn { transition: background-color .4s var(--ie-ease), color .4s var(--ie-ease), border-color .4s var(--ie-ease), filter .3s; }

/* Tarjetas: la línea inferior se oscurece */
.ie-card__foot { transition: border-color .5s var(--ie-ease); }
.ie-card:hover .ie-card__foot { border-color: var(--ie-ink); }
.ie-card h3 { transition: opacity .4s var(--ie-ease); }

/* Valoración por pasos: transición entre pasos */
.ie-js .ie-step:not([hidden]) { animation: ie-step-in .6s var(--ie-ease-out) both; }
@keyframes ie-step-in { from { opacity: 0; transform: translate3d(16px, 0, 0); } to { opacity: 1; transform: none; } }
.ie-steps__bar span { transition: background-color .6s var(--ie-ease); }

/* WhatsApp: aparece tras la carga */
.ie-js .ie-wa { animation: ie-wa-in .8s var(--ie-ease-out) 1.4s both; transition: transform .3s var(--ie-ease), box-shadow .3s; }
.ie-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
@keyframes ie-wa-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Sin animaciones si el usuario lo pide o en el editor de Elementor */
@media (prefers-reduced-motion: reduce) {
	.ie-js [data-reveal], .ie-js [data-reveal] img, .ie-js .ie-hero__txt > *, .ie-js .ie-hero__bg, .ie-js body.ie-page, .ie-js .ie-step, .ie-js .ie-wa { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; transition: none !important; }
}
.elementor-editor-active [data-reveal], .elementor-editor-active .ie-hero__txt > * { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }

/* 404 */
.ie-404 { display: flex; flex-direction: column; gap: 24px; min-height: 60vh; justify-content: center; }
.ie-404 .ie-h1 { max-width: 900px; }
.ie-404__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* ---------- SEO: zonas, preguntas frecuentes ---------- */
body .ie-zona-hero { align-items: center; gap: 56px; }
.ie-lead p { font-family: var(--ie-serif); font-size: 26px; line-height: 1.3; color: var(--ie-ink); }
.ie-img--zona img { width: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; }
.ie-lista ul { list-style: none; margin: 0; padding: 0; }
.ie-lista li { padding: 12px 0; border-bottom: 1px solid var(--ie-line); }
.ie-lista li:first-child { border-top: 1px solid var(--ie-line); }

.ie-faq { border-top: 1px solid var(--ie-line); max-width: 900px; }
.ie-faq__item { border-bottom: 1px solid var(--ie-line); }
.ie-faq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-family: var(--ie-serif); font-size: 24px; line-height: 1.25; color: var(--ie-ink); }
.ie-faq__q::-webkit-details-marker { display: none; }
.ie-faq__q::after { content: "+"; font-family: var(--ie-sans); font-weight: 300; font-size: 22px; transition: transform .3s ease; }
.ie-faq__item[open] .ie-faq__q::after { transform: rotate(45deg); }
.ie-faq__a { padding: 0 0 24px; max-width: 760px; }
.ie-faq__a p { margin: 0; }
.ie-dark .ie-faq__q { color: inherit; }

.ie-zonas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ie-zona-card { display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid var(--ie-line); color: var(--ie-ink); text-decoration: none; transition: background .3s ease, border-color .3s ease; }
.ie-zona-card:hover { background: var(--ie-sand); border-color: transparent; }
.ie-zona-card__go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.ie-zona-card__go .ie-arrow { width: 16px; height: 16px; }
.ie-zonas-lista a { text-decoration: underline; text-underline-offset: 3px; }

.ie-footer__zonas { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(247, 245, 240, .15); }
.ie-footer__zonas .ie-eyebrow { width: 100%; opacity: .6; }
.ie-footer__zonas a { color: inherit; opacity: .85; text-decoration: none; font-size: 14px; }
.ie-footer__zonas a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 1024px) { .ie-zonas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.ie-zonas { grid-template-columns: 1fr; }
	body .ie-zona-hero { gap: 32px; }
	.ie-lead p { font-size: 22px; }
	.ie-faq__q { font-size: 20px; }
}
/* Secciones de viviendas vacías: se ocultan hasta que haya viviendas publicadas. */
.ie-sec:has(.ie-ocultar-seccion) { display: none !important; }
.ie-vacio a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Artículos del Journal: lectura editorial ---------- */
body .ie-lectura { align-items: center; gap: 0; padding-top: 72px; }
.ie-lectura > * { width: 100%; max-width: 720px; }
.ie-lectura__cab { display: flex; flex-direction: column; gap: 22px; text-align: center; align-items: center; }
.ie-lectura__cab .ie-h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.08; }
.ie-lectura__entradilla { font-family: var(--ie-serif); font-style: italic; font-size: 23px; line-height: 1.45; color: var(--ie-grey); margin: 0; }
body .ie-lectura > .ie-lectura__img { max-width: 1100px; margin: 56px 0 64px; }
.ie-lectura__img img { height: 560px; }
.ie-lectura__texto { font-family: var(--ie-sans); font-size: 17px; line-height: 1.85; color: #3d413c; font-weight: 400; }
.ie-lectura__texto p { margin: 0 0 1.3em; font-size: inherit; line-height: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; }
.ie-lectura__texto > p:first-child::first-letter { font-family: var(--ie-serif); float: left; font-size: 74px; line-height: .82; padding: 8px 12px 0 0; color: var(--ie-ink); }
.ie-lectura__texto h2 { font-family: var(--ie-serif); font-weight: 400; font-size: 34px; line-height: 1.2; letter-spacing: 0; color: var(--ie-ink); margin: 2.1em 0 .6em; }
.ie-lectura__texto h3 { font-family: var(--ie-serif); font-weight: 500; font-size: 24px; margin: 1.6em 0 .4em; color: var(--ie-ink); }
.ie-lectura__texto a { color: var(--ie-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(41, 45, 41, .35); transition: text-decoration-color .2s ease; font-size: inherit; }
.ie-lectura__texto a:hover { text-decoration-color: currentColor; }
.ie-lectura__texto ul { list-style: none; margin: 0 0 1.5em; padding: 0; border-top: 1px solid var(--ie-line); }
.ie-lectura__texto li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--ie-line); }
.ie-lectura__texto li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 12px; height: 1px; background: currentColor; }
.ie-lectura__texto > p:last-child { font-family: var(--ie-serif); font-size: 24px; line-height: 1.4; color: var(--ie-ink); margin-top: 2em; padding-top: 32px; border-top: 1px solid var(--ie-line); }
.ie-lectura__cta { margin-top: 56px; padding: 48px 40px; background: var(--ie-sand); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ie-lectura__cta-titulo { font-family: var(--ie-serif); font-size: 34px; line-height: 1.15; margin: 0; color: var(--ie-ink); }
.ie-lectura__volver { margin-top: 40px; font-size: 13px; letter-spacing: .04em; color: var(--ie-grey); text-decoration: none; text-align: center; }
.ie-lectura__volver:hover { color: var(--ie-ink); }
@media (max-width: 767px) {
	body .ie-lectura { padding-top: 40px; }
	.ie-lectura__entradilla { font-size: 20px; }
	body .ie-lectura > .ie-lectura__img { margin: 36px 0 40px; }
	.ie-lectura__img img { height: 280px; }
	.ie-lectura__texto { font-size: 16px; }
	.ie-lectura__texto h2 { font-size: 28px; }
	.ie-lectura__texto > p:first-child::first-letter { font-size: 60px; }
	.ie-lectura__cta { padding: 36px 24px; }
	.ie-lectura__cta-titulo { font-size: 28px; }
}
