/* ==========================================================================
   Valoracasa — estilos que theme.json no puede expresar.
   1. Base  2. Cabecera y megamenú  3. Componentes de marca  4. Estilos de bloque
   5. Plantillas  6. Integraciones con plugins  7. Home  8. Plantillas internas
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */

:root {
	--vc-radius-card: var(--wp--custom--radius--card, 12px);
	--vc-radius-box: var(--wp--custom--radius--box, 10px);
	--vc-radius-btn: var(--wp--custom--radius--button, 6px);
	--vc-radius-pill: var(--wp--custom--radius--pill, 4px);
	--vc-shadow: var(--wp--preset--shadow--card);
	--vc-blue: var(--wp--preset--color--blue);
	--vc-navy: var(--wp--preset--color--navy);
	--vc-line: var(--wp--preset--color--line);
}

html { scroll-padding-top: 110px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--vc-blue);
	outline-offset: 2px;
}

.wp-site-blocks > * + * { margin-block-start: 0; }

/* 2. Cabecera y megamenú ------------------------------------------------- */

.vc-header-wrap {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .vc-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .vc-header-wrap { top: 46px; } }

.vc-header { position: relative; box-shadow: 0 1px 0 var(--vc-line); }
.vc-header > * { margin-block: 0; }
.vc-header__bar { min-height: 78px; gap: 2rem; }
.vc-header .wp-block-site-logo img { max-height: 44px; width: auto; }
.vc-header__actions .wp-block-shortcode { display: flex; align-items: center; }
.vc-header__actions select { font: inherit; font-size: .8125rem; font-weight: 600; border: 1px solid var(--vc-line); border-radius: var(--vc-radius-btn); padding: 6px 8px; width: auto; }
.vc-header__cta .wp-block-button__link { text-transform: none; letter-spacing: 0; font-size: .875rem; padding: .8rem 1.5rem; border-radius: 8px; }
.vc-header__cta .wp-block-button__link { white-space: nowrap; }
.vc-mega__drawer, .vc-mega__panel { box-sizing: border-box; }
.vc-mega__cols > .wp-block-column { min-width: 0; }

/* Barra */
.vc-mega { margin-left: auto; }
.vc-mega__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.vc-mega__trigger,
.vc-mega__link {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	position: relative;
	height: 78px;
	padding: 0 .8rem;
	background: none;
	border: 0;
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	color: var(--vc-navy);
	cursor: pointer;
	text-decoration: none;
}
.vc-mega__trigger::after,
.vc-mega__link::after {
	content: "";
	position: absolute;
	left: .8rem;
	right: .8rem;
	bottom: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--vc-blue);
	transform: scaleX(0);
	transition: transform .2s ease;
}
.vc-mega__item.is-open > .vc-mega__trigger,
.vc-mega__item.is-current > a,
.vc-mega__trigger:hover,
.vc-mega__link:hover { color: var(--vc-blue); text-decoration: none; }
.vc-mega__item.is-open > .vc-mega__trigger::after,
.vc-mega__item.is-current > *::after { transform: scaleX(1); }
.vc-mega__chevron { transition: transform .2s ease; }
.vc-mega__item.is-open .vc-mega__chevron { transform: rotate(180deg); }
.vc-mega__burger { display: none; }

/* Panel a todo el ancho, bajo la cabecera */
.vc-mega__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #f4f8fc;
	border-top: 1px solid var(--vc-line);
	box-shadow: 0 24px 40px rgba(15, 23, 42, .10);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.vc-mega__item.is-open > .vc-mega__panel,
.vc-mega:not(.is-js) .vc-mega__item:hover > .vc-mega__panel,
.vc-mega:not(.is-js) .vc-mega__item:focus-within > .vc-mega__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .18s ease, transform .18s ease;
}
.vc-mega__inner { max-width: 1240px; margin: 0 auto; padding: 2.75rem clamp(1rem, 4vw, 2rem) 2.25rem; }
.vc-mega__content > * { margin-block: 0; }
/* Títulos del megamenú como párrafos: el menú se repite en todas las páginas y no debe meter h3/h4 antes del H1. */
.vc-mega__title { font-size: 1.25rem !important; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--vc-navy); margin: 0 0 1.4rem !important; }

.vc-mega__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.vc-mega__links li { margin: 0; }
.vc-mega__links a {
	display: flex;
	align-items: center;
	gap: .8rem;
	color: var(--wp--preset--color--muted);
	font-size: .9375rem;
	text-decoration: none;
}
.vc-mega__links a strong { color: var(--vc-navy); font-weight: 700; }
.vc-mega__links li::before { content: none; }
.vc-mega__links a::before {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	background: var(--vc-blue);
	-webkit-mask: var(--ic, none) center / contain no-repeat;
	mask: var(--ic, none) center / contain no-repeat;
}
.vc-mega__links a:hover strong { color: var(--vc-blue); }

/* Las imágenes destacadas son banners con texto: se muestran enteras, en tarjetas de dos en dos. */
.vc-mega__features { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.5rem 1.25rem; align-content: start; align-items: start; }
.vc-mega__features > * { margin: 0 !important; }
.vc-mega__feature { flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: .8rem !important; }
.vc-mega__thumb { flex: none; margin: 0 !important; }
.vc-mega__thumb,
.vc-mega__thumb a { display: block; width: 100%; }
.vc-mega__thumb img { display: block; width: 100% !important; height: auto !important; max-height: 160px; object-fit: cover; object-position: top; border-radius: 10px; }
.vc-mega__feature-text { flex: 1 1 auto; min-width: 0; }
.vc-mega__feature-text > * { margin: 0 !important; }
.vc-mega__feature .vc-mega__feature-title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--vc-navy); margin-bottom: .3rem !important; }
.vc-mega__feature-title a { color: var(--vc-navy); text-decoration: none; }
.vc-mega__feature-title a:hover { color: var(--vc-blue); }
.vc-mega__feature p { color: var(--wp--preset--color--muted); font-size: .875rem; line-height: 1.5; }
.vc-mega__offices { gap: 2rem !important; }
.vc-mega__all { margin: 1.75rem 0 0; }
.vc-mega__all a { font-weight: 700; font-size: .875rem; color: var(--vc-blue); text-decoration: none; }
.vc-mega__all a::after { content: " →"; }

html.vc-mega-open body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(15, 23, 42, .25);
	pointer-events: none;
}

/* Tablet y móvil: menú lateral con acordeón */
@keyframes vc-drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
	.vc-header__bar { min-height: 68px; }
	.vc-header .wp-block-site-logo img { max-height: 38px; }
	.vc-mega { order: 3; margin-left: 0; }
	.vc-header__actions { margin-left: auto; }
	.vc-mega__burger {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border: 1px solid var(--vc-line);
		border-radius: 10px;
		background: #fff;
		cursor: pointer;
	}
	.vc-mega__burger-lines,
	.vc-mega__burger-lines::before,
	.vc-mega__burger-lines::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--vc-navy); position: relative; transition: transform .2s ease, background .2s ease; }
	.vc-mega__burger-lines::before,
	.vc-mega__burger-lines::after { content: ""; position: absolute; left: 0; }
	.vc-mega__burger-lines::before { top: -6px; }
	.vc-mega__burger-lines::after { top: 6px; }
	.vc-mega.is-drawer-open .vc-mega__burger-lines { background: transparent; }
	.vc-mega.is-drawer-open .vc-mega__burger-lines::before { transform: translateY(6px) rotate(45deg); }
	.vc-mega.is-drawer-open .vc-mega__burger-lines::after { transform: translateY(-6px) rotate(-45deg); }

	.vc-mega__drawer {
		position: fixed;
		left: 0;
		right: 0;
		top: var(--vc-header-h, 68px);
		bottom: 0;
		background: #fff;
		overflow-y: auto;
		padding: .5rem clamp(1rem, 4vw, 2rem) 2rem;
		display: none;
		z-index: 99;
	}
	.vc-mega.is-drawer-open .vc-mega__drawer { display: block; animation: vc-drawer-in .22s ease; }
	html.vc-drawer-open { overflow: hidden; }
	.vc-mega__list { flex-direction: column; align-items: stretch; gap: 0; }
	.vc-mega__item { border-bottom: 1px solid var(--vc-line); }
	.vc-mega__trigger,
	.vc-mega__link { width: 100%; height: 58px; padding: 0; justify-content: space-between; font-size: 1.0625rem; }
	.vc-mega__trigger::after,
	.vc-mega__link::after { display: none; }
	.vc-mega__panel {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
		border: 0;
		box-shadow: none;
	}
	.vc-mega__item.is-open > .vc-mega__panel { display: block; }
	.vc-mega__inner { padding: 0 0 1.25rem; }
	.vc-mega__title { display: none; }
	.vc-mega__cols,
	.vc-mega__offices { flex-direction: column; gap: 1.25rem !important; }
	.vc-mega__links { grid-template-columns: 1fr; gap: .9rem; }
	.vc-mega__features { grid-template-columns: 1fr; gap: 1rem; }
	.vc-mega__feature { flex-direction: row !important; align-items: center !important; }
	.vc-mega__thumb { width: 132px; }
	.vc-mega__thumb img { width: 132px !important; max-height: 90px; }
	.vc-mega__all { margin-top: 1rem; }
	html.vc-mega-open body::after { content: none; }
}
@media (max-width: 599px) {
	.vc-header__actions .wp-block-shortcode, .vc-header__actions .vc-lang { display: none; }
	.vc-header__cta .wp-block-button__link { padding: .65rem 1rem; }
}

