/* ==========================================================================
   Actívox — estilos del tema
   ========================================================================== */

@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("../fonts/gelasio.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
	--green: #006959;
	--green-dark: #004b40;
	--green-deep: #06352e;
	--green-light: #e6f0ee;
	--footer: #15302b;
	--sand: #f6f2ea;
	--accent: #b9852f;
	--accent-dark: #9b6e22;
	--ink: #1d2624;
	--muted: #5b6765;
	--line: #e1e6e5;
	--white: #fff;
	--radius: 10px;
	--shadow: 0 6px 24px rgba(16, 40, 36, .07);
	--font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Gelasio", Georgia, "Times New Roman", serif;
	--wrap: 1160px;
}

/* Combinaciones de color (Personalizar › Actívox › Página de inicio). El logotipo no cambia. */
.esquema-verde-claro { --green: #2a8a73; --green-dark: #1e6b59; --green-light: #e8f4f0; --sand: #f3f7f5; --accent: #c0913a; --accent-dark: #a27a2e; --footer: #1d3b35; }
.esquema-dorado { --green: #8a6a2a; --green-dark: #3b3328; --green-light: #f6efe1; --sand: #faf6ee; --accent: #006959; --accent-dark: #004b40; --footer: #2e2820; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.screen-reader-text, .form__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--white); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 40px); }
.wrap--mid { width: min(980px, 100% - 40px); }

.icon { flex-shrink: 0; vertical-align: -0.18em; }

/* --- Botones -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 6px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dark); color: var(--white); }
.btn--ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn--ghost:hover { background: var(--green-light); }
.btn--outline-light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--wa { background: #25d366; color: #fff; }
.btn--call { background: var(--accent); color: var(--white); }
.btn--call:hover { background: var(--accent-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--green); }
.btn--light:hover { background: var(--green-light); color: var(--green-dark); }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__info .btn--wa { width: 100%; }
.btn--wa:hover { background: #1ebe5a; color: #fff; }
.btn .google-g { background: #fff; border-radius: 50%; padding: 2px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--green); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s; }

.eyebrow { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.eyebrow--light { color: #ebc57f; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--green-light); color: var(--green); text-decoration: none; }

/* --- Barra superior y cabecera ------------------------------------------- */
.topbar { background: var(--green-dark); color: #cfe3df; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar__list, .topbar__social { display: flex; gap: 22px; align-items: center; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar__social { gap: 14px; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; }
.logo { display: inline-flex; line-height: 0; text-decoration: none; }
.logo img { height: 66px; width: auto; }
.site-footer .logo img { height: 72px; }
@media (max-width: 640px) { .logo img { height: 46px; } }
.logo__name { font-family: var(--font); font-size: 32px; font-weight: 800; letter-spacing: -1.2px; color: var(--green); }
.logo__name i { font-style: normal; }
.logo__tag { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.logo--light .logo__name { color: var(--white); }
.logo--light .logo__tag { color: #8fb0a9; }
.custom-logo { max-height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav .menu { display: flex; gap: 28px; }
.main-nav .menu a { color: #2c3936; text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav .menu a:hover { color: var(--green); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { color: var(--green); border-bottom-color: var(--green); }
.main-nav .sub-menu { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--green); cursor: pointer; order: 4; }
.main-nav { order: 2; margin-left: auto; }
.header-actions { order: 3; display: flex; gap: 8px; }
.hbtn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 6px; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.hbtn--call { background: var(--green); color: var(--white); }
.hbtn--call:hover { background: var(--green-dark); color: var(--white); }
.hbtn--wa { background: #25d366; color: var(--white); }
.hbtn--wa:hover { background: #1ebe5a; color: var(--white); }
.nav-toggle__close { display: none; }

/* --- Portada -------------------------------------------------------------- */
.hero { position: relative; background: var(--green-dark); color: var(--white); overflow: hidden; }
.hero__bg, .hero__bg::after { position: absolute; inset: 0; }
.hero__bg::after { content: ""; background: linear-gradient(90deg, color-mix(in srgb, var(--green-dark) 94%, transparent) 0%, color-mix(in srgb, var(--green-dark) 68%, transparent) 55%, color-mix(in srgb, var(--green-dark) 20%, transparent) 100%); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--svg { object-position: right bottom; }
.hero--blur .hero__img { filter: blur(5px) saturate(.9); transform: scale(1.06); }
.hero__link { margin: 22px 0 0; }
.hero__link a { color: #ebc57f; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.hero__link a:hover { color: var(--white); }
.hero__in { position: relative; z-index: 1; padding: 104px 0 118px; }
.hero__title { color: var(--white); font-size: clamp(36px, 5vw, 58px); line-height: 1.06; max-width: 680px; margin-bottom: 22px; }
.hero__text { font-size: 18.5px; max-width: 560px; color: #d6e6e2; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { background: var(--sand); }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 30px 0; gap: 10px; }
.stat__value { display: block; font-family: var(--serif); font-size: 30px; color: var(--green); line-height: 1.2; }
.stat__label { color: var(--muted); font-size: 14px; }

/* --- Secciones ------------------------------------------------------------ */
.section { padding: 76px 0; }
.section--tight { padding: 52px 0 72px; }
.section--sand { background: var(--sand); }
.section--green { background: var(--green); color: var(--white); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 34px; }
.sec-head__title { font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 0; }
.sec-head__text { color: var(--muted); max-width: 400px; margin: 0; }
.section--sand .sec-head__title + .grid, .section > .wrap > .sec-head__title { margin-bottom: 28px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__img, .video { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; background: #0f3f37; }
.split__text p { color: var(--muted); }
.split__text .btn { margin-top: 8px; }
.video { position: relative; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video__play { position: relative; z-index: 1; width: 78px; height: 78px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--green); display: flex; align-items: center; justify-content: center; cursor: pointer; padding-left: 5px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Tarjetas ------------------------------------------------------------- */
.service-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s, border-color .2s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cfdcd9; color: var(--ink); }
.service-card__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-card__title { font-size: 20px; margin-bottom: 8px; }
.service-card__text { color: var(--muted); font-size: 14.5px; flex: 1; }
.service-card__title a { color: inherit; text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; }
.service-card { position: relative; }
.service-card__price { font-weight: 700; color: var(--green); font-size: 15px; margin: 0 0 12px; }
.service-card__actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 1; }
.service-card__wa { display: inline-flex; align-items: center; gap: 6px; background: #25d366; color: var(--white); border-radius: 20px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.service-card__wa:hover { background: #1ebe5a; color: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 56px; align-content: center; background: var(--green); border-color: var(--green); color: var(--white); padding: 40px 44px; }
.service-card--featured > * { grid-column: 1; }
.service-card--featured .service-card__points { grid-column: 2; grid-row: 1 / span 6; align-self: center; grid-template-columns: 1fr; gap: 12px; font-size: 16px; margin: 0; }
.service-card--featured:hover { color: var(--white); border-color: var(--green); }
.service-card--featured .service-card__icon { background: rgba(255,255,255,.14); color: var(--white); width: 60px; height: 60px; }
.service-card--featured .service-card__title { color: var(--white); font-size: 32px; }
.service-card--featured .service-card__text { color: #d6e6e2; font-size: 17px; flex: 0; margin-bottom: 16px; }
.service-card--featured .service-card__price { color: #ebc57f; font-size: 18px; }
.service-card--featured .link-arrow { color: var(--white); }
.service-card__points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 0 0 20px; font-size: 15px; color: var(--white); }
.service-card__points li { display: flex; gap: 8px; align-items: flex-start; }
.service-card__points .icon { color: #ebc57f; margin-top: 3px; }
.service-card__flag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #ebc57f; margin-bottom: 8px; }
.service-cta { background: var(--sand); border-radius: 12px; padding: 24px 26px; margin-top: 30px; }
.service-cta__price { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--green); margin: 0 0 6px; }
.video--service { margin-bottom: 1.6em; }

.team-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 26px; }
.team-mini { text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; }
.team-mini__photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; transition: transform .25s; }
.team-mini:hover .team-mini__photo { transform: scale(1.04); }
.team-mini__name { font-size: 15.5px; }
.team-mini__role { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.person-photo--initials, .team-mini__photo--initials, .team-card__photo--initials, .profile__img--initials, .activox-thumb--initials { display: flex; align-items: center; justify-content: center; background: var(--av, var(--green)); color: var(--white); font-family: var(--serif); font-weight: 700; font-size: 40px; }

.team-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.team-card__media { display: block; aspect-ratio: 1/1; background: var(--green-light); overflow: hidden; }
.team-card__photo { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.team-card__photo--initials { font-size: 72px; }
.team-card:hover .team-card__photo { transform: scale(1.03); }
.team-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.team-card__name { font-size: 21px; margin-bottom: 2px; }
.team-card__name a { color: inherit; text-decoration: none; }
.team-card__role { color: var(--green); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.team-card__contact { font-size: 14px; display: grid; gap: 6px; margin-bottom: 16px; }
.team-card__contact a { color: var(--ink); text-decoration: none; word-break: break-all; }
.team-card__contact .icon { color: var(--green); margin-right: 4px; }
.team-card__links { display: flex; justify-content: space-between; align-items: center; margin: auto 0 0; }
.icon-link { color: var(--green); }
.join-card { border: 2px dashed #c9d6d3; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px; background: #fbfdfc; }
.join-card h3 { font-size: 22px; }
.join-card p:not(.eyebrow) { color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { border: 1.5px solid var(--green); background: transparent; color: var(--green); padding: 7px 16px; border-radius: 6px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip.is-active, .chip:hover { background: var(--green); color: var(--white); }
.team-card.is-hidden { display: none; }

.post-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; }
.post-card__media { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--green-light); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { padding: 20px 22px 24px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.post-card__title { font-size: 19px; line-height: 1.3; margin: 0; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--green); }
.post-card--row { flex-direction: row; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 24px 0; gap: 24px; }
.post-card--row .post-card__media { flex: 0 0 240px; aspect-ratio: 3/2; border-radius: 8px; height: fit-content; }
.post-card--row .post-card__body { padding: 0; }
.post-card--row .post-card__title { font-size: 21px; margin-bottom: 8px; }
.post-card__excerpt { color: var(--muted); font-size: 14.5px; margin: 0; }

.post-featured { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.post-featured__media { display: block; aspect-ratio: 2/1; background: var(--green-light); overflow: hidden; }
.post-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.post-featured__body { padding: 26px 28px 30px; }
.post-featured__title { font-size: 30px; }
.post-featured__title a { color: var(--ink); text-decoration: none; }
.post-featured__body p:not(.post-card__meta) { color: var(--muted); }

/* --- Reseñas -------------------------------------------------------------- */
.reviews { padding: 76px 0; }
.reviews--bg { background: var(--sand); }
.reviews--compact { padding: 40px 0; }
.reviews__score { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 40px; padding: 10px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.reviews__score strong { font-family: var(--serif); font-size: 24px; }
.reviews__score span:last-child { color: var(--muted); font-size: 14px; }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 30px; }
.review { margin: 0; background: var(--white); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.review__text { margin: 0; flex: 1; color: #33403d; font-size: 15px; }
.review__text p { margin: 0; }
.review__author { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.review__author img, .review__initial { width: 36px; height: 36px; border-radius: 50%; }
.review__initial { display: flex; align-items: center; justify-content: center; background: var(--green); color: var(--white); font-weight: 700; }
.review__author > span { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.review__author small { color: var(--muted); }
.reviews__cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; }
.reviews__cta p { margin: 0; color: var(--muted); }
.reviews__cta p strong { color: var(--ink); }
.reviews__cta > div { display: flex; gap: 10px; flex-wrap: wrap; }
.reviews__attr { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* --- Franja final --------------------------------------------------------- */
.cta-band { background: var(--green); color: var(--white); }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px 0; }
.cta-band__title { color: var(--white); font-size: 30px; margin-bottom: 4px; }
.cta-band p { color: #cfe3df; margin: 0; }

/* --- Idealista y contacto rápido ----------------------------------------- */
.idealista-band { background: var(--green-dark); color: var(--white); }
.idealista-band__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 0; }
.idealista-band__title { color: var(--white); font-size: 28px; margin-bottom: 4px; }
.idealista-band p { color: #cfe3df; margin: 0; max-width: 640px; }
.contact-block__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-block__title { color: var(--white); font-size: clamp(28px, 3.2vw, 38px); }
.contact-block__text { color: #d6e6e2; font-size: 17px; margin-bottom: 24px; }
.contact-block__list { margin-top: 26px; display: grid; gap: 10px; color: #d6e6e2; }
.contact-block__list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-block__list .icon { color: #ebc57f; margin-top: 3px; }
.contact-block__list a { color: var(--white); text-decoration: none; }
.contact-block__value { margin: 26px 0 0; }
.contact-block__value a { color: #ebc57f; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.contact-block__form { background: var(--white); color: var(--ink); border-radius: 14px; padding: 28px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.contact-block__form-title { font-size: 22px; }

/* --- Páginas interiores --------------------------------------------------- */
.page-hero { background: var(--sand); padding: 46px 0 44px; }
.page-hero__title { font-size: clamp(32px, 4vw, 46px); max-width: 800px; margin-bottom: 0; }
.page-hero__intro { color: var(--muted); font-size: 18px; max-width: 680px; margin: 14px 0 0; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs__sep { margin: 0 4px; }

.prose { font-size: 17px; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green); }
.prose img { border-radius: 8px; margin: 1.4em auto; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 45%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 45%; }
.prose blockquote { border-left: 4px solid var(--green); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: #33403d; font-style: italic; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.prose--light, .prose--light h2, .prose--light h3 { color: var(--white); }
.prose__lead-img img { border-radius: 12px; margin: 0 0 1.6em; width: 100%; }
.prose::after { content: ""; display: table; clear: both; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 54px; align-items: start; }
.blog-aside { display: grid; gap: 26px; position: sticky; top: 110px; }
.aside-box { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--white); }
.aside-box__title { font-size: 19px; margin-bottom: 12px; }
.aside-box--form { box-shadow: var(--shadow); }
.cat-list li a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list li a:hover, .cat-list li.is-current a { color: var(--green); }
.cat-list__n { color: var(--muted); font-size: 13px; }
.aside-cta { background: var(--green); color: var(--white); border-radius: 12px; padding: 24px; }
.aside-cta__title { color: var(--white); font-size: 21px; }
.aside-cta p { color: #cfe3df; font-size: 14.5px; }
.search-form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; color: var(--muted); background: var(--white); }
.search-form input { border: 0; padding: 12px 0; width: 100%; font: inherit; font-size: 14.5px; background: transparent; }
.search-form input:focus { outline: none; }
.search-form:focus-within { border-color: var(--green); }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #cfe3df; }
.social a:hover { background: var(--accent); color: var(--white); }
.social--dark { margin-top: 0; }
.social--dark a { background: var(--green-light); color: var(--green); }

/* Paginación */
.pagination { margin-top: 30px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.page-numbers.current, .page-numbers:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.page-numbers.dots { border: 0; }

/* Artículo */
.article__head { background: var(--sand); padding: 46px 0 40px; }
.article__title { font-size: clamp(30px, 4vw, 44px); }
.article__lead { font-size: 19px; color: var(--muted); margin: 0; }
.article__media { margin-top: -0px; padding-top: 34px; }
.article__media img { width: 100%; border-radius: 12px; }
.article__body { padding: 38px 0 10px; }
.article__foot { padding-bottom: 60px; }
.share { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; font-size: 14.5px; color: var(--muted); }
.share a { font-weight: 600; text-decoration: none; }
.author-box { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.author-box img { border-radius: 50%; }
.author-box div { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.author-box strong { color: var(--ink); font-size: 15px; }

/* Perfil */
.page-hero--profile { padding-bottom: 50px; }
.profile { display: flex; gap: 40px; align-items: center; }
.profile__photo { flex: 0 0 220px; }
.profile__img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.profile__img--initials { font-size: 70px; }
.profile__contact { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; font-size: 15.5px; }
.profile__contact a { color: var(--ink); text-decoration: none; }
.profile__contact .icon { color: var(--green); margin-right: 4px; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 54px; align-items: start; }
.contact__list { display: grid; gap: 20px; margin-bottom: 24px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .icon { color: var(--green); margin-top: 2px; }
.contact__list div { display: flex; flex-direction: column; }
.contact__list a { color: var(--ink); text-decoration: none; font-size: 17px; }
.contact__list span { color: var(--muted); }
.map { margin-top: 24px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--green-light) url("../img/burgos-light.svg") center bottom / cover no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__load { border: 0; background: var(--white); color: var(--green); padding: 10px 18px; border-radius: 6px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); display: inline-flex; gap: 6px; align-items: center; }
.map__note { font-size: 12px; color: var(--muted); background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 4px; margin: 0; }

/* Formularios */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form--compact .form__grid { grid-template-columns: 1fr; }
.form__field { margin: 0 0 16px; display: flex; flex-direction: column; }
.form__field--wide { grid-column: 1 / -1; }
.form label { font-size: 13.5px; font-weight: 600; color: #3a4744; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form select, .form textarea { width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid #cfd8d6; border-radius: 6px; background: var(--white); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,100,85,.12); }
.form textarea { resize: vertical; }
.form .req { color: #b3261e; }
.form__privacy label { font-weight: 400; display: block; font-size: 14px; padding-left: 24px; position: relative; }
.form__privacy input { position: absolute; left: 0; top: 3px; margin: 0; }
.form__legal { font-size: 12px; color: var(--muted); line-height: 1.5; }
.form__notice { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.form__notice--ok { background: #e3f4ec; color: #145c3f; }
.form__notice--error { background: #fbe9e7; color: #8c1d18; }
.form .btn { width: 100%; }
.form:not(.form--compact) .btn { width: auto; }

/* Inmuebles */
.prop-search { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 14px; align-items: end; background: var(--white); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 26px; }
.prop-search label { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; color: var(--muted); gap: 6px; }
.prop-search select, .prop-search input { font: inherit; font-size: 14.5px; padding: 10px 11px; border: 1px solid #cfd8d6; border-radius: 6px; background: var(--white); color: var(--ink); }
.prop-count { color: var(--muted); font-size: 14px; }
.prop-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.prop-card__media { display: block; position: relative; aspect-ratio: 3/2; background: var(--green-light); }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; }
.prop-card__badge { position: absolute; left: 14px; top: 14px; color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; background: var(--accent); }
.prop-card__badge--alquiler { background: #4d6f8a; }
.prop-card__state { position: absolute; right: 14px; top: 14px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.prop-card__count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: var(--white); font-size: 12px; padding: 3px 8px; border-radius: 4px; display: inline-flex; gap: 4px; align-items: center; }
.prop-card__body { padding: 20px; }
.prop-card__price { font-family: var(--serif); font-size: 25px; font-weight: 700; color: var(--green); margin: 0 0 4px; }
.prop-card__title { font-family: var(--font); font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 0 0 4px; }
.prop-card__title a { color: var(--ink); text-decoration: none; }
.prop-card__zone { color: var(--muted); font-size: 14px; margin: 0; }
.prop-card__specs { display: flex; gap: 16px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font-size: 14px; }
.prop-card__specs .icon { color: var(--green); }
.gallery-prop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 26px; }
.gallery-prop__item { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 3/2; }
.gallery-prop__item--main { grid-column: 1 / -1; aspect-ratio: 2/1; }
.gallery-prop__item img { width: 100%; height: 100%; object-fit: cover; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 22px; overflow: hidden; }
.specs div { padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.specs dt { font-size: 12.5px; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.extras { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 26px; }
.extras .icon { color: var(--green); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 999; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 90vh; }

/* 404 */
.notfound { text-align: center; padding: 110px 0; }
.notfound__links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* --- Pie ------------------------------------------------------------------ */
.site-footer { background: linear-gradient(color-mix(in srgb, var(--footer) 80%, transparent), color-mix(in srgb, var(--footer) 94%, transparent)), url("../img/burgos-pie.webp") center bottom / cover no-repeat, var(--footer); color: #b5c6c2; font-size: 14px; padding: 60px 0 26px; position: relative; }
.site-footer a { color: #cfdcd9; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; }
.site-footer__brand p { margin-top: 16px; max-width: 300px; }
.site-footer__title { font-family: var(--font); color: var(--white); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { color: var(--accent); margin-top: 3px; }
.site-footer__kit { border-top: 1px solid #2a3c38; margin-top: 36px; padding-top: 22px; display: flex; align-items: center; gap: 22px; font-size: 12px; }
.site-footer__kit img { max-height: 46px; width: auto; }
.site-footer__kit p { margin: 0; }
.site-footer__legal { border-top: 1px solid #2a3c38; margin-top: 22px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.legal-links { display: flex; gap: 18px; }
.site-footer .legal-links li { margin: 0; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: var(--white); border-radius: 40px; padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); text-decoration: none; font-weight: 600; transition: transform .2s; }
.wa-float:hover { transform: scale(1.05); color: var(--white); }
.wa-float__label { display: none; padding-right: 6px; }
@media (min-width: 900px) { .wa-float { padding: 12px 18px 12px 14px; } .wa-float__label { display: inline; } }
@media (max-width: 960px) { .wa-float { display: none; } }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
	.main-nav .menu { gap: 20px; }
	.prop-search { grid-template-columns: repeat(3, 1fr); }
	.with-aside { grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; }
}
@media (max-width: 960px) {
	.hide-md { display: none; }
	.nav-toggle { display: inline-flex; }
	.main-nav { position: fixed; inset: 118px 0 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 30px; transform: translateX(100%); transition: transform .25s; overflow-y: auto; }
	.admin-bar .main-nav { top: 164px; }
	.nav-open .main-nav { transform: none; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.main-nav .menu { flex-direction: column; gap: 0; }
	.main-nav .menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
	.main-nav__cta { margin-top: 22px; }
	.grid--3, .reviews__grid, .services-grid { grid-template-columns: 1fr 1fr; }
	.service-card--featured { grid-template-columns: 1fr; }
	.service-card--featured .service-card__points { grid-column: 1; grid-row: auto; margin: 6px 0 20px; }
	.contact-block__in { grid-template-columns: 1fr; gap: 34px; }
	.hbtn span { display: none; }
	.hbtn { padding: 10px; }
	.split, .contact { grid-template-columns: 1fr; gap: 34px; }
	.with-aside { grid-template-columns: 1fr; }
	.blog-aside { position: static; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
	.stats__in { grid-template-columns: 1fr 1fr; row-gap: 22px; }
}
@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.topbar__list li:nth-child(2) { display: none; }
	.site-header__in { min-height: 68px; }
	.main-nav { top: 106px; }
	.logo__name { font-size: 27px; }
	.hero__in { padding: 70px 0 80px; }
	.hero__text { font-size: 17px; }
	.section, .reviews { padding: 56px 0; }
	.sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.grid--3, .grid--2, .reviews__grid, .services-grid { grid-template-columns: 1fr; }
	.service-card--featured { grid-column: auto; padding: 28px; }
	.service-card--featured .service-card__title { font-size: 26px; }
	.service-card__points { grid-template-columns: 1fr; }
	.idealista-band__in { flex-direction: column; align-items: flex-start; }
	.hero__actions .btn { width: 100%; }
	.team-strip { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
	.team-mini__photo { width: 110px; height: 110px; }
	.post-card--row { flex-direction: column; gap: 14px; }
	.post-card--row .post-card__media { flex-basis: auto; width: 100%; }
	.cta-band__in { flex-direction: column; align-items: flex-start; }
	.profile { flex-direction: column; align-items: flex-start; gap: 22px; }
	.profile__photo, .profile__img { width: 160px; height: 160px; flex-basis: auto; }
	.form__grid { grid-template-columns: 1fr; }
	.prop-search { grid-template-columns: 1fr 1fr; }
	.site-footer__cols { grid-template-columns: 1fr; }
	.site-footer__kit { flex-direction: column; align-items: flex-start; }
	.prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 1em 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .wa-float, .cta-band, .blog-aside { display: none; } }
