/* ==========================================================================
   La Glorieta – estilos del tema (lo que theme.json no cubre)
   ========================================================================== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* Pie ----------------------------------------------------------------------- */
.lg-footer a { text-decoration: none; }
.lg-footer a:hover { color: var(--wp--preset--color--orange) !important; text-decoration: underline; }
.lg-footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: .9rem; }
.lg-footer__bottom { padding-top: 1.5rem; border-top: 1px solid rgba(245, 238, 223, .15); opacity: .85; }
.lg-footer__bottom p { margin: 0; }
.lg-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; }

/* Estilos de bloque ---------------------------------------------------------- */
/* Titular con líneas a los lados («Propiedades destacadas»). */
.wp-block-heading.is-style-lined { display: flex; align-items: center; gap: 1.25rem; text-align: center; text-transform: uppercase; letter-spacing: .01em; }
.wp-block-heading.is-style-lined::before,
.wp-block-heading.is-style-lined::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .7; }
@media (max-width: 600px) { .wp-block-heading.is-style-lined::before, .wp-block-heading.is-style-lined::after { display: none; } .wp-block-heading.is-style-lined { justify-content: center; } }

/* Antetítulo. */
.wp-block-heading.is-style-eyebrow { font-family: var(--wp--preset--font-family--body); font-size: .8125rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--orange); }

/* Grupo tarjeta. */
.wp-block-group.is-style-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 2px 10px rgba(15, 23, 42, .08); padding-bottom: 1.25rem; }
.wp-block-group.is-style-card > :not(.wp-block-post-featured-image):not(.wp-block-image) { padding-inline: 1.25rem; }

.wp-block-image.is-style-rounded-xl img { border-radius: 32px; }

/* Botones con variantes de color: «outline» del tema. */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid currentColor; }

/* Secciones de la home -------------------------------------------------------- */
/* Hero: el buscador va dentro de la portada. */
.lg-hero .wp-block-cover__inner-container { max-width: 1100px; }
.lg-hero h1 { text-wrap: balance; }
.lg-hero .lg-search { margin-top: 1.5rem; }

/* Servicios. */
.lg-service {
	display: grid !important; grid-template-columns: 42% 1fr; align-items: stretch; gap: 0 !important;
	background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px -10px rgba(15, 23, 42, .3);
	transition: transform .25s, box-shadow .25s; position: relative;
}
.lg-service:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(15, 23, 42, .4); }
.lg-service .wp-block-image { margin: 0; height: 100%; }
.lg-service .wp-block-image img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.lg-service__body { display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem 1.2rem !important; }
.lg-service__body h3 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0; line-height: 1.15; }
.lg-service__body p { margin: .75rem 0 0; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.lg-service__body a { text-decoration: none; }
.lg-service__body a::after { content: ""; position: absolute; inset: 0; }
.lg-service__body a:hover { color: var(--wp--preset--color--orange); }

/* Valores. */
.lg-value { padding: 2rem 1.75rem !important; background: #fff; border-radius: 24px; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); border-top: 6px solid var(--wp--preset--color--orange); }
.lg-value h3 { letter-spacing: .04em; }
.lg-value p { font-size: .95rem; }

/* Pasos numerados. */
.lg-steps { counter-reset: lg-step; }
.lg-step { position: relative; padding-left: 4.25rem !important; }
.lg-step::before {
	counter-increment: lg-step; content: counter(lg-step);
	position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px;
	background: var(--wp--preset--color--orange); color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.15rem;
}
.lg-step h3 { margin: 0; font-size: 1.05rem; }
.lg-step p { margin: .35rem 0 0; opacity: .85; }

/* Equipo. */
.lg-team-member .wp-block-image img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; }
.lg-team-member h3 { margin-top: 1rem; }
.lg-team-member p { margin-top: .25rem; opacity: .75; font-size: .9rem; }

/* Tarjetas «¿Qué necesitas hacer hoy?». */
.lg-need { padding: 1rem 1rem 1.75rem !important; background: var(--wp--preset--color--ivory); border-radius: 32px; }
.lg-need > .wp-block-image { align-self: stretch; width: 100%; margin: 0; }
.lg-need .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; }

/* Ficha del inmueble ----------------------------------------------------------- */
.lg-property__aside .lg-contact { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 110px); }
@media (max-width: 781px) {
	.lg-property__layout { flex-direction: column-reverse; }
	.lg-property__aside { flex-basis: auto !important; }
}

