/*
 * Dupica: sistema visual.
 * Un acento (azul del logo #206DA8), neutros fríos, Geist autoalojada, claro/oscuro según el sistema.
 * Radios: botones y etiquetas en píldora, tarjetas 16px, campos 10px.
 */

@font-face {
	font-family: "Geist";
	src: url("../fonts/geist-latin-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #f6f7f9;
	--surface: #fcfcfd;
	--surface-2: #eef2f6;
	--ink: #0e1a28;
	--ink-2: #334357;
	--muted: #556372;
	--line: #dce2e9;
	--accent: #206da8;
	--accent-strong: #175686;
	--accent-soft: #e3edf6;
	--on-accent: #fbfdff;
	--danger: #b42318;
	--shadow: 0 1px 2px rgb(14 26 40 / .05), 0 8px 24px -8px rgb(23 86 134 / .14);
	--shadow-lg: 0 2px 4px rgb(14 26 40 / .04), 0 12px 24px -6px rgb(14 26 40 / .10), 0 32px 64px -16px rgb(23 86 134 / .28);
	--deep: #0a1b2d;
	--deep-2: #0f2740;
	--on-deep: #eef4fa;
	--on-deep-2: #b4c4d6;
	--accent-bright: #5eb0ee;
	--brand-grad: linear-gradient(135deg, #1b5f95 0%, #206da8 45%, #2f86c8 100%);
	--r-pill: 999px;
	--r-card: 16px;
	--r-input: 10px;
	--wrap: 1240px;
	--gutter: 16px;
	--font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ease: cubic-bezier(.16, 1, .3, 1);
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b1119;
		--surface: #111a25;
		--surface-2: #172230;
		--ink: #e8edf3;
		--ink-2: #bdc8d4;
		--muted: #93a0ae;
		--line: #243142;
		--accent: #62a9e6;
		--accent-strong: #8cc2f0;
		--accent-soft: #14283d;
		--on-accent: #06121e;
		--danger: #f97066;
		--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .5);
		--shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 56px -12px rgb(0 0 0 / .6);
		--deep: #07121e;
		--deep-2: #0c1d30;
		--brand-grad: linear-gradient(135deg, #154b76 0%, #1a5c90 50%, #2474b1 100%);
	}
}

@media (min-width: 768px) {
	:root { --gutter: 24px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1rem/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -0.025em; font-weight: 650; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
h3, .h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
h1 em, h2 em { font-style: italic; font-weight: 650; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: var(--r-pill); box-shadow: var(--shadow); }
.muted { color: var(--muted); font-weight: 400; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(720px + 2 * var(--gutter)); }
.wrap--page { max-width: calc(960px + 2 * var(--gutter)); }
.wrap--wide { max-width: calc(1040px + 2 * var(--gutter)); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(32px, 4vw, 48px); }

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	box-shadow: var(--shadow);
}

/* ---------- Botones ---------- */
.btn, .dupica .dupica-btn, .dupica button.dupica-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: 0 22px;
	border: 1px solid var(--accent); border-radius: var(--r-pill);
	background: var(--accent); color: var(--on-accent);
	font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover, .dupica .dupica-btn:hover, .dupica button.dupica-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); box-shadow: 0 6px 18px -6px rgb(32 109 168 / .55); }