/* 3. Componentes de marca ------------------------------------------------ */

/* Antetítulo */
.is-style-eyebrow,
.vc-eyebrow,
.vc-eyebrow a {
	color: var(--vc-blue);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	margin-bottom: .25rem;
}
.is-style-eyebrow.vc-on-dark,
.vc-on-dark { color: #bfe6ff; }

/* Número grande en tarjetas */
.vc-num {
	color: var(--vc-blue);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	margin: 0;
}

/* Pastilla */
.vc-pill {
	display: inline-block;
	background: var(--wp--preset--color--blue-soft);
	color: var(--wp--preset--color--blue-dark);
	border-radius: var(--vc-radius-pill);
	padding: .3rem .6rem;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	width: fit-content;
}

/* Sello VENDIDO / GRATIS */
.vc-stamp {
	display: inline-block;
	border: 4px solid #fff;
	color: #fff;
	padding: .35em .8em;
	font-weight: 800;
	font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	letter-spacing: .08em;
	text-transform: uppercase;
	transform: rotate(-14deg);
	line-height: 1;
	border-radius: 4px;
	margin-inline: auto;
}
.vc-cta .vc-stamp { border-color: var(--wp--preset--color--blue-band); color: var(--wp--preset--color--blue-band); }

.vc-photo-placeholder { border-radius: var(--vc-radius-card); overflow: hidden; }

/* Pasos */
.vc-step-num {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--vc-blue);
	color: #fff;
	font-weight: 800;
	margin: 0;
}

/* Tarjeta enlazada: toda la tarjeta es clicable */
.vc-link-card { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.vc-link-card h3 a { color: inherit; text-decoration: none; }
.vc-link-card h3 a::after { content: ""; position: absolute; inset: 0; }
.vc-link-card:hover { transform: translateY(-2px); box-shadow: var(--wp--preset--shadow--raised); }
.vc-link-card:hover h3 a { color: var(--vc-blue); }

/* Hero */
.vc-hero { position: relative; }
.vc-hero h1 { text-wrap: balance; }

/* CTA */
.vc-cta h2 { margin-top: .25rem; }

/* 4. Estilos de bloque --------------------------------------------------- */

.is-style-card {
	background: #fff;
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius-card);
	box-shadow: var(--vc-shadow);
	padding: var(--wp--preset--spacing--30);
}
.wp-block-column.is-style-card > * + * { margin-block-start: .75rem; }

.is-style-check { list-style: none; padding-left: 0; }
.is-style-check li { position: relative; padding-left: 1.75rem; margin-bottom: .4rem; }
.is-style-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .3em;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center / 75% no-repeat;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--vc-blue);
	border: 2px solid currentColor;
	padding-block: calc(.9rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--vc-blue); color: #fff; border-color: var(--vc-blue); }
.has-navy-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.has-blue-gradient-background .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }

.wp-block-button.is-style-white > .wp-block-button__link { background: #fff; color: var(--vc-navy); }
.wp-block-button.is-style-white > .wp-block-button__link:hover { background: var(--wp--preset--color--blue-soft); color: var(--vc-navy); }

.is-style-rounded-card img,
.wp-block-post-featured-image.is-style-rounded-card img { border-radius: var(--vc-radius-card); }

/* FAQ */
.wp-block-details.is-style-faq summary {
	font-weight: 700;
	color: var(--vc-navy);
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2.5rem;
}
.wp-block-details.is-style-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1.75rem;
	height: 1.75rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--blue-soft);
	color: var(--vc-blue);
	font-weight: 700;
	transition: transform .2s ease;
}
.wp-block-details.is-style-faq[open] summary::after { content: "–"; }
.wp-block-details.is-style-faq > :not(summary) { margin-top: .75rem; color: var(--wp--preset--color--ink); }

/* 5. Plantillas ---------------------------------------------------------- */

.vc-title-band .wp-block-post-title,
.vc-title-band h1 { margin-top: .25rem; text-wrap: balance; }


/* Pie */
.vc-footer__links { list-style: none; padding-left: 0; margin-top: .75rem; }
.vc-footer__links li { margin-bottom: .45rem; }
.vc-footer a { text-decoration: none; }
.vc-footer a:hover { text-decoration: underline; }
.vc-footer__title { letter-spacing: .14em; text-transform: uppercase; }
.vc-footer__rule { border-color: rgba(255, 255, 255, .35) !important; opacity: 1; }

@media (min-width: 782px) {
	.vc-sticky > * { position: sticky; top: 130px; }
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	white-space: nowrap;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: .6rem;
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius-btn);
	text-decoration: none;
	font-weight: 600;
}
.wp-block-query-pagination .current { background: var(--vc-blue); border-color: var(--vc-blue); color: #fff; }
/* Otro plugin pinta ".page-numbers.current" de azul con !important: el número desaparecía sobre el fondo azul. */
.wp-block-query-pagination .page-numbers.current { color: #fff !important; }
.wp-block-query-pagination-numbers { display: inline-flex; align-items: center; gap: .4rem; }
.wp-block-query-pagination .wp-block-query-pagination-next-arrow,
.wp-block-query-pagination .wp-block-query-pagination-previous-arrow { margin: 0; }

/* Formularios genéricos (búsqueda, comentarios, CF7) */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], select, textarea) {
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: #fff;
	border: 1px solid #cfd6df;
	border-radius: var(--vc-radius-btn);
	padding: .75rem .9rem;
	width: 100%;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease;
}
:where(input, select, textarea):focus {
	border-color: var(--vc-blue);
	box-shadow: 0 0 0 3px rgba(0, 143, 226, .18);
	outline: none;
}
.wp-block-search__inside-wrapper { gap: .5rem; }
.wp-block-search__button { margin-left: 0; }

/* 6. Integraciones con plugins ------------------------------------------ */

/* --- Valoratik Viviendas: listado y ficha tal y como los pinta el plugin
   (colores y tipografía en Valoratik Viviendas › Ajustes Generales). */
.vc-hero [class*="vlvi-"] { color: var(--vlvi-ink); }
/* Bug del plugin: ".vlvi h1" pisa el blanco del título del banner del listado. */
.vlvi .vlvi-listing-hero__title { color: #fff; }
.vc-hero .wp-block-shortcode { margin-top: var(--wp--preset--spacing--40); }
@media (max-width: 599px) {
	.vc-hero .vlvi-hero-tabs { flex-wrap: wrap; }
	.vc-hero .vlvi-hero-tab { flex: 1 1 calc(50% - 2px); padding: .6rem .5rem; font-size: .7rem; }
}

/* --- Contact Form 7 */
.wpcf7 form > p,
.wpcf7 form .vc-field { margin: 0 0 1rem; }
.wpcf7 label { display: block; font-size: .875rem; font-weight: 600; color: var(--vc-navy); }
.wpcf7 label > .wpcf7-form-control-wrap { display: block; margin-top: .35rem; font-weight: 400; }
.wpcf7 .wpcf7-acceptance,
.wpcf7 .wpcf7-acceptance label { font-size: .8125rem; font-weight: 400; color: var(--wp--preset--color--muted); }
.wpcf7 input[type="checkbox"] { width: auto; accent-color: var(--vc-blue); }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7 input[type="submit"] {
	background: var(--vc-blue);
	color: #fff;
	border: 0;
	border-radius: var(--vc-radius-btn);
	padding: .95rem 1.75rem;
	font: inherit;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--blue-dark); }