/* Archivo ----------------------------------------------------------------------- */
.lg-archive-hero .lg-breadcrumbs ol, .lg-archive-hero .lg-breadcrumbs [aria-current] { color: var(--wp--preset--color--cream); }
.lg-archive-hero .lg-search { margin-top: 1.25rem; max-width: var(--wp--style--global--content-size); }

/* Reseñas (Trustindex) dentro del ancho del tema. */
.lg-reviews .ti-widget { max-width: 1240px; margin-inline: auto; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* Botón con icono de WhatsApp (clase en el bloque Botón). */
.lg-btn-wa .wp-block-button__link::before {
	content: ""; display: inline-block; width: 1.15em; height: 1.15em; margin-right: .5em; vertical-align: -.2em; 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='M12.04 2a9.9 9.9 0 0 0-8.5 15l-1.4 5.1 5.2-1.4A9.9 9.9 0 1 0 12.04 2Zm4.5 12c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3Z'/%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='M12.04 2a9.9 9.9 0 0 0-8.5 15l-1.4 5.1 5.2-1.4A9.9 9.9 0 1 0 12.04 2Zm4.5 12c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* El desplegable de filtros puede salir de la portada. */
.wp-block-cover.lg-hero { overflow: visible; }
.wp-block-cover.lg-hero .wp-block-cover__image-background, .wp-block-cover.lg-hero .wp-block-cover__background { border-radius: 0; }

/* Buscador que se monta sobre el borde inferior del hero. */
.lg-search-overlap { position: relative; z-index: 5; margin-top: -2.6rem !important; }

/* Zonas: alturas de las dos filas. */
.lg-zones--3 .lg-zone { min-height: 300px; }
.lg-zones--4 .lg-zone { min-height: 280px; }

/* Vende con nosotros: imagen + tarjeta azul solapada. */
.lg-sell { align-items: center !important; }
.lg-sell__media .wp-block-image { margin: 0; }
.lg-sell__media img { width: 100%; max-height: 640px; }
.lg-sell__card { border-radius: 32px; position: relative; z-index: 1; }
@media (min-width: 782px) { .lg-sell__card { margin-left: -4rem !important; } }

.lg-footer h3 { margin-bottom: .9rem; }
.lg-reviews { overflow: hidden; }

/* ==========================================================================
   Páginas de servicio
   ========================================================================== */
.lg-service-hero .wp-block-cover__inner-container { width: 100% !important; max-width: 1240px; margin-inline: auto !important; }
.lg-service-hero .is-style-eyebrow { color: var(--wp--preset--color--orange); margin-bottom: 1rem; }
.lg-service-hero__claim { text-wrap: balance; }
.lg-service-hero__lead { margin-top: 1.25rem; opacity: .92; }
.lg-service-hero .wp-block-buttons { margin-top: 2rem; }
.lg-service-hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy) !important; border-color: #fff; }

.lg-label { margin: 0 0 .5rem; font-size: .8rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--orange); }
.has-navy-background-color .lg-label { color: var(--wp--preset--color--orange); }
.lg-muted-light { opacity: .82; }

.lg-why__img img { width: 100%; max-height: 560px; }
.lg-feature h3 { margin: 1rem 0 .5rem; }
.lg-feature p { margin: 0; font-size: .95rem; color: var(--wp--preset--color--muted); }