.btn:active, .dupica .dupica-btn:active { transform: translateY(1px) scale(.99); }
.btn--ghost, .dupica .dupica-btn--ghost, .dupica button.dupica-btn--ghost { background: transparent; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.btn--ghost:hover, .dupica .dupica-btn--ghost:hover { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--block { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tag {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 12px; border-radius: var(--r-pill);
	background: var(--surface-2); color: var(--ink-2);
	font-size: .8125rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.tag .icon { width: 1.1em; height: 1.1em; }
.tag--accent { background: var(--accent-soft); color: var(--accent-strong); }
.tag--own { background: color-mix(in srgb, #2f855a 14%, transparent); color: color-mix(in srgb, #2f855a 80%, var(--ink)); }
.tag--outline { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ticks .icon { color: var(--accent); margin-top: 2px; }

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

/* ---------- Cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--bg); backdrop-filter: none; } }
.site-header__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { width: 118px; height: auto; }
.nav-toggle { margin-left: auto; }
.nav { display: none; }
.nav-toggle[open] + .nav { display: block; }
.nav-toggle summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); cursor: pointer; color: var(--ink); }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle .i-close, .nav-toggle[open] .i-open { display: none; }
.nav-toggle[open] .i-close { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.site-header__cta { display: none; }

/* Megamenú */
.mm-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); cursor: pointer; }
.mm-toggle .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.mm-item.is-open > .mm-toggle .icon { transform: rotate(180deg); }
.mm-grid { display: grid; gap: 24px 32px; padding-top: 24px; padding-bottom: 28px; }
.mm-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mm-links a { display: block; padding: 5px 0; font-size: .9375rem; color: var(--ink-2); }
.mm-links a:hover { color: var(--accent); }
.mm-links small { display: block; font-size: .8125rem; color: var(--muted); font-weight: 400; }
.mm-more { margin: 12px 0 0; font-size: .875rem; }
.mm-more a { color: var(--accent) !important; font-weight: 600; }
.mm-feature { background: var(--accent-soft); border-radius: var(--r-card); padding: 18px; }
.mm-feature .mm-title { color: var(--accent-strong); font-size: .875rem; letter-spacing: 0; text-transform: none; }
.mm-feature p { margin: 0 0 14px; font-size: .9375rem; color: var(--ink-2); }
.mm-feature .btn { color: var(--on-accent) !important; }
.finder--menu { max-width: none; }
.finder--menu .finder__row { background: var(--surface); }

@media (max-width: 1023px) {
	.nav {
		position: absolute; left: 0; right: 0; top: 68px;
		max-height: calc(100vh - 68px); overflow-y: auto; overscroll-behavior: contain;
		padding: 8px var(--gutter) 24px;
		background: var(--bg); border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -24px rgb(14 26 40 / .25);
	}
	.mm-item { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
	.mm-top { display: block; padding: 13px 0; font-size: 1.0625rem; }
	.mm-toggle { width: 44px; height: 44px; }
	.mm-panel { display: none; grid-column: 1 / -1; }
	.mm-item.is-open > .mm-panel { display: block; }
	.mm-panel .wrap { padding: 0 0 16px; }
	.mm-grid { padding: 4px 0 8px; gap: 20px; }
	.mm-item--pro { border-bottom: 0; }
	.mm-item--pro > .mm-top { color: var(--accent); font-weight: 600; }
}
@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.nav, .nav-toggle[open] + .nav { display: flex; align-items: center; margin-left: 28px; flex: 1; align-self: stretch; }
	.nav { order: 2; }
	.site-header__cta { display: inline-flex; order: 3; }
	.mm { display: flex; align-items: stretch; gap: 4px; height: 100%; flex: 1; }
	.mm-item { display: flex; align-items: center; }
	.mm-top { display: flex; align-items: center; height: 100%; padding: 0 4px 0 10px; font-size: .9375rem; }
	.mm-item:not(.mm-item--has) > .mm-top { padding-right: 10px; }
	.mm-item--pro { margin-left: auto; }
	.mm-item--pro > .mm-top { color: var(--accent); }
	.mm-panel {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--surface); border-bottom: 1px solid var(--line);
		box-shadow: 0 28px 48px -28px rgb(14 26 40 / .35);
		visibility: hidden; opacity: 0; transform: translateY(-4px);
		transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s linear .16s;
	}
	.mm-item--has:hover > .mm-panel, .mm-item.is-open > .mm-panel, .mm-item--has:focus-within > .mm-panel {
		visibility: visible; opacity: 1; transform: none; transition-delay: .08s, .08s, 0s;
	}
	.mm-item--has:hover > .mm-top, .mm-item.is-open > .mm-top { color: var(--ink); }
	.mm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mm-col--wide { grid-column: span 1; }
	.mm-col--2 .mm-links { columns: 2; column-gap: 24px; }
	.mm-col--2 { grid-column: span 1; }
	#mm-inmobiliarias .mm-grid { grid-template-columns: 1.1fr 1.4fr 1.4fr 1fr; }
	#mm-vender .mm-grid { grid-template-columns: 1fr 1.6fr 1fr; }
	#mm-pro .mm-grid { grid-template-columns: minmax(0, 360px); justify-content: end; }
	.mm-more--row { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
	.mm-links a { break-inside: avoid; }
}
@media (min-width: 480px) and (max-width: 1023px) {
	.site-header__cta { display: inline-flex; margin-left: auto; }
	.site-header__cta + .nav-toggle, .nav-toggle { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .mm-panel, .mm-toggle .icon { transition: none !important; } }

/* ---------- Migas ---------- */
.crumbs, .crumbs .rank-math-breadcrumb p { margin: 0 0 16px; font-size: .875rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .separator, .crumbs span[aria-hidden] { margin: 0 4px; opacity: .6; }

/* ---------- Comparativa ---------- */
.compare { background: var(--surface); border-block: 1px solid var(--line); }
.compare__in { max-width: calc(1000px + 2 * var(--gutter)); }
.compare h2 { max-width: 22ch; }
.compare__table { margin-top: 32px; }
.compare__row { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.compare__row--head { display: none; }
.compare__row > [role=rowheader] { font-weight: 650; }
.compare__yes { display: flex; gap: 10px; color: var(--ink); }
.compare__yes .icon { color: var(--accent); margin-top: 2px; }
.compare__no { color: var(--muted); padding-left: 30px; }
@media (min-width: 768px) {
	.compare__row { grid-template-columns: 1fr 1.3fr 1.1fr; gap: 24px; align-items: start; }
	.compare__row--head { display: grid; border-top: 0; padding-bottom: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
	.compare__row--head span:nth-child(2) { color: var(--accent); }
	.compare__no { padding-left: 0; }
}

/* ---------- FAQ ---------- */
.faq__in { max-width: calc(820px + 2 * var(--gutter)); }
.faq__list { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 1.0625rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--accent); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 65ch; }

/* ---------- Blog en la home ---------- */
.journal__grid { display: grid; gap: 24px; margin-top: 24px; }
.post-lead { display: grid; gap: 10px; color: var(--ink); text-decoration: none; }
.post-lead img { border-radius: var(--r-card); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-lead h3 { margin: 8px 0 0; font-size: 1.375rem; }
.post-lead p { color: var(--muted); margin: 0; }
.post-lead:hover h3 { color: var(--accent); }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.post-list a:hover { color: var(--accent); }
.post-list .icon { color: var(--muted); }
@media (min-width: 1024px) { .journal__grid { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; } }

/* ---------- Cabeceras de página ---------- */
.page-head { padding-block: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 32px); }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { margin: 0; }
.page-head__in { display: grid; gap: 24px; }
@media (min-width: 1024px) {
	.page-head--split .page-head__in { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: end; }
}
.cta-card { padding: 22px; }
.cta-card__title, .contact-card__title { margin: 0 0 6px; font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; }
.cta-card p:not(.cta-card__title):not(.cta-card__note) { color: var(--muted); font-size: .9375rem; }
.cta-card__note { display: flex; gap: 8px; margin: 14px 0 0; font-size: .8125rem; color: var(--muted); }
.cta-card__note .icon { margin-top: 1px; }

/* ---------- Listados ---------- */
.agency-list { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 900px) { .agency-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.agency {
	position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center;
	padding: 14px 16px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
	transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.agency:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.agency--paid { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.agency__body { min-width: 0; }
.agency__name { margin: 0; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; }
.agency__name a { color: var(--ink); text-decoration: none; }
.agency__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.agency__meta { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; color: var(--muted); font-size: .875rem; }
.agency__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agency__meta .icon { width: 1em; height: 1em; }
.agency .tag { grid-column: 2; justify-self: start; }
.agency__go { color: var(--muted); grid-column: 3; grid-row: 1; transition: transform .25s var(--ease), color .2s; }
.agency:hover .agency__go { color: var(--accent); transform: translateX(3px); }
@media (min-width: 560px) {
	.agency { grid-template-columns: 48px minmax(0, 1fr) auto auto; }
	.agency .tag { grid-column: 3; }
	.agency__go { grid-column: 4; }
}
.mark {
	display: grid; place-items: center; width: 48px; height: 48px; flex: none;
	border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong);
	font-size: 1.25rem; font-weight: 650; overflow: hidden;
}
.mark .icon { width: 22px; height: 22px; }
.mark--logo { background: #fff; border: 1px solid var(--line); }
.mark--logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.inline-cta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
	padding: 16px 20px; border-radius: var(--r-card);
	background: var(--accent-soft); color: var(--ink-2);
}
.agency-list .inline-cta { grid-column: 1 / -1; }
.inline-cta > .icon { width: 28px; height: 28px; color: var(--accent); }
.inline-cta p { flex: 1 1 260px; margin: 0; }
.inline-cta--block { margin-block: 40px; }

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 16px; }
.link-grid a {
	display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
	padding: 10px 14px; border-radius: var(--r-input);
	background: var(--surface); border: 1px solid var(--line);
	color: var(--ink); text-decoration: none; font-weight: 500;
}
.link-grid a:hover { border-color: var(--accent); color: var(--accent); }
.link-grid small { color: var(--muted); font-variant-numeric: tabular-nums; }

.regions { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 20px; }
.region h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.region h3 a { color: var(--ink); text-decoration: none; }
.region h3 small { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.region ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.region li a { color: var(--ink-2); text-decoration: none; }
.region li a:hover { color: var(--accent); text-decoration: underline; }

.pager ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 32px 0 0; padding: 0; }
.pager a, .pager span {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
	color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pager .dots { border: 0; background: none; }

.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 16px; }
.empty > .icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 48ch; }

/* ---------- Ficha ---------- */
.ficha-head { display: flex; gap: 20px; align-items: center; }
.ficha-head .mark { width: 76px; height: 76px; border-radius: 18px; font-size: 2rem; }
.ficha-head h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); margin-bottom: 8px; }
.ficha-head__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0; color: var(--muted); }
.ficha-head__meta > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.ficha-head__meta a { color: var(--ink-2); }
.ficha { display: grid; gap: 32px; padding-bottom: 24px; }
.ficha__side { display: grid; gap: 20px; align-content: start; }
.ficha__side .card { padding: 22px; display: grid; gap: 10px; }
.contact-card dl { margin: 8px 0 0; display: grid; gap: 12px; }
.contact-card dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.contact-card dd { margin: 2px 0 0; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
	.ficha { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
	.ficha__side { position: sticky; top: 92px; }
}

/* ---------- Texto ---------- */
.prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.prose > * { max-width: 72ch; }
.prose--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-card); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article__meta { color: var(--muted); margin: 0; }
.article__cover { margin: 8px auto 40px; }
.article__cover img { border-radius: var(--r-card); width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

.posts { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { display: grid; gap: 14px; align-content: start; }
.post-card__media { display: block; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__meta { margin: 0; color: var(--muted); font-size: .8125rem; }
.post-card__title { font-size: 1.25rem; margin: 4px 0 8px; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--accent); }
.post-card__body p:last-child { color: var(--muted); margin: 0; }
@media (min-width: 1024px) {
	.posts .post-card:first-child { grid-column: 1 / -1; }
	.posts .post-card:first-child:has(.post-card__media) { grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
	.posts .post-card:first-child .post-card__title { font-size: 1.75rem; }
}

/* ---------- Valoración ---------- */
.val-band { padding-block: clamp(56px, 8vw, 96px); background: var(--surface); border-top: 1px solid var(--line); }
.val-band__in { display: grid; gap: 32px; align-items: start; }
.val-band__copy p { color: var(--ink-2); max-width: 46ch; }
.val-band__form { padding: 22px; }
@media (min-width: 1024px) {
	.val-band__in { grid-template-columns: 1fr 1.1fr; gap: 72px; }
	.val-band__copy { position: sticky; top: 100px; }
}

/* ---------- Pie ---------- */
.site-footer { padding-block: 56px 28px; border-top: 1px solid var(--line); font-size: .9375rem; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__brand p { color: var(--muted); max-width: 38ch; margin-top: 16px; }
.site-footer h2 { font-size: .9375rem; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 900px) {
	.site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
	.site-footer__brand { grid-column: auto; }
}

/* ============================================================
 * Componentes del plugin Dupica Fichas con los tokens del tema.
 * ============================================================ */
.dupica {
	--d-primary: var(--accent);
	--d-primary-dark: var(--accent-strong);
	--d-ink: var(--ink);
	--d-muted: var(--muted);
	--d-soft: var(--surface-2);
	--d-line: var(--line);
	--d-gold: var(--accent-strong);
	--d-gold-soft: var(--accent-soft);
	--d-green: var(--accent-strong);
	--d-green-soft: var(--accent-soft);
	--d-red: var(--danger);
	--d-surface: var(--surface);
	--d-on-primary: var(--on-accent);
	--d-selected: var(--accent-soft);
	--d-alert-soft: color-mix(in srgb, var(--danger) 12%, var(--surface));
	--d-unverified-line: var(--line);
	--d-unverified-bg: var(--surface);
	--d-stripe: var(--surface-2);
	--d-stripe-alt: var(--surface-2);
	--d-dark: var(--accent-soft);
	--d-on-dark: var(--ink);
	--d-accent-on-dark: var(--accent);
	--d-agency-ink: var(--ink);
	--d-gold-line: var(--accent);
	--d-top-bg: var(--accent-soft);
	--d-top-ink: var(--accent-strong);
	--d-unverified-ink: var(--ink-2);
	--d-star-off: var(--line);
	font-family: var(--font) !important;
	color: var(--ink);
}
.dupica .dupica-card, .dupica .dupica-unverified { border-radius: var(--r-card); }
.dupica .dupica-unverified { border-width: 1px; padding: 20px 22px; margin: 24px 0; }
.dupica .dupica-badge--unverified { background: var(--surface-2); }
.dupica .dupica-badge { border-radius: var(--r-pill); }
.dupica input[type=text], .dupica input[type=email], .dupica input[type=tel], .dupica input[type=url], .dupica input[type=number], .dupica input[type=search], .dupica select, .dupica textarea {
	border-radius: var(--r-input); background: var(--bg); min-height: 46px; font-family: var(--font);
}
.dupica input::placeholder, .dupica textarea::placeholder { color: var(--muted); opacity: 1; }
.dupica label { color: var(--ink-2); }
.ficha-extra, .ficha .dupica { max-width: none; }
.tops-wrap .dupica-tops { max-width: none; margin: 0; }
.tops-wrap { padding-bottom: 8px; }
.dupica .dupica-top-card, .dupica .dupica-tops-note { border-radius: var(--r-card); }
.dupica .dupica-tops-head { display: block; margin-bottom: 14px; }
.dupica .dupica-tops-head h2 { font-size: 1.25rem; margin: 0 0 2px; letter-spacing: -0.015em; }
.dupica .dupica-tops-note strong { color: var(--ink); }

/* Valorador dentro de tarjetas */
.card .dupica-val { max-width: none; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.dupica-val .dv-tile span { border-width: 1px; border-radius: var(--r-input); background: var(--bg); }
.dupica-val legend, .dupica-val .dv-title { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.dupica-val .dv-nav .dupica-btn { min-height: 46px; }
.hero__form .dupica-val .dv-foot { font-size: .8125rem; }
.ficha__main .dupica-tops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dupica .dupica-top-card .dupica-btn { white-space: normal; text-align: center; min-height: 44px; }
.dupica .dupica-check label { display: block; font-weight: 400; font-size: .9375rem; }
.dupica .dupica-check input { margin: 0 8px 0 0; vertical-align: -2px; }
.card .dv-tiles:not(.dv-tiles--num) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand picture, .site-footer__brand picture { display: block; }


/* ============================================================
 * Capa premium: superficie de marca, fotografía y movimiento.
 * ============================================================ */

/* Superficie azul marino de marca (cabecera de home/planes y pie) */
.deep {
	position: relative; isolation: isolate; overflow: hidden;
	background: radial-gradient(120% 90% at 85% 0%, var(--deep-2) 0%, var(--deep) 60%);
	color: var(--on-deep);
	--ink: var(--on-deep); --ink-2: var(--on-deep-2); --muted: var(--on-deep-2);
}
.deep h1, .deep h2, .deep h3 { color: var(--on-deep); }
.deep h1 em, .deep h2 em { color: var(--accent-bright); }
.deep .crumbs, .deep .crumbs a { color: var(--on-deep-2); }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -1; pointer-events: none; }
.aurora::before, .aurora::after {
	content: ""; position: absolute; border-radius: 50%;
	background: radial-gradient(closest-side, rgb(47 134 200 / .45), transparent 70%);
	width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
}
.aurora::before { top: -10%; right: -8%; }
.aurora::after { bottom: 5%; left: -15%; background: radial-gradient(closest-side, rgb(32 109 168 / .30), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
	.aurora::before { animation: drift 18s var(--ease) infinite alternate; }
	.aurora::after { animation: drift 24s var(--ease) infinite alternate-reverse; }
	@keyframes drift { to { transform: translate3d(-6%, 8%, 0) scale(1.08); } }
}
.deep::after { /* grano fino fijo, sin repintar al hacer scroll */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgb(255 255 255 / .025) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .025) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent);
}

.btn--light { background: var(--on-deep); border-color: var(--on-deep); color: #0b2540; }
.btn--light:hover { background: #fff; border-color: #fff; color: #0b2540; box-shadow: 0 10px 28px -8px rgb(94 176 238 / .6); }
.btn--outline-light { background: transparent; border-color: rgb(238 244 250 / .35); color: var(--on-deep); }
.btn--outline-light:hover { background: rgb(238 244 250 / .08); border-color: var(--on-deep); color: var(--on-deep); box-shadow: none; }
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none; }
.btn { position: relative; overflow: hidden; }
.btn:hover::after { transform: translateX(120%); }

.card--float { box-shadow: var(--shadow-lg); }
.trust-chip {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
	padding: 6px 14px 6px 10px; border-radius: var(--r-pill);
	background: rgb(238 244 250 / .08); border: 1px solid rgb(238 244 250 / .14);
	color: var(--on-deep); font-size: .875rem; font-weight: 500;
}
.trust-chip .icon { color: var(--accent-bright); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(48px, 6vw, 88px); }
.hero--home { padding-bottom: 0; }
.hero__in { display: grid; gap: 40px; align-items: center; }
.hero__copy h1 { max-width: 22ch; font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); line-height: 1.06; }
.hero--service .hero__copy h1 { max-width: 18ch; }
.hero__copy .lead { margin-bottom: 28px; }
.deep .lead { color: var(--on-deep-2); }
.hero__visual { position: relative; }
.hero__photo { display: none; }
.hero__form { padding: 22px; color: var(--ink); }
.hero__form-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.0625rem; font-weight: 650; }
.hero__form-title .icon { color: var(--accent); }
.deep .hero__form, .deep .card { --ink: #0e1a28; --ink-2: #334357; --muted: #556372; color: var(--ink); }
@media (prefers-color-scheme: dark) { .deep .hero__form, .deep .card { --ink: #e8edf3; --ink-2: #bdc8d4; --muted: #93a0ae; } }
@media (min-width: 1024px) {
	.hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
	.hero--service .hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
	.hero--home .hero__visual { min-height: 620px; display: grid; align-items: end; }
	.hero__photo { display: block; position: absolute; inset: 0 0 72px 32%; border-radius: 22px; overflow: hidden; background: var(--deep-2); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); }
	.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 45%, rgb(10 27 45 / .55)); }
	.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
	.hero__visual .hero__form { position: relative; width: min(100%, 420px); }
}
@media (prefers-reduced-motion: no-preference) {
	.hero__copy > *, .hero__form, .plans-preview { animation: rise .8s var(--ease) both; }
	.hero__copy > :nth-child(2) { animation-delay: .07s; }
	.hero__copy > :nth-child(3) { animation-delay: .14s; }
	.hero__copy > :nth-child(4) { animation-delay: .21s; }
	.hero__form, .plans-preview { animation-delay: .25s; }
	.hero__photo { animation: photo-in 1.4s var(--ease) both; }
	.hero__photo img { animation: photo-zoom 2.4s var(--ease) both; }
	@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
	@keyframes photo-in { from { opacity: 0; transform: translateY(24px); clip-path: inset(8% 0 0 0 round 22px); } }
	@keyframes photo-zoom { from { transform: scale(1.12); } }
}

/* Buscador */
.finder { position: relative; max-width: 520px; }
.finder label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.finder__row {
	display: flex; align-items: center; gap: 8px;
	padding: 6px 6px 6px 16px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.finder__row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.finder__row > .icon { color: var(--muted); }
.finder input[type=search] { flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; }
.finder input[type=search]:focus { outline: none; }
.finder input::placeholder { color: var(--muted); }
.finder .btn { min-height: 40px; }
.finder--deep .finder__row { background: rgb(238 244 250 / .07); border-color: rgb(238 244 250 / .18); backdrop-filter: blur(8px); }
.finder--deep .finder__row:focus-within { border-color: var(--accent-bright); box-shadow: 0 0 0 4px rgb(94 176 238 / .18); background: rgb(238 244 250 / .1); }
.finder__list {
	position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
	margin: 0; padding: 6px; list-style: none;
	background: #fcfcfd; border: 1px solid #dce2e9; border-radius: var(--r-card); box-shadow: var(--shadow-lg);
}
.finder__list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-input); color: #0e1a28; text-decoration: none; }
.finder__list a small { color: #556372; }
.finder__list a:hover, .finder__list [aria-selected=true] a { background: #e3edf6; }
.finder--inline { margin: 24px auto; }

/* Cifras (dentro de la banda de marca) */
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgb(238 244 250 / .12); }
.proof p { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 24px 16px 32px 0; color: var(--on-deep-2); font-size: .9375rem; }
.proof strong { color: var(--on-deep); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
@media (min-width: 768px) {
	.proof { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.proof p + p { padding-left: 28px; border-left: 1px solid rgb(238 244 250 / .12); }
}

/* Cómo funciona */
.how__in { display: grid; gap: 40px; align-items: center; }
.how__media { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.how__media img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 8px 0 32px; padding: 0; display: grid; gap: 26px; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--accent), var(--accent-soft)); border-radius: 2px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; position: relative; }
.steps__n {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill);
	background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums;
	box-shadow: 0 0 0 6px var(--bg);
}
.steps h3 { margin: 8px 0 4px; font-size: 1.125rem; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 1024px) { .how__in { grid-template-columns: 1.05fr 1fr; gap: 80px; } }

/* Ciudades con foto */
.cities__grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0; }
.city {
	position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
	min-height: 150px; padding: 18px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
	color: var(--ink); text-decoration: none;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.city > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.city--photo { border: 0; color: #fff; }
.city--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 27 45 / 0) 35%, rgb(10 27 45 / .82)); }
.city:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.city--photo:hover { color: #fff; }
.city:hover > img { transform: scale(1.06); }
.city__name { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.02em; }
.city__count { color: var(--muted); font-size: .875rem; }
.city__count strong { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.city--photo .city__count, .city--photo .city__count strong { color: rgb(255 255 255 / .82); }
.city__go { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; padding: 8px; border-radius: var(--r-pill); background: rgb(255 255 255 / .9); color: #0e1a28; transition: transform .35s var(--ease); }
.city:hover .city__go { transform: rotate(45deg); }
.city--lead { grid-column: span 2; min-height: 260px; }
.city--lead:not(.city--photo) { background: var(--brand-grad); color: #fff; border: 0; }
.city--lead .city__name { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
@media (min-width: 768px) {
	.cities__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; }
	.city--lead { grid-row: span 2; min-height: 0; }
}
.pills { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.pill {
	flex: none; scroll-snap-align: start;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line);
	background: var(--surface); color: var(--ink-2); font-size: .9375rem; text-decoration: none; white-space: nowrap;
	transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.pill--more { color: var(--accent); font-weight: 600; }
@media (min-width: 1024px) { .pills { flex-wrap: wrap; overflow: visible; } }

/* Comparativa: columna Dupica destacada */
.compare { background: transparent; border: 0; }
.compare__table { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 8px 24px; box-shadow: var(--shadow); }
@media (min-width: 768px) {
	.compare__table { position: relative; padding: 8px 32px; }
	.compare__table::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(32px + (100% - 64px) * 0.294 - 12px); width: calc((100% - 64px) * 0.382 + 12px); background: linear-gradient(180deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, transparent)); z-index: 0; }
	.compare__row { position: relative; z-index: 1; }
}

/* Banda de marca (bloques de color) */
.brand-band { position: relative; isolation: isolate; overflow: hidden; background: var(--brand-grad); color: #fff; border-radius: 26px; }
.brand-band::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / .18), transparent 70%); z-index: -1; }
.brand-band h2, .brand-band h3 { color: #fff; }
.brand-band p { color: rgb(255 255 255 / .85); }
.brand-band .eyebrow { color: rgb(255 255 255 / .75); }
.brand-band .btn--light { color: #0b2540; }
.pros__in { display: grid; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 64px); }
.pros h2 { max-width: 18ch; }
.pros__copy > p:not(.eyebrow) { max-width: 52ch; margin-bottom: 28px; }
.pros__media { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45); transform: rotate(1.5deg); }
.pros__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .pros__in { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(28px, 5vw, 56px); }
.cta-band h2 { margin: 0; max-width: 22ch; }

.section--flush-top { padding-top: 0; }
.section--pull { padding-top: 0; margin-top: clamp(-120px, -8vw, -64px); position: relative; z-index: 2; }
.post-lead__media { display: block; border-radius: 18px; overflow: hidden; }
.post-lead__media img { transition: transform .6s var(--ease); }
.post-lead:hover .post-lead__media img { transform: scale(1.04); }
.agency:hover, .link-grid a:hover { transform: translateY(-2px); }
.link-grid a { transition: border-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.link-grid a:hover { box-shadow: var(--shadow); }

/* Cabeceras de listados con brillo de marca */
.page-head { position: relative; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: radial-gradient(70% 90% at 90% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); pointer-events: none; }
.ficha-head .mark { background: var(--brand-grad); color: #fff; box-shadow: 0 12px 28px -10px rgb(32 109 168 / .6); }

/* Pie en la superficie de marca */
.site-footer { background: var(--deep); color: var(--on-deep-2); border-top: 0; }
.site-footer h2 { color: var(--on-deep); }
.site-footer a { color: var(--on-deep-2); }
.site-footer a:hover { color: #fff; }
.site-footer__brand p { color: var(--on-deep-2); }
.site-footer__legal { border-top-color: rgb(238 244 250 / .1); color: var(--on-deep-2); }
.site-footer__brand img { content: url("../img/logo-dupica-blanco.svg"); }

/* ---------- Planes ---------- */
.hero--plans { padding-bottom: clamp(140px, 14vw, 200px); }
.hero--plans .actions { margin-top: 8px; }
.plans-preview { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.plans-preview__card { padding: 22px; display: grid; gap: 16px; justify-items: start; transform: rotate(-2deg); }
.plans-preview__row { display: flex; gap: 14px; align-items: center; }
.plans-preview__row .mark { background: var(--brand-grad); color: #fff; }
.plans-preview__row strong { display: block; font-size: 1.0625rem; }
.plans-preview__row span:not(.mark) { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .875rem; }
.plans-preview__slots { position: relative; margin: -14px 0 0 auto; width: max-content; max-width: 90%; padding: 12px 18px; border-radius: 16px; background: var(--brand-grad); color: #fff; transform: rotate(2deg); box-shadow: var(--shadow-lg); display: grid; }
.plans-preview__slots strong { font-size: 1.5rem; letter-spacing: -0.03em; }
.plans-preview__slots span { font-size: .875rem; color: rgb(255 255 255 / .85); }
.billing { display: inline-flex; margin: 0 auto 28px; padding: 5px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; left: 50%; transform: translateX(-50%); }
.billing button { border: 0; background: none; font: 600 .9375rem var(--font); color: var(--ink-2); padding: 10px 18px; border-radius: var(--r-pill); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background-color .25s var(--ease), color .25s; }
.billing button span { font-size: .75rem; font-weight: 600; color: var(--accent-strong); background: var(--accent-soft); padding: 2px 8px; border-radius: var(--r-pill); }
.billing [aria-checked=true] { background: var(--accent); color: var(--on-accent); }
.billing [aria-checked=true] span { background: rgb(255 255 255 / .2); color: var(--on-accent); }
.plans { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.plan {
	position: relative; display: grid; gap: 8px; padding: 28px 26px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
	scroll-margin-top: 100px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-4px); }
.plan__name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
.plan__name .icon { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.plan__pitch { margin: 0 0 8px; color: var(--muted); font-size: .9375rem; min-height: 3em; }
.plan__price { margin: 0; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan__price.is-swapping { animation: price-swap .45s var(--ease); }
@keyframes price-swap { 0% { opacity: 0; transform: translateY(8px); } }
.plan__note { margin: 0 0 14px; color: var(--muted); font-size: .8125rem; }
.plan__list { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .9375rem; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); }
.plan__list .icon { color: var(--accent); margin-top: 2px; width: 18px; height: 18px; }
.plan--featured { background: var(--brand-grad); border: 0; color: #fff; --ink: #fff; --ink-2: rgb(255 255 255 / .88); --muted: rgb(255 255 255 / .78); }
@media (min-width: 900px) { .plan--featured { transform: translateY(-14px); } .plan--featured:hover { transform: translateY(-18px); } }
.plan--featured .plan__name .icon { background: rgb(255 255 255 / .16); color: #fff; }
.plan--featured .plan__list { border-top-color: rgb(255 255 255 / .2); }
.plan--featured .plan__list .icon { color: #fff; }
.plan--featured .btn { background: #fff; border-color: #fff; color: #0b2540; }
.plan--featured .btn:hover { background: var(--on-deep); color: #0b2540; }
.plan__flag { position: absolute; top: 18px; right: 18px; padding: 4px 12px; border-radius: var(--r-pill); background: rgb(255 255 255 / .18); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.plan--top_provincia .plan__name .icon { background: var(--deep); color: var(--accent-bright); }
.plan.is-selected { outline: 3px solid var(--accent-bright); outline-offset: 4px; }
.free-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 24px; padding: 22px 26px; border-radius: 22px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--surface); }
.free-row p { margin: 0; color: var(--muted); max-width: 64ch; }
.free-row .free-row__title { color: var(--ink); font-weight: 650; font-size: 1.0625rem; margin-bottom: 4px; }
.gains__grid { display: grid; gap: 14px; margin-top: 24px; }
.gain { display: grid; align-content: start; gap: 8px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.gain > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.gain h3 { margin: 0; }
.gain p { margin: 0; color: var(--muted); }
.gain--accent { background: var(--brand-grad); border: 0; }
.gain--accent h3 { color: #fff; }
.gain--accent p { color: rgb(255 255 255 / .85); }
.gain--accent > .icon { background: rgb(255 255 255 / .16); color: #fff; }
.gain--photo { position: relative; isolation: isolate; overflow: hidden; padding: 0; min-height: 340px; align-content: end; border: 0; }
.gain--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.gain--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgb(10 27 45 / .85)); }
.gain--photo .gain__body { padding: 26px; }
.gain--photo h3 { color: #fff; font-size: 1.5rem; }
.gain--photo p { color: rgb(255 255 255 / .85); }
@media (min-width: 900px) {
	.gains__grid { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; }
	.gain--photo { grid-row: span 2; }
	.gains__grid .gain:nth-child(4) { grid-column: 2 / span 2; }
}
.timeline { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 24px; counter-reset: t; }
.timeline li { position: relative; display: grid; gap: 6px; }
.timeline h3 { margin: 10px 0 0; font-size: 1.0625rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .9375rem; }
@media (min-width: 900px) {
	.timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
	.timeline li::before { content: ""; position: absolute; top: 21px; left: 56px; right: -20px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
	.timeline li:last-child::before { display: none; }
}
.dupica-showcase h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }

/* ---------- Aparición al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
	.js [data-reveal].is-in { opacity: 1; transform: none; }
	.js .plan--featured[data-reveal].is-in { transform: translateY(-14px); }
	@media (max-width: 899px) { .js .plan--featured[data-reveal].is-in { transform: none; } }
}

/* ---------- Servicios ---------- */
.hero--service .ticks li, .hero--hub .ticks li { color: var(--on-deep-2); }
.hero--service .ticks .icon { color: var(--accent-bright); }
.hero--service .hero__in, .hero--hub .hero__in { align-items: start; }
@media (min-width: 1024px) { .hero--service .hero__copy, .hero--hub .hero__copy { padding-top: 24px; } }
.hero--service { padding-bottom: 0; }
.hero--service:not(:has(.proof)) { padding-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 768px) { .proof--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.link-grid a > .icon { width: 16px; height: 16px; color: var(--muted); align-self: center; transition: transform .25s var(--ease), color .2s; }
.link-grid a:hover > .icon { color: var(--accent); transform: translateX(3px); }
.link-grid--wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; position: sticky; top: 76px; z-index: 5; padding: 8px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.az a { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.az a:hover { border-color: var(--accent); color: var(--accent); }
.az__group { scroll-margin-top: 140px; margin-bottom: 28px; }
.az__letter { font-size: 1.5rem; margin: 0 0 4px; color: var(--accent); }

/* ---------- Páginas de las inmobiliarias (alta, reclamación, panel) ---------- */
.hero--agency { padding-bottom: clamp(120px, 12vw, 160px); }
.hero--agency h1 { max-width: 22ch; }
.agency-page { position: relative; z-index: 2; margin-top: clamp(-110px, -9vw, -80px); padding-bottom: clamp(48px, 6vw, 88px); display: grid; gap: 28px; align-items: start; }
.agency-page__main { padding: clamp(22px, 3vw, 36px); min-width: 0; }
.agency-page__main .dupica { max-width: none; margin: 0; }
.agency-page__main .dupica > h2:first-child { margin-top: 0; }
.agency-page__main fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.agency-page__main legend { font-weight: 650; font-size: 1.0625rem; margin-bottom: 8px; color: var(--ink); }
.agency-page__side { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.agency-page__side-title { font-weight: 650; font-size: 1.0625rem; margin: 0 0 14px; }
.agency-page__side .ticks .icon { width: 22px; height: 22px; }
.agency-page__alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.agency-page__alt p { margin: 0 0 10px; }
@media (min-width: 1024px) {
	.agency-page--side { grid-template-columns: minmax(0, 1fr) 340px; }
	.agency-page--side .agency-page__side { margin-top: 110px; position: sticky; top: 100px; }
	.agency-page:not(.agency-page--side):not(.agency-page--wide) { max-width: calc(900px + 2 * var(--gutter)); }
}
/* Panel de la inmobiliaria: a todo el ancho, en columnas. */
.agency-page--wide .dupica-panel .dupica-card { margin: 0 0 24px; }
.agency-page--wide .dupica-upgrade { scroll-margin-top: 100px; }
.agency-page--wide .dupica-upgrade .dupica-plans { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dupica-panel-cols { display: grid; gap: 0 28px; align-items: start; }
.dupica-panel-col { min-width: 0; }
@media (min-width: 1024px) {
	.dupica-panel-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.agency-page--wide .dupica-panel .dupica-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dupica .dupica-signup-cta { display: grid; gap: 6px; justify-items: start; margin-top: 24px; background: var(--accent-soft); border: 0; }
.dupica .dupica-signup-cta span { color: var(--ink-2); }
.dupica .dupica-signup-cta .dupica-btn { margin-top: 8px; }
.dupica .dupica-dupes { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.dupica .dupica-results { list-style: none; padding: 0; display: grid; gap: 6px; }
.dupica .dupica-results a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-input); border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: var(--ink); }
.dupica .dupica-results a:hover { border-color: var(--accent); }
.dupica .dupica-results span { color: var(--muted); }
.pros__alt, .hero__alt { margin: 18px 0 0; font-size: .9375rem; color: rgb(255 255 255 / .8); }
.pros__alt a, .hero__alt a { color: #fff; font-weight: 600; }
.hero__alt { color: var(--on-deep-2); }
.free-row .actions { flex-wrap: wrap; }
.dupica label small { display: inline; font-weight: 400; }

/* ---------- Valoraciones ---------- */
.agency__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; font-size: .8125rem; color: var(--muted); }
.agency__rating strong { color: var(--ink); font-weight: 650; }
.agency { grid-template-rows: auto; }
.ficha-head__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; }
.ficha-head__rating .dupica-stars { font-size: 1.15rem; }
.ficha-head__rating strong { color: var(--ink); }
.ficha-head__rating:hover span { text-decoration: underline; }
.ficha-head__rating .icon { color: var(--d-star, #f2a91a); }
.ranking-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; text-decoration: none; }
.ranking-link .icon:first-child { color: #f2a91a; }
.actions--links { gap: 8px 28px; }
.dupica-reviews h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.dupica-reviews .dupica-review { transition: border-color .2s, box-shadow .25s var(--ease); }
.dupica-reviews .dupica-review:hover { box-shadow: var(--shadow); }
.dupica-reviews__summary { box-shadow: var(--shadow); }

/* Ranking */
.hero--ranking h1 { max-width: 20ch; }
.hero--ranking .lead strong { color: var(--on-deep); }
.ranking__how { margin-bottom: 20px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ranking__how summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.ranking__how p { margin: 12px 0 0; color: var(--muted); max-width: 80ch; }
.ranking__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rank-item { display: grid; grid-template-columns: 36px 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.rank-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rank-item--paid { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.rank-item__pos { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--deep); color: var(--on-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-item:nth-child(-n+3):not(.rank-item--paid) .rank-item__pos { background: #f2a91a; color: #1c1300; }
.rank-item__name { font-size: 1.1875rem; margin: 2px 0 6px; }
.rank-item__name a { color: var(--ink); text-decoration: none; }
.rank-item__name a:hover { color: var(--accent); }
.rank-item__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .9375rem; }
.rank-item__rating strong { color: var(--ink); }
.rank-item__quote { margin: 12px 0 0; padding: 0 0 0 14px; border-left: 3px solid var(--accent-soft); color: var(--ink-2); font-size: .9375rem; }
.rank-item__quote cite { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: .8125rem; }
.rank-item__cta { grid-column: 3; justify-self: start; }
@media (min-width: 768px) {
	.rank-item { grid-template-columns: 40px 56px minmax(0, 1fr) auto; align-items: center; }
	.rank-item__cta { grid-column: 4; }
	.rank-item .mark { width: 56px; height: 56px; }
}
.ranking__foot { margin-top: 28px; }

/* ---------- Imágenes de los municipios ---------- */

.cta-stack { position: relative; display: grid; align-self: stretch; align-content: end; }
.cta-stack--photo { min-height: 300px; }
.cta-stack__photo { position: absolute; inset: 0 0 90px 0; border-radius: 22px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.cta-stack__photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-stack--photo .cta-card { position: relative; margin: 0 16px; }
@media (prefers-reduced-motion: no-preference) {
	.cta-stack__photo img { animation: photo-zoom 2.4s var(--ease) both; }
}
@media (min-width: 1024px) {
	.page-head--split .page-head__in:has(.cta-stack--photo) { align-items: stretch; }
	.cta-stack--photo { min-height: 380px; }
}
.cta-card--media { overflow: hidden; }
.cta-card__photo { margin: -22px -22px 6px; aspect-ratio: 16 / 10; overflow: hidden; }
.cta-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.town-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.town { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface-2); color: #fff; text-decoration: none; isolation: isolate; }
.town img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.town::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgb(10 27 45 / .8)); }
.town span { position: absolute; left: 12px; right: 12px; bottom: 10px; font-weight: 650; line-height: 1.2; }
.town:hover { color: #fff; }
.town:hover img { transform: scale(1.06); }
.hero__media { margin: 28px 0 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .55); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .hero__media img { animation: photo-zoom 2.4s var(--ease) both; } }

/* ---------- Calculadoras ---------- */
.calc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.calc { display: grid; gap: 24px; padding: clamp(18px, 3vw, 28px); }
.calc__fields { display: grid; gap: 16px; align-content: start; }
.calc-field label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.calc-field small { display: block; margin-top: 5px; font-size: .8125rem; color: var(--muted); }
.calc-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--surface); }
.calc-input:focus-within, .calc-field select:focus, .calc-field input[list]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.calc-input input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.calc-input input:focus { outline: none; }
.calc-input span { padding: 0 12px; color: var(--muted); font-size: .9375rem; }
.calc-field select, .calc-field input[list] { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--surface); color: var(--ink); font: inherit; }
.calc-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.calc-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.calc__result { align-self: start; padding: 22px; border-radius: var(--r-card); background: var(--accent-soft); min-height: 200px; }
.calc-head__label { margin: 0; font-size: .875rem; font-weight: 600; color: var(--accent-strong); }
.calc-big { margin: 4px 0 2px; font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-sub { margin: 0 0 14px; color: var(--ink-2); font-size: .9375rem; }
.calc-warn { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-input); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); font-size: .875rem; }
.calc-bars { display: grid; gap: 8px; margin: 0 0 16px; }
.calc-bar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: .8125rem; color: var(--ink-2); }
.calc-bar i { display: block; height: 10px; border-radius: 99px; background: var(--accent); transition: width .3s var(--ease); }
.calc-bar.is-alt i { background: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.calc-bar b { font-variant-numeric: tabular-nums; color: var(--ink); }
.calc-rows { margin: 0 0 14px; }
.calc-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); font-size: .9375rem; }
.calc-rows dt { color: var(--ink-2); }
.calc-rows dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.calc-rows .is-strong dt, .calc-rows .is-strong dd { color: var(--ink); font-weight: 700; }
.calc-note { margin: 0 0 14px; font-size: .8125rem; color: var(--muted); }
.calc-body { padding-top: 0; }
.calc-disclaimer { font-size: .875rem; margin-top: 24px; }
.table-wrap { overflow-x: auto; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.calc-table th, .calc-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.calc-table thead th { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.calc-table tr.is-current { background: var(--accent-soft); }
.calc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 16px 0; }
.calc-card { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.calc-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.calc-card .icon { width: 26px; height: 26px; color: var(--accent); }
.calc-card span { font-size: .875rem; color: var(--muted); }
.calc-regions { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.calc-regions a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9375rem; }
.calc-regions a:hover { border-color: var(--accent); }
.calc-regions span { color: var(--muted); }
@media (min-width: 720px) { .calc__fields { grid-template-columns: 1fr 1fr; } .calc-check { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
	.calc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	.calc__result { position: sticky; top: 88px; }
}

/* ============================================================
 * dupica.com (mercado us): selector de idioma, home y agentes.
 * ============================================================ */

/* Selector de idioma */
.lang-sw ul { display: flex; list-style: none; margin: 0; padding: 0; }
.lang-sw a { text-decoration: none; }
.lang-sw--header { margin-left: auto; }
.lang-sw--header + .nav-toggle { margin-left: 0; }
.lang-sw--header ul { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.lang-sw--header a { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: var(--r-pill); color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.lang-sw--header a:hover { color: var(--ink); }
.lang-sw--header a[aria-current] { background: var(--accent-soft); color: var(--accent-strong); }
@media (min-width: 480px) and (max-width: 1023px) { .lang-sw--header { margin-left: 0; } }
@media (min-width: 1024px) { .lang-sw--header { order: 4; margin-left: 0; } }
.lang-sw--footer ul { gap: 4px 16px; flex-wrap: wrap; }
.lang-sw--footer a[aria-current] { color: var(--ink); font-weight: 600; }
.site-footer__legal .lang-sw--footer { margin-left: auto; }

/* Home */
.hero--us .hero__in > * { min-width: 0; }
.hero__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 18px 0 0; font-size: .9375rem; color: var(--on-deep-2); }
.hero__quick a { color: var(--on-deep); text-decoration: underline; text-decoration-color: rgb(238 244 250 / .35); text-underline-offset: 3px; }
.hero__quick a:hover { text-decoration-color: currentColor; }
.license-card .ticks { gap: 12px; font-size: .9375rem; }
.license-card__src { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
@media (min-width: 1024px) {
	.hero--us .hero__visual { min-height: 560px; }
}
.cities__grid--us .city { min-height: 116px; }
.cities__grid--us .city--lead { min-height: 200px; }
@media (max-width: 767px) { .cities__grid--us .city:not(.city--lead) .city__go { display: none; } }
@media (min-width: 768px) { .cities__grid--us { grid-auto-rows: 150px; } .cities__grid--us .city, .cities__grid--us .city--lead { min-height: 0; } }

/* Agentes (mismo componente que las filas de inmobiliaria) */
@media (min-width: 1100px) { .agency-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.agency--agent .mark { font-size: 1rem; letter-spacing: .02em; border-radius: var(--r-pill); }
.agency--agent .agency__meta span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 560px) { .agency-list--3 .agency { grid-template-columns: 48px minmax(0, 1fr) auto; } .agency-list--3 .agency .tag { grid-column: 2; } .agency-list--3 .agency__go { grid-column: 3; } }
.es-agents__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.es-agents__head h2 { margin-bottom: 4px; }
.es-cta { display: grid; gap: 20px; align-items: center; padding: clamp(24px, 4vw, 40px); }
.es-cta h2 { margin-bottom: 8px; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
.es-cta p:not(.eyebrow) { margin: 0; color: var(--muted); max-width: 60ch; }
.es-cta__badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand-grad); color: #fff; font-size: 1.375rem; font-weight: 700; letter-spacing: .02em; }
@media (min-width: 900px) { .es-cta { grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; } }

/* 1.10: valoración dentro de la ficha y al final de las calculadoras */
.ficha-val { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 24px 0; padding: 16px 20px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--line); }
.ficha-val p { margin: 0; color: var(--muted); }
.ficha-val .ficha-val__title { color: var(--ink); font-weight: 650; font-size: 1.0625rem; margin-bottom: 2px; }
.calc-cta { margin-top: 20px; padding: clamp(18px, 3vw, 28px); }
.calc-cta p { color: var(--muted); }
.calc-cta .calc-cta__title { color: var(--ink); font-weight: 650; font-size: 1.125rem; margin: 0 0 6px; }

/* 1.11: artículos del blog a dos columnas en escritorio (texto + índice y valoración) */
.article-wrap { max-width: calc(1144px + 2 * var(--gutter)); }
.article-wrap > h1, .article-wrap > .article__meta { max-width: 860px; }
.article-body > .table-wrap, .article-body > table, .article-body > .dupica-summary { max-width: none; }
.article-side { display: none; }
@media (min-width: 1100px) {
	.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
	.article-after > * { max-width: calc(100% - 364px); }
	.article-side { display: grid; gap: 20px; position: sticky; top: 96px; }
	.article-body h2 { scroll-margin-top: 96px; }
}
.article-toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.article-toc__title, .article-side__title { margin: 0 0 10px; font-weight: 650; color: var(--ink); }
.article-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .9375rem; }
.article-toc a { color: var(--ink-2); text-decoration: none; }
.article-toc a:hover { color: var(--accent); }
.article-side__cta p:not(.article-side__title) { color: var(--muted); font-size: .9375rem; margin: 0 0 14px; }
.article-body .table-wrap { overflow-x: auto; margin-block: 1.5em; border: 1px solid var(--line); border-radius: var(--r-input); }
.article-body table { display: table; width: 100%; margin: 0; }
.article-body .table-wrap table { border: 0; }
.article-body caption { caption-side: top; text-align: left; padding: 12px 12px 4px; color: var(--muted); font-size: .875rem; }
.article-body thead th { background: var(--surface-2); color: var(--ink); font-size: .875rem; }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-side__cta { padding: 18px 20px; }