.wpcf7 .wpcf7-not-valid { border-color: var(--wp--preset--color--red); }
.wpcf7 .wpcf7-not-valid-tip { color: var(--wp--preset--color--red); font-size: .8125rem; margin-top: .25rem; }
.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: .75rem 1rem;
	border-radius: var(--vc-radius-btn);
	font-size: .875rem;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--wp--preset--color--green); background: #f0fdf4; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: var(--wp--preset--color--orange); background: #fff7ed; }

/* --- Complianz: misma tipografía y botones de marca
   (los colores finos se ajustan en Complianz > Banner de cookies) */
.cmplz-cookiebanner,
.cmplz-cookiebanner * { font-family: var(--wp--preset--font-family--montserrat) !important; }
.cmplz-cookiebanner .cmplz-btn { border-radius: var(--vc-radius-btn) !important; font-weight: 700 !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--vc-blue) !important; border-color: var(--vc-blue) !important; }

/* --- Click to Chat (WhatsApp): por encima del pie, sin tapar el banner de cookies */
#ht-ctc-chat,
.ht-ctc { z-index: 90 !important; }

/* --- GTranslate flotante: que no choque con WhatsApp */
.gt_float_switcher { font-family: inherit !important; }

/* --- Selector de idioma de la cabecera ([valoracasa_idiomas], TranslatePress) */
.vc-lang { display: flex; align-items: center; gap: .15rem; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; }
.vc-lang a { padding: .35rem .45rem; border-radius: 6px; color: var(--wp--preset--color--muted); text-decoration: none; }
.vc-lang a + a::before { content: none; }
.vc-lang a:hover { color: var(--vc-blue); }
.vc-lang a.is-current { color: var(--vc-navy); background: var(--wp--preset--color--blue-soft); }
/* El selector flotante de TranslatePress sobra: ya está el de la cabecera. */
body:has(.vc-lang) .trp-floating-switcher { display: none !important; }

/* 7. Home ---------------------------------------------------------------- */

.vc-section { padding-block: clamp(3rem, 2rem + 3vw, 4.75rem) !important; margin-block: 0 !important; }
.vc-section--tight { padding-block: clamp(1rem, .5rem + 1vw, 1.5rem) !important; }
.vc-section--links { padding-bottom: 0 !important; }