.lg-dark-card { padding: 1.75rem !important; border-radius: 20px; background: rgba(255, 255, 255, .05); border-top: 3px solid var(--wp--preset--color--orange); }
.lg-dark-card h3 { margin: 0 0 .6rem; color: #fff; }
.lg-dark-card p { margin: 0; font-size: .95rem; opacity: .85; }

.lg-row { gap: 0; }
.lg-row .wp-block-media-text__media img { border-radius: 24px; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 18px 18px 0 var(--wp--preset--color--cream); }
.lg-row.has-media-on-the-right .wp-block-media-text__media img { box-shadow: -18px 18px 0 var(--wp--preset--color--cream); }
.lg-row .wp-block-media-text__content { padding: 0 clamp(1.5rem, 4vw, 4rem); }
.lg-row h3 { margin: 0 0 .75rem; }
@media (max-width: 600px) {
	.lg-row .wp-block-media-text__content { padding: 1.75rem 0 0; }
	.lg-row .wp-block-media-text__media img { box-shadow: none !important; }
}

.lg-guarantee { padding: 2rem 1.75rem !important; border-radius: 20px; background: var(--wp--preset--color--cream); }
.lg-guarantee:nth-child(2) { background: #fff; }
.lg-guarantee h3 { margin: 0 0 .75rem; }
.lg-guarantee p { margin: 0; }

.lg-step-card { position: relative; padding: 2.25rem 1.75rem 1.75rem !important; background: #fff; border-radius: 20px; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.lg-step-card::before {
	content: "1";
	display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border-radius: 999px;
	background: var(--wp--preset--color--navy); color: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; font-weight: 700;
}
.lg-step-card h3 { margin: 0 0 .5rem; }
.lg-step-card p { margin: 0; font-size: .95rem; color: var(--wp--preset--color--muted); }

.lg-reason { position: relative; padding-top: 4.5rem !important; }
.lg-reason::before {
	content: "01";
	position: absolute; top: 0; left: 0; font-family: var(--wp--preset--font-family--heading); font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--wp--preset--color--orange);
}
.lg-reason h3 { margin: 0 0 .5rem; }
.lg-reason p { margin: 0; }

/* Numeración de pasos y razones (sin contadores CSS: fallan dentro de rejillas). */
.lg-step-card:nth-child(2)::before { content: "2"; }
.lg-step-card:nth-child(3)::before { content: "3"; }
.lg-step-card:nth-child(4)::before { content: "4"; }
.lg-step-card:nth-child(5)::before { content: "5"; }
.lg-step-card:nth-child(6)::before { content: "6"; }
.lg-reason:nth-child(2)::before { content: "02"; }
.lg-reason:nth-child(3)::before { content: "03"; }
.lg-reason:nth-child(4)::before { content: "04"; }

.lg-checks-card { padding: clamp(1.5rem, 3vw, 2.5rem) !important; background: #fff; border-radius: 24px; box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .2); }
.lg-checklist { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.lg-checks-card .lg-checklist { margin: 0; }
.lg-checklist li { position: relative; padding-left: 2.1rem; line-height: 1.5; }
.lg-checklist li::before {
	content: ""; position: absolute; left: 0; top: .1em; width: 1.35rem; height: 1.35rem; border-radius: 999px;
	background: var(--wp--preset--color--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / .8rem no-repeat;
}

.lg-info-card { padding: 1.75rem !important; background: #fff; border-radius: 20px; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.lg-info-card h3 { margin: 0 0 .5rem; }
.lg-info-card p { margin: 0; font-size: .95rem; color: var(--wp--preset--color--muted); }

.wp-block-table.lg-table { margin: 0 0 1rem; }
.wp-block-table.lg-table table { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.wp-block-table.lg-table thead { border: 0; }
.wp-block-table.lg-table th { padding: 1rem 1.1rem; border: 0; background: var(--wp--preset--color--navy); color: var(--wp--preset--color--cream); font-size: .85rem; font-weight: 600; text-align: left; }
.wp-block-table.lg-table td { padding: .95rem 1.1rem; border: 0; border-top: 1px solid var(--wp--preset--color--line); }
.wp-block-table.lg-table td:first-child { font-weight: 600; }
.wp-block-table.lg-table td:nth-child(2) { background: rgba(235, 150, 39, .08); }

.lg-faq { display: flex; flex-direction: column; gap: .75rem !important; }
.lg-faq .wp-block-details { margin: 0 !important; background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.lg-faq .wp-block-details summary {
	position: relative; padding: 1.15rem 3.25rem 1.15rem 1.4rem; list-style: none; cursor: pointer;
	font-family: var(--wp--preset--font-family--heading); font-size: 1.05rem; font-weight: 700; line-height: 1.35;
}
.lg-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.lg-faq .wp-block-details summary::after {
	content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
	display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--wp--preset--color--cream);
	font-size: 1.2rem; font-weight: 600; transition: transform .2s, background-color .2s;
}
.lg-faq .wp-block-details[open] summary::after { content: "–"; background: var(--wp--preset--color--orange); }
.lg-faq .wp-block-details summary:focus-visible { outline: 2px solid var(--wp--preset--color--orange); outline-offset: 2px; border-radius: 16px; }
.lg-faq .wp-block-details > :not(summary) { margin: 0; padding: 0 1.4rem 1.25rem; color: var(--wp--preset--color--muted); }

.has-cream-background-color .lg-icon-block--circle .lg-icon { background: #fff; }
@media (max-width: 781px) { .lg-why__img img { aspect-ratio: 4 / 3 !important; max-height: 360px; } }

/* Reseñas: el widget siempre centrado, sea cual sea el ancho que calcule. */
.lg-reviews .ti-widget,
.lg-reviews .ti-widget > .ti-widget-container { width: 100%; max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