/* Cabecera de sección: título + flecha */
.vc-shead { margin-bottom: 1.9rem !important; gap: 1.5rem !important; }
.vc-shead__text > * { margin: 0 !important; }
.vc-shead h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem); }
.vc-shead__sub { color: var(--wp--preset--color--muted); margin-top: .5rem !important; font-size: .9375rem; }
.vc-more { margin: 0; }
.vc-more a {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	color: var(--vc-blue);
	font-weight: 700;
	font-size: .875rem;
	white-space: nowrap;
	text-decoration: none;
}
.vc-more a::after {
	content: "→";
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--wp--preset--color--blue-soft);
	transition: transform .15s ease;
}
.vc-more a:hover { text-decoration: none; }
.vc-more a:hover::after { transform: translateX(3px); }
.vc-more--light a { color: #fff; }
.vc-more--light a::after { background: rgba(255, 255, 255, .2); }
.vc-arrow .wp-block-button__link::after { content: " →"; }

/* Cabecera con vídeo */
.vc-hero { padding-top: clamp(3.5rem, 2rem + 5vw, 6rem) !important; padding-bottom: 8rem !important; align-items: flex-start !important; }
.vc-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(10, 20, 45, .85) 0%, rgba(10, 20, 45, .55) 45%, rgba(10, 20, 45, .05) 78%) !important; opacity: 1 !important; }
.vc-hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.vc-hero h1 .vc-hero__brand { display: block; color: #7cc8f5; font-size: .34em; letter-spacing: .22em; text-transform: uppercase; margin-bottom: .6rem; }
.vc-hero h1 .vc-hero__city { color: #5cc0ff; }
.vc-hero__lead { color: #e6eef8; max-width: 560px; line-height: 1.55; }

/* Buscador sobre la cabecera */
.vc-search { position: relative; z-index: 5; margin-top: -7.5rem !important; }
.vc-search .vlvi-hero-search { max-width: var(--wp--style--global--wide-size, 1240px) !important; width: 100%; margin-left: auto !important; margin-right: auto !important; }
.vc-search .vlvi-hero-tabs { gap: 2px; margin-bottom: 0; }
.vc-search .vlvi-hero-tab { color: #fff; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); padding: .85rem 1.6rem; font-weight: 600; }
.vc-search .vlvi-hero-tab.is-active { background: #fff; color: var(--vc-navy); }
.vc-search .vlvi-hero-bar { min-height: 74px; background: #fff; border-radius: 0 10px 10px 10px; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 23, 42, .18); border: 0; }
.vc-search .vlvi-hero-type { min-width: 230px; }
.vc-search .vlvi-hero-bar .vlvi-hero-type select { max-width: none; }
.vc-search .vlvi-hero-keyword { flex: 1; }
.vc-search .vlvi-hero-submit { color: #fff; background: var(--vc-blue); padding-inline: 2.75rem; font-weight: 700; letter-spacing: .1em; border: 0; border-radius: 0; }
.vc-search .vlvi-hero-submit:hover { background: var(--wp--preset--color--blue-dark); }
/* Búsquedas frecuentes de Valoratik con estilo de etiqueta */
.vc-search .vlvi-hero-quicklinks { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.vc-search .vlvi-hero-quicklinks__label { font-weight: 700; color: var(--vc-navy); font-size: .8125rem; margin-right: .2rem; }
.vc-search .vlvi-hero-quicklink { display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: var(--vc-navy); border: 1px solid var(--vc-line); border-radius: 30px; padding: .45rem 1rem; font-size: .8125rem; font-weight: 500; text-decoration: none; }
/* Sin ámbito: el SVG de Valoratik no trae tamaño y, si falta el contenedor, ocupa toda la pantalla. */
.vlvi-hero-quicklink svg { flex: none; width: 13px; height: 13px; color: var(--vc-blue); }
.vc-search .vlvi-hero-quicklink:hover { border-color: var(--vc-blue); color: var(--vc-blue); text-decoration: none; }
@media (max-width: 700px) {
	.vc-search { margin-top: -5.5rem !important; }
	.vc-search .vlvi-hero-tabs { flex-wrap: wrap; }
	.vc-search .vlvi-hero-tab { flex: 1 1 calc(50% - 2px); padding: .65rem .5rem; font-size: .72rem; text-align: center; }
	.vc-search .vlvi-hero-bar { border-radius: 0 0 10px 10px; }
	.vc-search .vlvi-hero-type { min-width: 0; }
	.vc-search .vlvi-hero-submit { width: 100%; justify-content: center; min-height: 52px; }
	.vc-chips__label { width: 100%; }
}
.vc-chips { gap: .6rem !important; margin-top: 1.1rem !important; align-items: center; }
.vc-chips__label { margin: 0; font-weight: 700; color: var(--vc-navy); font-size: .8125rem; }
.vc-chips__list { gap: .6rem !important; }
.wp-block-button.is-style-chip > .wp-block-button__link {
	background: #fff;
	color: var(--vc-navy);
	border: 1px solid var(--vc-line);
	border-radius: 30px;
	padding: .45rem 1rem;
	font-size: .8125rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}
.wp-block-button.is-style-chip > .wp-block-button__link::before { content: "⌖ "; color: var(--vc-blue); font-weight: 700; }
.wp-block-button.is-style-chip > .wp-block-button__link:hover { border-color: var(--vc-blue); color: var(--vc-blue); background: #fff; }

/* Rejilla de inmuebles */
.vc-grid-3,
.vc-section .vlvi-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
@media (max-width: 1000px) { .vc-grid-3, .vc-section .vlvi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vc-grid-3, .vc-section .vlvi-grid { grid-template-columns: 1fr; } }


/* Banner vender */
.vc-sell { overflow: hidden; padding: 2.75rem 3.5rem !important; }
.vc-sell .wp-block-cover__background { background: linear-gradient(90deg, rgba(15, 27, 52, .96) 0%, rgba(15, 27, 52, .8) 50%, rgba(15, 27, 52, .3) 100%) !important; opacity: 1 !important; }
.vc-sell__in { gap: 2rem !important; align-items: center; }
.vc-sell h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 800; margin: 0; }
.vc-sell p { color: #d7e3f2; margin: .6rem 0 0; }
.vc-sell__list { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 1.1rem 0 0; font-weight: 600; font-size: .875rem; color: #fff; }
.vc-sell__list li { margin: 0; }
.vc-sell__list li::before { content: "✓ "; color: #5cc0ff; font-weight: 800; }
.vc-sell .wp-block-button__link { padding: 1.05rem 1.9rem; text-transform: none; letter-spacing: 0; font-size: .9375rem; }

/* Servicios */
.vc-services { gap: 1.5rem !important; }
.vc-svc { position: relative; display: flex; flex-direction: column; padding: calc(1.9rem + 62px + 1.25rem) 1.75rem 1.9rem !important; }
.vc-svc::before { content: ""; position: absolute; top: 1.9rem; left: 1.75rem; width: 62px; height: 62px; border-radius: 50%; background: var(--wp--preset--color--blue-soft); }
.vc-svc::after { content: ""; position: absolute; top: calc(1.9rem + 17px); left: calc(1.75rem + 17px); width: 28px; height: 28px; background: var(--vc-blue); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.vc-svc h3 { margin: 0 0 .5rem !important; }
.vc-svc p:not(.vc-more) { flex: 1; margin: 0 0 1.25rem !important; }
.vc-svc .vc-more a { font-size: .8125rem; }

/* Únete */
.vc-joins { gap: 1.75rem !important; }
.vc-join { overflow: hidden; padding: 2.25rem 2.4rem !important; }
.vc-join .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(180deg, rgba(15, 27, 52, 0) 0%, rgba(15, 27, 52, .15) 30%, rgba(15, 27, 52, .94) 62%) !important; }
.vc-join--franquicia .wp-block-cover__background { background: linear-gradient(180deg, rgba(0, 90, 150, .1) 0%, rgba(0, 60, 110, .95) 66%) !important; }
.vc-join .wp-block-cover__inner-container > * { margin-block: 0 0 .9rem; }
.vc-join h3 { font-weight: 800; margin-bottom: .6rem !important; }
.vc-join p { color: #dbe6f3; max-width: 470px; }
.vc-tag { display: inline-block; background: #fff; color: var(--vc-navy) !important; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 11px; border-radius: 4px; }
.vc-join__list { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.1rem; font-size: .875rem; font-weight: 600; color: #fff; margin-bottom: 1.4rem !important; }
.vc-join .wp-block-button__link { text-transform: none; letter-spacing: 0; font-size: .875rem; }

/* Reseñas */
.vc-reviews { padding: 2.9rem 3.25rem !important; }
.vc-reviews__side > * { margin: 0 0 .6rem !important; }
.vc-reviews__google { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.vc-reviews__google::before { content: "G"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 800; font-size: 1.1rem; }
.vc-stars { color: #ffc93c; letter-spacing: 3px; font-size: 1.4rem; line-height: 1; }
.vc-reviews h2 { font-size: clamp(1.5rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; }
.vc-review { background: #fff; color: var(--wp--preset--color--ink); border-radius: 12px; padding: 1.4rem !important; font-size: .875rem; }
.vc-review > * { margin: 0 0 .75rem !important; }
.vc-review .vc-stars { font-size: .95rem; letter-spacing: 2px; }
.vc-review__who { color: var(--wp--preset--color--muted); font-size: .8125rem; }
.vc-review__who strong { color: var(--vc-navy); }


/* FAQ a dos columnas */
.vc-faq2 > .wp-block-column:first-child > * { margin-top: 0; }
.vc-faq2 h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem); margin: .25rem 0 .9rem; }
.vc-faq2__list { display: flex; flex-direction: column; gap: .75rem; }
.vc-faq-card { background: #fff; border: 1px solid var(--vc-line) !important; border-radius: 10px; padding: 1.15rem 1.5rem !important; margin: 0 !important; }
.vc-faq-card[open] summary::after { background: var(--vc-blue) !important; color: #fff !important; }

/* Pie */
.vc-footer .vc-footer__title { color: #fff; font-size: .875rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; margin: .25rem 0 1rem; }
.vc-footer__links a { color: #c7d2e3; }
.vc-footer__links a:hover { color: #fff; }
.vc-footer .vc-social .wp-social-link { border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; padding: .45rem; }
.vc-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.vc-footer__bottom p { margin: 0; }
.vc-footer__legal a { margin-left: 1.25rem; }
.vc-talk { text-align: center; }
.vc-talk > * { margin-block: 0 .9rem !important; }
.vc-talk p { color: #e3f3ff; }
.vc-talk .vc-talk__title { font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: #fff; }
.vc-talk__tel a { font-weight: 800; color: #fff; white-space: nowrap; }
.vc-btn-whatsapp .wp-block-button__link { text-transform: none; letter-spacing: 0; font-size: .8125rem; white-space: nowrap; }
.vc-btn-whatsapp .wp-block-button__link::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; background: #25d366; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2z'/%3E%3C/svg%3E") center / contain no-repeat; }

@media (max-width: 781px) {
	.vc-hero { padding-bottom: 6rem !important; }
	.vc-sell { padding: 2rem 1.5rem !important; }
	.vc-reviews { padding: 2rem 1.5rem !important; }
	.vc-join { padding: 1.75rem !important; }
	.vc-join__list { grid-template-columns: 1fr; }
	.vc-footer__legal a { margin: 0 1rem 0 0; }
}

/* 8. Plantillas internas (páginas, blog, búsqueda, 404, inmuebles) ------- */

/* Banda de título */
.vc-phero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(circle at 88% -10%, rgba(0, 163, 232, .38), transparent 46%),
		radial-gradient(circle at 0% 120%, rgba(0, 143, 226, .18), transparent 40%),
		linear-gradient(135deg, var(--wp--preset--color--navy-2) 0%, var(--vc-navy) 100%);
	padding-top: clamp(2rem, 1.4rem + 2.4vw, 3.5rem) !important;
	padding-bottom: clamp(2.25rem, 1.5rem + 2.8vw, 4rem) !important;
}
.vc-phero::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -90px;
	width: 380px;
	height: 380px;
	border: 2px solid rgba(255, 255, 255, .06);
	border-radius: 50%;
	box-shadow: 0 0 0 60px rgba(255, 255, 255, .025), 0 0 0 120px rgba(255, 255, 255, .02);
	pointer-events: none;
}
.vc-phero > *,
.vc-phero__in > * { position: relative; z-index: 1; margin-block: 0; }
.vc-phero__in { max-width: var(--wp--style--global--wide-size, 1240px); margin: 0 auto; padding-inline: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem)); box-sizing: content-box; }
.vc-phero__in.wp-block-group { max-width: var(--wp--style--global--wide-size, 1240px); padding-inline: 0; box-sizing: border-box; }
.vc-phero--light .vc-phero__in.wp-block-group { max-width: 760px; }
.vc-phero .vc-crumbs { margin-bottom: 1.4rem; }
.vc-phero__eyebrow { color: #5cc0ff; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .6rem !important; }
.vc-phero__title,
.vc-phero h1 {
	color: #fff;
	font-size: clamp(1.9rem, 1.25rem + 2.3vw, 3rem);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.12;
	max-width: 920px;
	text-wrap: balance;
	text-transform: none;
}
.vc-phero .vc-lead { color: #c9d6e8; font-size: 1.0625rem; line-height: 1.6; max-width: 680px; margin-top: 1rem; }
.vc-phero__cat { margin-bottom: .9rem !important; }
.vc-phero__cat a { display: inline-block; background: rgba(255, 255, 255, .12); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 4px; text-decoration: none; }
.vc-phero__cat a:hover { background: var(--vc-blue); }
.vc-phero__meta { margin-top: 1.5rem !important; gap: .4rem 1.25rem !important; align-items: center; color: #c9d6e8; font-size: .875rem; }
.vc-phero__meta > * { margin: 0; }
.vc-phero__meta :where(.wp-block-post-date, .wp-block-post-date a, .vc-readtime) { color: #c9d6e8; text-decoration: none; }
.vc-phero__meta > * + *::before { content: "·"; margin-right: 1.25rem; color: rgba(255, 255, 255, .4); }
.vc-phero__meta .vc-byline::before { content: none; }
.vc-byline { display: flex; align-items: center; gap: .6rem; }
.vc-byline .wp-block-post-author__avatar img { border-radius: 50%; width: 36px; height: 36px; border: 2px solid rgba(255, 255, 255, .3); }
.vc-byline .wp-block-post-author__avatar { margin: 0; }
.vc-byline .wp-block-post-author__content p { margin: 0; }
.vc-byline .wp-block-post-author__name { color: #fff; font-weight: 700; }
.vc-phero__search { max-width: 640px; margin-top: 1.75rem !important; }
.vc-phero__search .wp-block-search__inside-wrapper { background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.vc-phero__search .wp-block-search__input { border: 0; box-shadow: none; padding: .7rem .9rem; }
.vc-phero__search .wp-block-search__button { background: var(--vc-blue); color: #fff; border: 0; border-radius: 7px; padding: .7rem 1.5rem; font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.vc-phero__search .wp-block-search__button:hover { background: var(--wp--preset--color--blue-dark); }

/* Variante clara (textos legales) */
.vc-phero--light { color: var(--vc-navy); background: linear-gradient(180deg, var(--wp--preset--color--blue-soft) 0%, #fff 100%); border-bottom: 1px solid var(--vc-line); }
.vc-phero--light::after { content: none; }
.vc-phero--light .vc-phero__title { color: var(--vc-navy); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); }
.vc-phero--light .vc-phero__meta { color: var(--wp--preset--color--muted); gap: .4rem !important; }
.vc-phero--light .vc-phero__meta > * + *::before { content: none; }
.vc-phero--light .vc-crumbs { --vc-crumb: var(--wp--preset--color--muted); --vc-crumb-link: var(--vc-blue); }

/* 404: número de fondo */
.vc-phero--404::before { content: "404"; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-size: clamp(8rem, 4rem + 14vw, 17rem); font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .05); letter-spacing: -.04em; pointer-events: none; }

/* Miga de pan */
.vc-crumbs { --vc-crumb: #9fb3cc; --vc-crumb-link: #d6e6f7; font-size: .8125rem; color: var(--vc-crumb); }
.vc-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.vc-crumbs li { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-crumbs li + li::before { content: "›"; margin-right: .35rem; opacity: .7; }
.vc-crumbs a { color: var(--vc-crumb-link); text-decoration: none; }
.vc-crumbs a:hover { text-decoration: underline; }
.vc-crumbs [aria-current] { max-width: 46ch; }

/* Contenido de páginas y artículos */
.vc-page-media { margin-top: var(--wp--preset--spacing--40) !important; }
.vc-page-media img { border-radius: 14px; max-height: 480px; object-fit: cover; }
.vc-prose { margin-top: var(--wp--preset--spacing--40) !important; font-size: 1.0625rem; }
.vc-prose :where(p, li) { line-height: 1.75; color: var(--wp--preset--color--ink); }
.vc-prose :where(h2) { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.875rem); margin-top: 2.2em; margin-bottom: .6em; line-height: 1.25; }
.vc-prose :where(h3) { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.375rem); margin-top: 1.8em; margin-bottom: .5em; }
.vc-prose :where(h4) { font-size: 1.0625rem; margin-top: 1.5em; }
.vc-prose > :first-child,
.vc-prose > p:empty:first-child + * { margin-top: 0; }
.vc-prose p:empty { display: none; }
.vc-prose :where(a:not(.wp-block-button__link)) { color: var(--vc-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vc-prose :where(a:not(.wp-block-button__link)):hover { color: var(--wp--preset--color--blue-dark); }
.vc-prose :where(ul, ol) { padding-left: 1.25em; }
.vc-prose li { margin-bottom: .4em; }
.vc-prose li::marker { color: var(--vc-blue); font-weight: 700; }
.vc-prose :where(img) { max-width: 100%; border-radius: 12px; }
.vc-prose :where(blockquote) { margin-inline: 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--vc-blue); background: var(--wp--preset--color--blue-soft); border-radius: 0 12px 12px 0; }
.vc-prose :where(table) { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.vc-prose :where(th, td) { border: 1px solid var(--vc-line); padding: .6rem .8rem; text-align: left; }
.vc-prose :where(th) { background: var(--wp--preset--color--surface); color: var(--vc-navy); }
.vc-prose :where(iframe, video) { max-width: 100%; border-radius: 12px; }
/* Formularios de CF7 dentro del contenido: como tarjeta */
.vc-prose .wpcf7 { background: #fff; border: 1px solid var(--vc-line); border-top: 4px solid var(--vc-blue); border-radius: 14px; box-shadow: var(--vc-shadow); padding: clamp(1.25rem, 1rem + 1vw, 2rem); margin-block: 2rem; }
/* Índice de contenidos (Easy Table of Contents) */
.vc-prose #ez-toc-container { box-sizing: border-box; width: 100%; background: var(--wp--preset--color--surface); border: 1px solid var(--vc-line); border-radius: 12px; box-shadow: none; padding: 1.1rem 1.4rem; }
.vc-prose #ez-toc-container .ez-toc-title { font-weight: 700; color: var(--vc-navy); }
.vc-prose #ez-toc-container a { color: var(--vc-navy); text-decoration: none; font-size: .9375rem; }
.vc-prose #ez-toc-container a:hover { color: var(--vc-blue); }
.vc-prose--legal { font-size: .9375rem; }
.vc-prose--legal :where(h2) { font-size: 1.25rem; }

.vc-page-end { padding-bottom: var(--wp--preset--spacing--10) !important; }
.vc-page-end > :first-child { margin-top: var(--wp--preset--spacing--50); }

/* Franja de confianza */
.vc-section:has(.vc-empty-props) { display: none; }
.vc-trust { gap: 1rem !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .vc-trust { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .vc-trust { grid-template-columns: 1fr !important; } }
.vc-trust__item { position: relative; background: #fff; border: 1px solid var(--vc-line); border-radius: 12px; padding: 1.15rem 1.15rem 1.15rem 4.4rem !important; margin: 0 !important; }
.vc-trust__item::before { content: ""; position: absolute; left: 1.15rem; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--wp--preset--color--blue-soft); }
.vc-trust__item::after { content: ""; position: absolute; left: calc(1.15rem + 11px); top: 50%; width: 22px; height: 22px; margin-top: -11px; background: var(--vc-blue); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.vc-trust__item > * { margin: 0 !important; }
.vc-trust__title { font-weight: 700; color: var(--vc-navy); font-size: .9375rem; }
.vc-trust__text { color: var(--wp--preset--color--muted); font-size: .8125rem; line-height: 1.45; margin-top: .15rem !important; }

/* Artículo con lateral */
.vc-article { margin-top: var(--wp--preset--spacing--40) !important; margin-bottom: var(--wp--preset--spacing--50) !important; }
.vc-article__main { min-width: 0; }
.vc-article__main .vc-prose { margin-top: 2rem !important; }
.vc-article__media { margin: 0; }
.vc-article__media img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; border-radius: 14px; }
.vc-article__foot { margin-top: 2.5rem !important; padding-top: 1.5rem; border-top: 1px solid var(--vc-line); gap: 1rem !important; align-items: center; }
.vc-tags { display: flex; flex-wrap: wrap; gap: .4rem; font-size: 0; }
.vc-tags .wp-block-post-terms__separator { display: none; }
.vc-tags a { font-size: .8125rem; color: var(--vc-navy); background: var(--wp--preset--color--surface); border: 1px solid var(--vc-line); border-radius: 30px; padding: .35rem .85rem; text-decoration: none; }
.vc-tags a::before { content: "#"; color: var(--vc-blue); margin-right: 1px; }
.vc-tags a:hover { border-color: var(--vc-blue); color: var(--vc-blue); }
.vc-share { display: flex; align-items: center; gap: .45rem; margin-left: auto; }
.vc-share__label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin-right: .3rem; }
.vc-share__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--vc-line); color: var(--vc-navy); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.vc-share__btn:hover { background: var(--vc-blue); border-color: var(--vc-blue); color: #fff; }
.vc-share__btn--whatsapp:hover { background: #25d366; border-color: #25d366; }
.vc-authorbox { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 2rem !important; padding: 1.5rem; background: var(--wp--preset--color--surface); border: 1px solid var(--vc-line); border-radius: 14px; }
.vc-authorbox .wp-block-post-author__avatar { margin: 0; }
.vc-authorbox .wp-block-post-author__avatar img { border-radius: 50%; }
.vc-authorbox .wp-block-post-author__content > * { margin: 0; }
.vc-authorbox .wp-block-post-author__byline { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--vc-blue); }
.vc-authorbox .wp-block-post-author__name { font-size: 1.0625rem; font-weight: 700; color: var(--vc-navy); margin: .15rem 0 .35rem !important; }
.vc-authorbox .wp-block-post-author__bio { color: var(--wp--preset--color--muted); font-size: .875rem; line-height: 1.6; }
.vc-article__side > .wp-block-group > * + * { margin-top: 1.5rem; }
@media (min-width: 782px) {
	.vc-article__side.vc-sticky > * { top: calc(var(--vc-header-h, 78px) + 1.5rem); }
}

/* Lateral: enlaces */
.vc-side-links { border: 1px solid var(--vc-line); border-radius: 12px; padding: 1.25rem 1.4rem .6rem; background: #fff; }
.vc-side-links__title { margin: 0 0 .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--vc-blue); }
.vc-side-links__list { list-style: none; padding: 0; margin: 0; }
.vc-side-links__list li { margin: 0; border-bottom: 1px solid var(--vc-line); }
.vc-side-links__list li:last-child { border-bottom: 0; }
.vc-side-links__list a { display: flex; align-items: center; gap: .75rem; padding: .8rem 0; color: var(--vc-navy); font-weight: 600; font-size: .9rem; text-decoration: none; }
.vc-side-links__list a::before { content: ""; flex: none; width: 22px; height: 22px; background: var(--vc-blue); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.vc-side-links__list a::after { content: "→"; margin-left: auto; color: var(--vc-blue); transition: transform .15s ease; }
.vc-side-links__list a:hover { color: var(--vc-blue); }
.vc-side-links__list a:hover::after { transform: translateX(3px); }
.vc-cta-side { border-top: 4px solid var(--vc-blue) !important; }

/* Listados del blog y búsqueda */
.vc-listing { margin-top: var(--wp--preset--spacing--40) !important; }
.vc-post-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--vc-line); border-radius: 14px; box-shadow: var(--vc-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.vc-post-card:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--raised); }
.vc-post-card > * { margin: 0 !important; width: 100%; }
.vc-post-card__media { overflow: hidden; background: var(--wp--preset--color--blue-soft); }
.vc-post-card__media img { width: 100%; object-fit: cover; transition: transform .4s ease; }
.vc-post-card:hover .vc-post-card__media img { transform: scale(1.03); }
.vc-post-card:not(:has(img))::before { content: ""; display: block; width: 100%; aspect-ratio: 3 / 1; background: url("../img/logo-valoracasa-color.png") center / auto 34% no-repeat, linear-gradient(135deg, var(--wp--preset--color--blue-soft), #f4f8fc); }
.vc-post-card__body { flex: 1 1 auto; padding: 1.25rem 1.4rem 1.2rem; }
.vc-post-card__body > * { margin: 0; }
.vc-post-card__cat a,
.vc-kind { position: relative; z-index: 2; display: inline-block; background: var(--wp--preset--color--blue-soft); color: var(--wp--preset--color--blue-dark); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 4px; text-decoration: none; }
.vc-kind--page { background: var(--wp--preset--color--surface); color: var(--vc-navy); border: 1px solid var(--vc-line); }
.vc-kind--property,
.vc-kind--properties { background: #fff3e0; color: #b45f00; }
.vc-post-card__title { font-size: 1.125rem; line-height: 1.35; text-transform: none; }
.vc-post-card__title a { color: var(--vc-navy); text-decoration: none; }
.vc-post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.vc-post-card:hover .vc-post-card__title a { color: var(--vc-blue); }
.vc-post-card__excerpt p { margin: 0; color: var(--wp--preset--color--muted); font-size: .875rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vc-post-card__meta { margin-top: auto !important; padding-top: .9rem; border-top: 1px solid var(--vc-line); align-items: center; font-size: .8125rem; color: var(--wp--preset--color--muted); }
.vc-post-card__info > * { margin: 0; }
.vc-post-card__info > * + *::before { content: "·"; margin-right: .5rem; }
.vc-post-card__more { position: relative; z-index: 2; color: var(--vc-blue); font-weight: 700; font-size: .8125rem; text-decoration: none; }
.vc-post-card__more::after { content: " →"; }
/* Primera entrada destacada a todo el ancho (solo en la primera página) */
@media (min-width: 900px) {
	body:not(.paged) .vc-blog-grid--featured > li:first-child { grid-column: 1 / -1; }
	body:not(.paged) .vc-blog-grid--featured > li:first-child .vc-post-card { flex-direction: row !important; align-items: stretch; }
	body:not(.paged) .vc-blog-grid--featured > li:first-child .vc-post-card__media { flex: 0 0 56%; width: 56%; }
	body:not(.paged) .vc-blog-grid--featured > li:first-child .vc-post-card__media a,
	body:not(.paged) .vc-blog-grid--featured > li:first-child .vc-post-card__media img { height: 100%; }
	body:not(.paged) .vc-blog-grid--featured > li:first-child .vc-post-card__body { justify-content: center; padding: 2.25rem 2.5rem; gap: .9rem; }
	body:not(.paged) .vc-blog-grid--featured > li:first-child .vc-post-card__title { font-size: clamp(1.4rem, 1rem + 1vw, 1.875rem); }
	body:not(.paged) .vc-blog-grid--featured > li:first-child .vc-post-card__excerpt p { -webkit-line-clamp: 4; font-size: .9375rem; }
	body:not(.paged) .vc-blog-grid--featured > li:first-child .vc-post-card__meta { margin-top: .5rem !important; }
}
.vc-pagination { margin-top: var(--wp--preset--spacing--40) !important; gap: .4rem; }
.vc-pagination a,
.vc-pagination .current { color: var(--vc-navy); background: #fff; }
.vc-pagination a:hover { border-color: var(--vc-blue); color: var(--vc-blue); }
.vc-pagination .current { background: var(--vc-blue); color: #fff; }
.vc-empty { margin-block: var(--wp--preset--spacing--40) !important; color: var(--wp--preset--color--muted); }

/* Banda "¿Buscas vivienda?" */
.vc-findbox { margin-top: var(--wp--preset--spacing--50) !important; gap: 1.5rem !important; padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem) clamp(1.5rem, 1rem + 2vw, 3rem); border-radius: 16px; color: #fff; background: radial-gradient(circle at 90% 0%, rgba(0, 163, 232, .45), transparent 50%), linear-gradient(135deg, var(--wp--preset--color--navy-2), var(--vc-navy)); }
.vc-findbox__text > * { margin: 0; }
.vc-findbox h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.875rem); }
.vc-findbox p { color: #c9d6e8; margin-top: .4rem; }

/* Rejilla de accesos (404 y búsqueda vacía) */
.vc-linkgrid__item { background: #fff; border: 1px solid var(--vc-line); border-radius: 14px; box-shadow: var(--vc-shadow); padding: 1.5rem 1.5rem 1.5rem 5.25rem !important; margin: 0 !important; }
.vc-linkgrid__item::before { content: ""; position: absolute; left: 1.5rem; top: 1.5rem; width: 48px; height: 48px; border-radius: 50%; background: var(--wp--preset--color--blue-soft); pointer-events: none; }
.vc-linkgrid__item::after { content: ""; position: absolute; left: calc(1.5rem + 12px); top: calc(1.5rem + 12px); width: 24px; height: 24px; background: var(--vc-blue); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; pointer-events: none; }
.vc-linkgrid__item > * { margin: 0 !important; }
.vc-linkgrid__item h3 { font-size: 1.125rem; margin-bottom: .25rem !important; }
.vc-linkgrid__item p { color: var(--wp--preset--color--muted); font-size: .875rem; }
.vc-linkgrid__item h3 a::before { content: "→"; position: absolute; right: 1.5rem; top: 1.5rem; color: var(--vc-blue); }


@media (max-width: 781px) {
	.vc-phero::after { width: 240px; height: 240px; right: -80px; bottom: -120px; }
	.vc-share { margin-left: 0; }
	.vc-authorbox { flex-direction: column; }
	.vc-crumbs [aria-current] { max-width: 28ch; }
}

/* 8. Landing de venta (patrón valoracasa/landing-vender-casa) ----------- */
.vc-lv-soft { background: #f3f8fc; }
.vc-lv-head { margin-bottom: 2.5rem !important; }
.vc-lv-head > * { margin-block: 0 !important; }
.vc-lv-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.vc-lv-head p { color: var(--wp--preset--color--muted); margin-top: .6rem !important; font-size: 1.0625rem; }

/* Cabecera con foto y formulario */
.vc-lv-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) !important; }
.vc-lv-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(10, 20, 45, .88) 0%, rgba(10, 20, 45, .62) 50%, rgba(10, 20, 45, .3) 100%) !important; opacity: 1 !important; }
.vc-lv-hero__text > * { margin-block: 0 !important; }
.vc-lv-hero .vc-crumbs { margin-bottom: 1.4rem !important; }
.vc-lv-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.vc-lv-hero__sub { color: #5cc0ff; font-weight: 700; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); margin-top: .9rem !important; }
.vc-lv-hero__lead { color: #dbe6f3; max-width: 520px; line-height: 1.6; margin-top: .9rem !important; }
.vc-lv-hero__list { list-style: none; padding: 0; margin-top: 1.5rem !important; display: grid; gap: .55rem; color: #fff; font-weight: 600; font-size: .9375rem; }
.vc-lv-hero__list li { display: flex; align-items: center; gap: .65rem; margin: 0; }
.vc-lv-hero__list li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--vc-blue); color: #fff; font-size: .75rem; font-weight: 800; }
.vc-lv-form { background: #fff; color: var(--wp--preset--color--ink); border-radius: 16px; padding: 2rem 2rem 1.6rem !important; box-shadow: 0 24px 60px rgba(5, 12, 30, .35); scroll-margin-top: 110px; }
.vc-lv-form > * { margin-block: 0 !important; }
.vc-lv-form__title { font-size: 1.375rem !important; font-weight: 800; color: var(--vc-navy); }
.vc-lv-form__sub { color: var(--wp--preset--color--muted); font-size: .875rem; margin: .3rem 0 1.1rem !important; }
.vc-lv-form .wpcf7 p { margin: 0 0 .8rem; }
.vc-lv-form .wpcf7 input[type="submit"] { width: 100%; }

/* Rejillas y tarjetas */
.vc-lv-grid { gap: 1.5rem !important; }
@media (min-width: 1000px) { .vc-lv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.vc-lv-card { background: #fff; border: 1px solid var(--vc-line); border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); padding: 1.75rem !important; }
.vc-lv-card > * { margin-block: 0 !important; }
.vc-lv-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--vc-navy); }
.vc-lv-card p { color: var(--wp--preset--color--muted); font-size: .9rem; line-height: 1.6; margin-top: .5rem !important; }

/* Pasos e iconos: círculo suave con icono de línea (icons.css) */
.vc-lv-step,
.vc-lv-icon { position: relative; padding-top: calc(1.75rem + 56px + 1.1rem) !important; }
.vc-lv-step::before,
.vc-lv-icon::before { content: ""; position: absolute; top: 1.75rem; left: 1.75rem; width: 56px; height: 56px; border-radius: 50%; background: var(--wp--preset--color--blue-soft); }
.vc-lv-step::after,
.vc-lv-icon::after { content: ""; position: absolute; top: calc(1.75rem + 15px); left: calc(1.75rem + 15px); width: 26px; height: 26px; background: var(--vc-blue); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.vc-lv-step__num { color: var(--vc-blue) !important; font-size: .75rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .35rem !important; }
.vc-lv-checks { list-style: none; padding: 0; margin-top: 1rem !important; display: grid; gap: .55rem; font-size: .9rem; }
.vc-lv-checks li { position: relative; padding-left: 1.6rem; margin: 0; color: var(--wp--preset--color--ink); }
.vc-lv-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--vc-blue); font-weight: 800; }
.vc-lv-checks a { color: var(--vc-navy); text-decoration: underline; text-decoration-color: rgba(0, 143, 226, .35); text-underline-offset: 3px; }
.vc-lv-checks a:hover { color: var(--vc-blue); }

.wp-block-button.vc-lv-pill > .wp-block-button__link { background: var(--vc-navy); color: #fff; border-radius: 40px; padding: .9rem 1.8rem; text-transform: none; letter-spacing: 0; font-size: .9375rem; }
.wp-block-button.vc-lv-pill > .wp-block-button__link:hover { background: var(--vc-blue); }

/* Claves + collage */
.vc-lv-keys h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 800; margin: 0 0 1.6rem !important; }
.vc-lv-key { padding-left: 1.1rem; border-left: 3px solid var(--wp--preset--color--blue-soft); margin: 0 0 1.25rem !important; transition: border-color .15s ease; }
.vc-lv-key:hover { border-left-color: var(--vc-blue); }
.vc-lv-key > * { margin: 0 !important; }
.vc-lv-key h3 { font-size: 1.0625rem; font-weight: 700; color: var(--vc-navy); }
.vc-lv-key p { color: var(--wp--preset--color--muted); font-size: .9rem; margin-top: .25rem !important; }
.vc-lv-collage { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; aspect-ratio: 1 / 1; }
.vc-lv-collage > * { margin: 0 !important; }
.vc-lv-collage figure { border-radius: 16px; overflow: hidden; height: 100%; }
.vc-lv-collage img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.vc-lv-collage__a { grid-row: 1 / 3; }
.vc-lv-collage__b { grid-row: 2 / 3; }
.vc-lv-collage__badge { grid-column: 2; grid-row: 1; align-self: end; background: var(--vc-blue); color: #fff; border-radius: 16px; padding: 1.4rem !important; font-size: .9375rem; line-height: 1.4; }
.vc-lv-collage__badge strong { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: .3rem; }

/* Situaciones: tarjetas enlazadas con flecha */
.vc-lv-case { padding: 1.3rem 3rem 1.3rem 1.4rem !important; }
.vc-lv-case h3 { font-size: 1rem; }
.vc-lv-case p { font-size: .84rem; margin-top: .25rem !important; }
.vc-lv-case::after { content: "→"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--vc-blue); font-weight: 700; transition: transform .15s ease; }
.vc-lv-case:hover::after { transform: translate(3px, -50%); }

/* Banda oscura */
.vc-lv-band { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) !important; margin-block: 0 !important; }
.vc-lv-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 800; margin-bottom: .6rem !important; }
.vc-lv-band p { color: #c9d6e8; margin-bottom: 1.6rem !important; }
.wp-block-button.vc-lv-orange > .wp-block-button__link { background: var(--wp--preset--color--orange); color: #fff; border-radius: 40px; padding: .9rem 1.8rem; text-transform: none; letter-spacing: 0; }
.wp-block-button.vc-lv-orange > .wp-block-button__link:hover { background: #e88700; }
.wp-block-button.vc-lv-ghost > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .45); border-radius: 40px; padding: .9rem 1.6rem; text-transform: none; letter-spacing: 0; }
.wp-block-button.vc-lv-ghost > .wp-block-button__link:hover { background: #fff; color: var(--vc-navy); border-color: #fff; }

/* Vídeos */
.vc-lv-video { padding: 0 !important; overflow: hidden; }
.vc-lv-video .wp-block-embed { margin: 0 !important; background: #0f1b34; }
.vc-lv-video h3 { padding: 1.1rem 1.4rem 1.3rem; }

@media (max-width: 781px) {
	.vc-lv-hero__cols { gap: 2rem !important; }
	.vc-lv-form { padding: 1.5rem 1.25rem 1.2rem !important; }
	.vc-lv-keys { gap: 2rem !important; }
	.vc-lv-collage__badge { padding: 1rem !important; font-size: .8125rem; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Noticias relacionadas en el lateral */
.vc-article__side > * + * { margin-top: 1.5rem; }
.vc-side-news { border: 1px solid var(--vc-line); border-radius: 12px; padding: 1.25rem 1.4rem 1.1rem; background: #fff; }
.vc-side-news__list { list-style: none; padding: 0; margin: .4rem 0 0; }
.vc-side-news__list > li { margin: 0; padding: .8rem 0; border-bottom: 1px solid var(--vc-line); }
.vc-side-news__list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.vc-side-news__item { gap: .9rem !important; position: relative; }
.vc-side-news__img { flex: none; width: 76px !important; margin: 0 !important; border-radius: 8px; overflow: hidden; background: var(--wp--preset--color--blue-soft); }
.vc-side-news__img img { width: 76px; height: 76px !important; object-fit: cover; display: block; }
.vc-side-news__txt > * { margin: 0 !important; }
.vc-side-news__title { font-size: .875rem !important; line-height: 1.35; font-weight: 700; text-transform: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vc-side-news__title a { color: var(--vc-navy); text-decoration: none; }
.vc-side-news__title a::after { content: ""; position: absolute; inset: 0; }
.vc-side-news__item:hover .vc-side-news__title a { color: var(--vc-blue); }
.vc-side-news__date { font-size: .75rem; color: var(--wp--preset--color--muted); margin-top: .35rem !important; }
@media (min-width: 782px) { .vc-side-sticky { position: sticky; top: calc(var(--vc-header-h, 78px) + 1.5rem); } }

/* Página de autor */
.vc-phero--author { padding-bottom: clamp(2.5rem, 1.8rem + 3vw, 4.5rem) !important; }
.vc-author { display: flex; align-items: center; gap: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.vc-author__photo { flex: none; position: relative; }
.vc-author__photo img { display: block; width: clamp(110px, 80px + 7vw, 168px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 6px rgba(0, 143, 226, .45), 0 20px 50px rgba(0, 0, 0, .35); }
.vc-author__photo::after { content: "✓"; position: absolute; right: 6%; bottom: 6%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--vc-blue); color: #fff; font-size: .8rem; font-weight: 800; border: 3px solid var(--vc-navy); }
.vc-author__body > * { margin: 0; }
.vc-author__name { color: #fff; font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.vc-author__role { color: #5cc0ff; font-weight: 700; margin-top: .45rem !important; }
.vc-author__bio { color: #c9d6e8; max-width: 640px; line-height: 1.65; margin-top: .9rem !important; }
.vc-author__stats { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin-top: 1.4rem !important; }
.vc-author__stats li { margin: 0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #dbe6f3; border-radius: 30px; padding: .45rem 1rem; font-size: .8125rem; }
.vc-author__stats strong { color: #fff; }
.vc-author__links { margin-top: 1.1rem !important; }
.vc-author__links a { color: #fff; font-weight: 700; font-size: .875rem; }

.vc-author-head { max-width: var(--wp--style--global--wide-size, 1240px); margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto -1rem !important; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; }
.vc-author-head h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem); }
.vc-author-head .vc-shead__sub { margin: .5rem 0 0; }
.vc-author-topics { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; padding: 0; margin: 0; max-width: 640px; }
.vc-author-topics li { margin: 0; }
.vc-author-topics__label { font-weight: 700; color: var(--vc-navy); font-size: .8125rem; margin-right: .25rem !important; }
.vc-author-topics a { display: inline-block; background: #fff; color: var(--vc-navy); border: 1px solid var(--vc-line); border-radius: 30px; padding: .4rem .95rem; font-size: .8125rem; font-weight: 500; text-decoration: none; }
.vc-author-topics a:hover { border-color: var(--vc-blue); color: var(--vc-blue); }
@media (max-width: 781px) {
	.vc-author { flex-direction: column; align-items: flex-start; }
}

/* Reseñas (WP Review Slider) en la banda azul: rejilla 2×2, tarjetas blancas y nombre legible */
.vc-reviews .wprevpro_t1_outer_div { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin: 0 !important; padding: 0 !important; }
.vc-reviews .wprevpro_t1_outer_div::before, .vc-reviews .wprevpro_t1_outer_div::after { content: none !important; }
.vc-reviews .wprevpro_t1_DIV_1 { width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; }
.vc-reviews .wprevpro_t1_DIV_2 { border-radius: 12px !important; background: #fff !important; color: #16243a !important; padding: 1.1rem 1.2rem 2.2rem !important; }
.vc-reviews .wprevpro_t1_P_3 { font-style: normal !important; font-size: .9rem !important; line-height: 1.55 !important; color: #16243a !important; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.vc-reviews .wprevpro_t1_SPAN_5 { color: #fff !important; font-weight: 700; }
.vc-reviews .wprev_showdate_T1 { color: rgba(255, 255, 255, .8) !important; font-weight: 400; }
@media (max-width: 781px) { .vc-reviews .wprevpro_t1_outer_div { grid-template-columns: 1fr; } }

/* Las comillas del plugin se montaban sobre las estrellas */
.vc-reviews .wprevpro_t1_DIV_2::before { content: none !important; }
/* Fotos de los inmuebles en 16:10 (su formato real): se ven enteras, con el logo y la zona */
.vlvi-card-media { aspect-ratio: 16 / 10 !important; }
/* Las fotos ya llevan el precio abajo a la derecha: fuera la etiqueta "N fotos" que lo tapaba */
.vlvi-card-photos { display: none !important; }
/* Portada: las fotos de Cártama llevan los datos arriba a la izquierda; las etiquetas (todas "Destacado" + ref.) sobran */
.home .vc-section .vlvi-card-badges { display: none !important; }
/* Rejillas de botones-imagen en páginas antiguas (p. ej. "Vende tu piso según condiciones") */
.vc-img-grid4 { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.vc-img-grid4 a, .vc-img-grid4 img { display: block; width: 100%; height: auto; margin: 0; }
@media (max-width: 600px) { .vc-img-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Tarjeta "Contacta con Valoracasa" dentro del contenido */
.vc-contacto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; border-radius: 12px; padding: 2.25rem 2.5rem; margin: 1.5rem 0 2rem; }
.vc-contacto__txt { flex: 1 1 320px; }
.vc-contacto__txt > * { margin: 0 0 .5rem; }
.vc-contacto p { color: rgba(255, 255, 255, .85); }
.vc-contacto .vc-contacto__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; line-height: 1.2; color: #fff; }
.vc-contacto .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.vc-contacto .wp-block-button__link { text-decoration: none; }
@media (max-width: 600px) { .vc-contacto { padding: 1.75rem 1.4rem; } }
/* Páginas de oficina: contacto + mapa, 4 iconos, equipo y vídeos en filas */
.vc-of-2 { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; margin: 1.5rem 0 2rem; }
.vc-of-2 > a, .vc-of-2 > img { display: block; }
.vc-of-2 img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; margin: 0; }
.vc-of-2 iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; border-radius: 12px; }
.vc-of-videos iframe { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.vc-of-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; text-align: center; }
.vc-of-icon a { display: block; text-decoration: none; }
.vc-of-icon img { display: block; width: 100%; max-width: 150px; height: auto; margin: 0 auto .5rem; }
.vc-of-icon a + a { font-weight: 700; font-size: .9375rem; color: var(--vc-navy); }
.vc-of-icon a + a:hover { color: var(--vc-blue); }
.vc-of-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.vc-of-team img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 0; }
@media (max-width: 700px) {
	.vc-of-2 { grid-template-columns: 1fr; }
	.vc-of-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vc-of-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Formulario de contacto + imagen de WhatsApp en la misma fila */
.vc-form-wa { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin: 2rem 0; }
.vc-form-wa__form > :first-child { margin-top: 0; }
.vc-form-wa__img a, .vc-form-wa__img img { display: block; width: 100%; height: auto; margin: 0; border-radius: 12px; }
@media (max-width: 700px) { .vc-form-wa { grid-template-columns: 1fr; } .vc-form-wa__img { max-width: 320px; margin: 0 auto; } }
/* Iconos con texto en fila (p. ej. "Trabajamos con los mejores seguros") */
.vc-of-feat img { display: block; width: 100%; max-width: 96px; height: auto; margin: 0 auto .6rem; }
.vc-of-feat p { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .03em; color: var(--vc-navy); }
