/* =========================================================================
   ADELANTE — «Moderno Oscuro» en versión limpia e invertida (fondo blanco)
   Todo va colgado de body.adl para ganar a las reglas del plugin
   (.ip-style-moderno …) sin tocar sus archivos. Los valores salen de
   Apariencia → Personalizar → Diseño Adelante (variables --adl-*).
   ========================================================================= */

/* ------------------------------------------------------------------ 1. Base */
body.adl {
	--ip-bg: var(--adl-bg);
	--ip-bg-alt: var(--adl-bg);
	--ip-text: var(--adl-text);
	--ip-muted: var(--adl-muted);
	--ip-line: var(--adl-line);
	--ip-card: var(--adl-bg);
	--ip-shadow: none;
	--ip-primary: var(--adl-accent);
	--ip-primary-d: var(--adl-accent);
	/* Tonos derivados del violeta de la plantilla: a grises neutros. */
	--ip-primary-rgb: 17, 17, 17;
	--ip-secondary-rgb: 17, 17, 17;
	--ip-primary-l: #555555;
	--ip-primary-xl: #f2f2f2;
	--ip-secondary-l: #555555;
	--ip-secondary-xl: #f2f2f2;
	--ip-secondary: var(--adl-accent);
	--ip-radius: var(--adl-radius);
	--ip-font-head: var(--adl-font-head);
	--ip-font-body: var(--adl-font-body);
	background: var(--adl-bg) !important;
	color: var(--adl-text);
	font-family: var(--adl-font-body);
	font-size: var(--adl-fs-base);
	color-scheme: light;
}
body.adl .ip-h1,
body.adl .ip-h2,
body.adl h1, body.adl h2, body.adl h3, body.adl h4 { font-family: var(--adl-font-head); color: var(--adl-text); }
body.adl .ip-h2 { font-size: var(--adl-fs-h2); letter-spacing: -.01em; }
body.adl .ip-eyebrow { color: var(--adl-muted); }
body.adl .ip-sec-sub, body.adl p { color: inherit; }

/* Todo a lo ancho de la pantalla, con un margen lateral ajustable. */
body.adl .ip-wrap { max-width: none; padding-left: var(--adl-side); padding-right: var(--adl-side); }
body.adl .ip-section { padding: var(--adl-sec-pad) 0; background: var(--adl-bg); }

/* Botones: sólidos, sin degradados ni saltos. */
body.adl .ip-btn { border-radius: 100px; transform: none !important; }
body.adl .ip-btn--primary {
	background: var(--adl-accent); color: var(--adl-accent-txt); box-shadow: none; border: 1px solid var(--adl-accent);
}
body.adl .ip-btn--primary:hover { filter: none; opacity: .85; box-shadow: none; }
body.adl .ip-btn--ghost { color: var(--adl-text); background: transparent; border: 1px solid var(--adl-line); }
body.adl .ip-btn--ghost:hover { background: var(--adl-text); color: var(--adl-bg); border-color: var(--adl-text); }

/* Calculadora de hipoteca de la ficha: se apaga en Personalizar → Diseño Adelante → Ficha del inmueble. */
body.adl-sin-hipoteca .ip-hipoteca { display: none !important; }

/* Ítems de menú marcados como ocultos (clase CSS «adl-oculto» en Apariencia → Menús). */
body.adl .adl-oculto { display: none !important; }

/* ------------------------------------------------------------- 2. Cabecera */
/* Translúcida: el vídeo sube hasta arriba del todo. */
body.adl .ip-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
	border-bottom: 1px solid var(--adl-line);
	transition: transform .35s ease, background-color .3s ease, border-color .3s ease;
}
body.adl .ip-main { padding-top: var(--ip-header-h); }
body.adl.home .ip-main { padding-top: 0; }

/* Sobre el vídeo de la portada: cristal oscuro suave y textos blancos. */
body.adl .ip-header.is-overlay {
	background: rgba(0, 0, 0, var(--adl-hdr-alpha));
	border-bottom-color: rgba(255, 255, 255, .12);
}
body.adl .ip-header.is-overlay .ip-nav > ul a,
body.adl .ip-header.is-overlay .ip-nav .ip-btn--ghost { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
body.adl .ip-header.is-overlay .ip-nav .ip-btn--ghost { border-color: rgba(255, 255, 255, .45); }
body.adl .ip-header.is-overlay .ip-nav .ip-btn--primary { background: #fff; color: #111; border-color: #fff; }
body.adl .ip-header.is-overlay .ip-burger span { background: #fff; }

/* Al bajar de la portada, pasa a blanco translúcido con textos negros. */
body.adl.ip-scrolled .ip-header.is-overlay {
	background: rgba(255, 255, 255, .88); border-bottom-color: var(--adl-line);
}
body.adl.ip-scrolled .ip-header.is-overlay .ip-nav > ul a,
body.adl.ip-scrolled .ip-header.is-overlay .ip-nav .ip-btn--ghost { color: var(--adl-text); text-shadow: none; }
body.adl.ip-scrolled .ip-header.is-overlay .ip-nav .ip-btn--ghost { border-color: var(--adl-line); }
body.adl.ip-scrolled .ip-header.is-overlay .ip-nav .ip-btn--primary { background: var(--adl-accent); color: var(--adl-accent-txt); border-color: var(--adl-accent); }
body.adl.ip-scrolled .ip-header.is-overlay .ip-burger span { background: var(--adl-text); }

/* Desaparece al bajar y vuelve con un ligero scroll hacia arriba (lo decide adelante.js). */
body.adl-hdr-hide .ip-header.adl-hdr-oculta { transform: translateY(-100%); }

body.adl .ip-nav > ul a { color: var(--adl-text); font-size: var(--adl-fs-menu); font-weight: 500; }
body.adl .ip-nav > ul a:hover,
body.adl .ip-nav > ul .current-menu-item > a { color: inherit; opacity: .7; }
body.adl .ip-nav > ul a::after { display: none; }
/* Hamburguesa y «cerrar»: color explícito (Safari del iPhone pinta los botones de azul). */
body.adl .ip-burger,
body.adl .ip-nav__close { color: var(--adl-text); -webkit-appearance: none; appearance: none; }
body.adl .ip-burger span { background: var(--adl-text); }
body.adl .ip-brand__logo { height: 34px; width: auto; max-width: 220px; filter: none !important; }

/* ------------------------------------------------------ 3. Portada (hero) */
body.adl .ip-hero { min-height: 100vh; min-height: 100svh; margin-top: 0; }
body.adl .ip-hero__media::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .25) 50%, rgba(0, 0, 0, .45) 100%);
}
body.adl .ip-hero__overlay { display: none; }

/* Fuera el bloque de textos y botones de la izquierda; solo queda el titular. */
body.adl .ip-hero__eyebrow,
body.adl .ip-hero__sub,
body.adl .ip-hero__actions,
body.adl .ip-hero__meta { display: none !important; }

/* Titular y buscador, justo en el centro del vídeo. */
body.adl .ip-hero__in {
	width: 100%; min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: var(--ip-header-h) var(--adl-side) 40px; text-align: center;
}
body.adl .ip-hero__text { max-width: none; }
body.adl .ip-hero__title {
	font-family: var(--adl-font-head); font-size: var(--adl-fs-hero); line-height: 1.05;
	background: none; -webkit-background-clip: initial; background-clip: initial;
	color: #fff; max-width: none; margin: 0 0 32px; text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
body.adl .ip-hero__search { margin: 0; width: 100%; max-width: 1180px; }

/* ---------------------------------------------------- 4. Buscador píldoras */
body.adl .ip-hero .ip-buscador {
	background: transparent; border: 0; box-shadow: none; padding: 0;
	backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.adl .ip-hero .ip-buscador__main {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px;
}
/* Las etiquetas pasan dentro de las píldoras (se quedan para lectores de pantalla). */
body.adl .ip-hero .ip-field > label {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* Tipo de inmueble: oculto de momento. */
body.adl .ip-hero .ip-field:has(#ip-tipo) { display: none; }
body.adl .ip-hero .ip-field { flex: 0 1 210px; min-width: 0; position: relative; }
body.adl .ip-hero .ip-field--q { flex: 1 1 280px; }
body.adl .ip-hero .ip-field input,
body.adl .ip-hero .ip-field select {
	height: 54px; border-radius: 100px; padding: 0 22px;
	background: rgba(255, 255, 255, .96); border: 1px solid transparent; color: #111;
	font-size: 15px; box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}
body.adl .ip-hero .ip-field__ico input { padding-left: 46px; }
body.adl .ip-hero .ip-field__ico svg { color: #111; left: 18px; }
body.adl .ip-hero .ip-field input::placeholder { color: #666; }
body.adl .ip-hero .ip-field select option { background: #fff; color: #111; }
body.adl .ip-hero .ip-buscador__submit {
	height: 54px; border-radius: 100px; padding: 0 28px;
	background: var(--adl-accent); color: var(--adl-accent-txt); box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}
body.adl .ip-hero .ip-buscador__more {
	height: 54px; padding: 0 22px; white-space: nowrap; border-radius: 100px; color: #fff; border: 1px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .2);
}
/* «Más filtros» abre un panel blanco debajo. */
body.adl .ip-hero .ip-buscador__adv {
	margin-top: 12px; padding: 20px; border-radius: 22px; background: #fff; color: #111; text-align: left;
}
body.adl .ip-hero .ip-buscador__adv label,
body.adl .ip-hero .ip-buscador__adv .ip-field__legend { position: static !important; width: auto; height: auto; clip: auto; color: #666; }
body.adl .ip-hero .ip-buscador__adv input,
body.adl .ip-hero .ip-buscador__adv select { background: #f4f4f4; box-shadow: none; }
body.adl .ip-chip span { color: #111; border-color: var(--adl-line); }

/* Buscador del listado y de otras páginas: claro. */
body.adl .ip-buscador:not(.ip-buscador--hero) { background: var(--adl-bg); border: 1px solid var(--adl-line); box-shadow: none; backdrop-filter: none; }
body.adl .ip-field input, body.adl .ip-field select { background: #fff; color: var(--adl-text); border-color: var(--adl-line); }
body.adl .ip-field select option { background: #fff; color: #111; }
body.adl .ip-field label, body.adl .ip-field__legend { color: var(--adl-muted); }
body.adl .ip-buscador__submit { background: var(--adl-accent); color: var(--adl-accent-txt); }
body.adl .ip-buscador__more { color: var(--adl-text); border-color: var(--adl-line); }

/* Accesos rápidos (Comprar / Alquilar / Valorar…): fuera. */
body.adl .ip-quick { display: none !important; }

/* ------------------------------------------ 5. Últimas propiedades destacadas */
body.adl .ip-section--destacados .ip-sec-head { display: block; text-align: center; }
body.adl .ip-section--destacados .ip-sec-head .ip-eyebrow,
body.adl .ip-section--destacados .ip-sec-head .ip-sec-sub,
body.adl .ip-section--destacados .ip-sec-head > .ip-btn { display: none; }
body.adl .ip-section--destacados .ip-h2 { margin: 0 auto 40px; }

body.adl .ip-results--grid { grid-template-columns: repeat(var(--adl-cols), minmax(0, 1fr)); gap: var(--adl-gap-fila) var(--adl-gap); }

/* ---------------------------------------------------------------- 6. Fichas */
body.adl .ip-card,
body.adl .ip-card:hover {
	background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: none;
	backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.adl .ip-card__media { padding-top: 56.25%; border-radius: var(--adl-radius); background: #f1f1f1; }
body.adl .ip-card__media::after { display: none; }
body.adl .ip-card__media img,
body.adl .ip-card:hover .ip-card__media img { transform: none; transition: opacity .25s ease; }
body.adl .ip-card__price,
body.adl .ip-card__photos,
body.adl .ip-card__link { display: none !important; }
body.adl .ip-badge { background: rgba(255, 255, 255, .92); color: #111; border: 0; }
body.adl .ip-badge--op { background: #111; color: #fff; }
/* 30/09/2026: Adelante solo vende; la etiqueta «Venta» sobra en tarjetas y ficha. */
body.adl .ip-badge--op { display: none !important; }

/* Texto centrado bajo la foto. */
body.adl .ip-card__body { padding: 16px 6px 0; text-align: center; }
body.adl .ip-card__loc { justify-content: center; color: var(--adl-muted); }
body.adl .ip-card__title { font-size: var(--adl-fs-card); font-weight: 500; }
body.adl .ip-card__title a { color: var(--adl-text); }
body.adl .ip-card__price2 {
	display: block; font-family: var(--adl-font-head); font-size: var(--adl-fs-price); font-weight: 600;
	color: var(--adl-text); margin: 6px 0 8px;
}
body.adl .ip-card__feats { justify-content: center; }
body.adl .ip-card__feats li { color: var(--adl-muted); }
body.adl .ip-card__foot { justify-content: center; border-top: 0; padding-top: 4px; }
body.adl .ip-card__ref { color: var(--adl-muted); }

/* Flechas para pasar las fotos (las crea adelante.js si hay más de una). */
body.adl .adl-flecha {
	position: absolute; top: 50%; z-index: 3; width: 38px; height: 38px; margin-top: -19px;
	border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, .9); color: #111;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity .2s ease;
}
body.adl .adl-flecha--prev { left: 10px; }
body.adl .adl-flecha--next { right: 10px; }
body.adl .ip-card__media:hover .adl-flecha,
body.adl .adl-flecha:focus-visible { opacity: 1; }
@media (hover: none) { body.adl .adl-flecha { opacity: 1; width: 32px; height: 32px; margin-top: -16px; } }
body.adl .adl-puntos { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
body.adl .adl-puntos i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
body.adl .adl-puntos i.is-on { background: #fff; }

/* ------------------------------------------------ 7. Resto de páginas en claro */
body.adl .ip-pagehero, body.adl .ip-pagehead { color: var(--adl-text); }
body.adl .ip-cta, body.adl .ip-stats, body.adl .ip-servicios { background: var(--adl-bg); border-color: var(--adl-line); }
body.adl .ip-cta__form, body.adl .ip-contacto__form, body.adl .ip-contactbox,
body.adl .ip-servicio, body.adl .ip-post, body.adl .ip-keyfact, body.adl .ip-hipoteca,
body.adl .ip-asidebox, body.adl .ip-infocard {
	background: var(--adl-bg); border: 1px solid var(--adl-line); border-radius: var(--adl-radius);
	backdrop-filter: none; box-shadow: none;
}
body.adl .ip-servicio:hover, body.adl .ip-post:hover, body.adl a.ip-infocard:hover { transform: none; box-shadow: none; }
body.adl .ip-form input, body.adl .ip-form textarea, body.adl .ip-form select { background: #fff; color: var(--adl-text); border-color: var(--adl-line); }
body.adl .ip-hipoteca__result { background: #f6f6f6; border-color: var(--adl-line); }
body.adl .ip-specs li { border-bottom-color: var(--adl-line); }
body.adl .ip-galeria__grid { border-radius: var(--adl-radius); }
body.adl .ip-galeria__item:hover img { transform: none; }
body.adl .ip-galeria__more { background: rgba(255, 255, 255, .92); color: #111; border: 0; }
body.adl .ip-stat strong { background: none; color: var(--adl-text); -webkit-background-clip: initial; background-clip: initial; }
body.adl .ip-pager__p, body.adl .ip-pager__nav { border-color: var(--adl-line); color: var(--adl-text); }

/* Pie claro. */
body.adl .ip-footer { background: var(--adl-footer-bg); color: var(--adl-muted); border-top: 1px solid var(--adl-line); }
body.adl .ip-footer h4, body.adl .ip-footer__name, body.adl .ip-footer a:hover { color: var(--adl-text); }
body.adl .ip-footer__social a { border-bottom-color: var(--adl-line); }
body.adl .ip-footer__bottom { border-top-color: var(--adl-line); }
body.adl .ip-footer__logo { filter: none !important; }

/* ---------------------------------------------------------- 8. Tamaños medios */
@media (max-width: 1200px) {
	body.adl .ip-results--grid { grid-template-columns: repeat(min(var(--adl-cols), 3), minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	/* Tablet: Personalizar → Diseño Adelante → Espacios y fichas. */
	body.adl .ip-results--grid { grid-template-columns: repeat(var(--adl-cols-tablet), minmax(0, 1fr)); }
	body.adl .ip-hero__title { font-size: calc(var(--adl-fs-hero) * .7); }
	/* Menú móvil desplegado: panel blanco con textos negros. */
	body.adl .ip-nav { background: #fff; }
	body.adl .ip-nav > ul a,
	body.adl .ip-header.is-overlay .ip-nav > ul a { color: #111; text-shadow: none; }
	body.adl .ip-header.is-overlay .ip-nav .ip-btn--ghost { color: #111; border-color: var(--adl-line); }
}
@media (max-width: 860px) {
	/* El plugin quita el hero a pantalla completa en móvil: aquí se mantiene. */
	body.adl .ip-hero { min-height: 100vh; min-height: 100svh; margin-top: 0; }
	body.adl .ip-hero__in { padding: calc(var(--ip-header-h) + 20px) 20px 40px; }
}
@media (max-width: 640px) {
	/* Móvil: columnas y separación propias (entre columnas, la mitad que entre filas). */
	body.adl .ip-results--grid { grid-template-columns: repeat(var(--adl-cols-movil), minmax(0, 1fr)); gap: var(--adl-gap-movil) calc(var(--adl-gap-movil) / 2); }
	body.adl .ip-wrap { padding-left: min(var(--adl-side), 20px); padding-right: min(var(--adl-side), 20px); }
	/* Tamaños de móvil (Personalizar → Diseño Adelante → Tipografía, vista Móvil).
	   Sin valor propio se usa el automático: proporcional al de escritorio. */
	body.adl { font-size: var(--adl-fs-base-m, var(--adl-fs-base)); }
	body.adl .ip-nav > ul a { font-size: var(--adl-fs-menu-m, var(--adl-fs-menu)); }
	body.adl .ip-hero__title { font-size: var(--adl-fs-hero-m, calc(var(--adl-fs-hero) * .55)); margin-bottom: 22px; }
	body.adl .ip-h2 { font-size: var(--adl-fs-h2-m, calc(var(--adl-fs-h2) * .72)); }
	body.adl .ip-card__title { font-size: var(--adl-fs-card-m, var(--adl-fs-card)); }
	body.adl .ip-card__price, body.adl .ip-card__price2 { font-size: var(--adl-fs-price-m, var(--adl-fs-price)); }
	body.adl .ip-hero .ip-field,
	body.adl .ip-hero .ip-field--q { flex: 1 1 100%; }
	body.adl .ip-hero .ip-buscador__submit,
	body.adl .ip-hero .ip-buscador__more { flex: 1 1 calc(50% - 5px); justify-content: center; }
	body.adl .ip-section { padding: calc(var(--adl-sec-pad) * .6) 0; }
}

/* 13/10/2026 — En el iPhone el menú lateral cerrado (desplazado a la derecha
   con transform) dejaba arrastrar la página de lado: Safari no siempre aplica
   el overflow-x del body y, al ocultarse la cabecera con transform, el panel
   deja de quedar fijo a la pantalla. Resultado: la web se veía corrida y el
   botón de las tres rayas quedaba fuera. Se recorta también en html y el panel
   cerrado queda invisible del todo. */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body.adl { overflow-x: clip; } }
@media (max-width: 860px) {
	body.adl .ip-nav { visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
	body.adl.ip-nav-open .ip-nav { visibility: visible; transition: transform .3s ease, visibility 0s; }
}

/* 13/10/2026 — Scroll continuo: la paginación queda oculta pero en su sitio
   (el script la usa para saber qué página toca y para detectar el final). */
body.adl.adl-scroll-continuo .ip-pager { visibility: hidden; height: 1px; margin: 0; padding: 0; overflow: hidden; }
body.adl .adl-cargando { text-align: center; padding: 28px 0 8px; font-size: 15px; color: var(--adl-text); opacity: .7; }

/* =========================================================================
   16/11/2026 — Retoques pedidos por Adelante (correo de Tommaso)
   ========================================================================= */

/* Modo oscuro del móvil: la web es clara siempre (con «only light» en la cabecera). */
:root { color-scheme: only light; }
body.adl { color-scheme: only light; }
/* El logo del pie, siempre el negro aunque el script no llegue a cambiarlo. */
body.adl .ip-footer__logo { content: var(--adl-logo-dark, normal); }

/* Portada: «Últimas propiedades destacadas» centrado entre la foto y las fichas. */
body.adl .ip-section--destacados { padding-top: calc(var(--adl-sec-pad) * .55); }
body.adl .ip-section--destacados .ip-h2 { margin: 0 auto calc(var(--adl-sec-pad) * .55); }

/* Menú: blanco roto (el fondo de la web) manteniendo la transparencia. */
body.adl .ip-header,
body.adl.ip-scrolled .ip-header.is-overlay { background: color-mix(in srgb, var(--adl-bg) 88%, transparent); }

/* Números en Bodoni Moda: teléfono del menú, precios y cifras. */
body.adl .ip-nav a[href^="tel:"],
body.adl .ip-footer a[href^="tel:"],
body.adl .ip-card__price2,
body.adl .ip-ficha__precio,
body.adl .ip-contactbox__precio,
body.adl .ip-stat strong { font-family: 'Bodoni Moda', serif; font-variant-numeric: lining-nums; }

/* ------------------------------------------------------------ Comprar */
/* Sin foto: fuera el bloque de texto, solo el buscador. */
body.adl:not(.adl-comprar-foto) .ip-pagehead--listado { display: none; }
/* Con foto (Personalizar → Diseño Adelante → Cabecera de Comprar y Blog): franja baja con el texto dentro. */
body.adl-comprar-foto .ip-pagehead--listado,
body.adl-blog-foto .ip-pagehead:not(.ip-pagehead--listado) {
	position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
	min-height: var(--adl-cab-alto, 320px); padding: 0; margin: 0;
	background: #222 var(--adl-cab-img) center / cover no-repeat;
}
body.adl-comprar-foto .ip-pagehead--listado::before,
body.adl-blog-foto .ip-pagehead:not(.ip-pagehead--listado)::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .32); }
body.adl-comprar-foto .ip-pagehead--listado .ip-wrap,
body.adl-blog-foto .ip-pagehead:not(.ip-pagehead--listado) .ip-wrap { position: relative; z-index: 1; width: 100%; }
body.adl-comprar-foto .ip-pagehead--listado .ip-eyebrow,
body.adl-comprar-foto .ip-pagehead--listado .ip-pagehead__sub,
body.adl-blog-foto .ip-pagehead .ip-eyebrow,
body.adl-blog-foto .ip-pagehead .ip-pagehead__sub { display: none; }
body.adl-comprar-foto .ip-pagehead--listado .ip-h1,
body.adl-blog-foto .ip-pagehead .ip-h1 { color: #fff; margin: 0; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
body.adl .ip-pagehead .ip-h1.adl-vacio { display: none; }
/* Blog sin foto: fuera el bloque de texto, quedan las categorías. */
body.adl:not(.adl-blog-foto) .ip-pagehead:not(.ip-pagehead--listado):has(+ .ip-blogcats) { display: none; }
body.adl .ip-blogcats { margin-top: 36px; }
body.adl .ip-listado { padding-top: 36px; }

/* Barra de resultados: solo «Ordenar por», vista fija en cuadrícula de 3. */
body.adl .ip-toolbar__count,
body.adl .ip-toolbar__vista { display: none !important; }
body.adl .ip-toolbar { justify-content: flex-end; }
@media (min-width: 901px) {
	body.adl .ip-listado .ip-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--adl-gap-fila) var(--adl-gap); }
}

/* Tarjetas: foto 4:3, sin puntitos, flechas limpias, título en una línea, caja blanca. */
body.adl .ip-card__media { padding-top: 75%; }
body.adl .adl-puntos { display: none !important; }
body.adl .adl-flecha {
	background: transparent; width: 34px; height: 44px; margin-top: -22px; border-radius: 0; color: #fff;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .55));
}
body.adl .adl-flecha svg { width: 26px; height: 26px; }
body.adl .ip-card__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.adl .ip-card__title a { display: block; overflow: hidden; text-overflow: ellipsis; }
body.adl .ip-card__body { background: #fff; padding: 18px 16px 18px; }
body.adl .ip-card { display: flex; flex-direction: column; }
body.adl .ip-card__body { flex: 1; }

/* ------------------------------------------------- Nosotros y Servicios */
/* Cifras: los textos de debajo se veían blancos sobre fondo claro. */
body.adl .ip-stats { color: var(--adl-text); }
body.adl .ip-stat span { display: block; margin-top: 12px; font-size: max(16px, calc(var(--adl-fs-base) * .95)); line-height: 1.45; color: var(--adl-text); opacity: .8; }
body.adl .ip-stat strong { font-size: clamp(40px, 4.4vw, 60px); }
/* Todos los botones de los bloques, muy redondeados aunque la foto lleve esquinas rectas. */
body.adl .ip-bv__btn { border-radius: 999px; }

/* ----------------------------------------------------------- Artículos */
body.adl .ip-single .ip-wrap { max-width: 860px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
body.adl .ip-single__media .ip-wrap,
body.adl .ip-single .ip-single__media { max-width: 1080px; margin-left: auto; margin-right: auto; }
body.adl .ip-single h1, body.adl .ip-single .ip-h1 { text-align: center; line-height: 1.15; }
body.adl .ip-single__meta, body.adl .ip-single header { text-align: center; justify-content: center; }
body.adl .ip-prose { font-size: calc(var(--adl-fs-base) * 1.02); line-height: 1.85; }
body.adl .ip-prose > * + * { margin-top: 1.1em; }
body.adl .ip-prose h2, body.adl .ip-prose h3 { margin-top: 1.8em; margin-bottom: .4em; line-height: 1.25; }
body.adl .ip-prose ul, body.adl .ip-prose ol { padding-left: 1.3em; }
body.adl .ip-prose li + li { margin-top: .5em; }
body.adl .ip-prose p.adl-subtitulo { font-family: var(--adl-font-head); font-size: 1.4em; font-weight: 600; margin-top: 1.8em; line-height: 1.25; }


/* ------------------------------------------------------------ 16/11/2026 (2) */
/* Franjas de foto de Blog y Comprar: como las cabeceras de las demás páginas
   (alto 640 px, 480 px en móvil, foto sin oscurecer, título igual). */
body.adl-comprar-foto .ip-pagehead--listado::before,
body.adl-blog-foto .ip-pagehead:not(.ip-pagehead--listado)::before { content: none; }
body.adl-comprar-foto .ip-pagehead--listado .ip-h1,
body.adl-blog-foto .ip-pagehead .ip-h1 {
	font-size: clamp(34px, 5.8vw, 72px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
@media (max-width: 860px) {
	body.adl-comprar-foto .ip-pagehead--listado,
	body.adl-blog-foto .ip-pagehead:not(.ip-pagehead--listado) { min-height: max(420px, calc(var(--adl-cab-alto, 640px) * .75)); }
}

/* Todos los botones de acción en mayúsculas, como «SOLICITAR VALORACIÓN». */
body.adl .ip-btn,
body.adl .ip-bv__btn,
body.adl .ip-buscador__submit,
body.adl .ip-buscador__more,
body.adl .ip-form__submit { text-transform: uppercase; }

/* =========================================================================
   19/11/2026 — 3ª tanda de Tommaso (últimos retoques antes de lanzar)
   ========================================================================= */

/* ---------------------------------------- Escritorio y móvil */
/* Reseñas: las 5 estrellas centradas. */
body.adl .ip-opinion__stars { display: flex; justify-content: center; gap: 2px; }

/* Servicios: icono, título y texto centrados (el icono lo elige adelante.js según el título). */
body.adl .ip-servicio { text-align: center; display: flex; flex-direction: column; align-items: center; }
body.adl .ip-servicio__ico { margin-left: auto; margin-right: auto; }
body.adl .ip-servicio h3, body.adl .ip-servicio p { text-align: center; }

/* «Compromiso de principio a fin»: número arriba, más grande, y debajo título y texto, todo centrado. */
body.adl .ip-pasos li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
body.adl .ip-pasos li > div { text-align: center; }
body.adl .ip-paso__n {
	width: 64px; height: 64px; min-width: 64px; font-size: 26px; margin: 0 auto;
	font-family: 'Bodoni Moda', serif; font-variant-numeric: lining-nums;
}

/* Enlace fijo «Configuración de cookies» en el pie (lo añade adelante.js). */
body.adl .ip-footer__legal .adl-cookies-link { cursor: pointer; }

/* Mapa de la ficha: estilo claro y minimalista (Leaflet + OpenStreetMap en gris claro, lo monta adelante.js). */
body.adl .ip-map.adl-map { position: relative; height: 420px; border-radius: var(--adl-radius); overflow: hidden; background: #f2f2f0; }
body.adl .ip-map.adl-map .leaflet-container { width: 100%; height: 100%; background: #f2f2f0; font-family: var(--adl-font-body); }
body.adl .ip-map.adl-map .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .7); }
body.adl .adl-map__aviso {
	position: absolute; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .35); color: #fff; font-size: 15px; text-align: center; padding: 20px;
	opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
body.adl .adl-map__aviso.is-on { opacity: 1; }

/* ---------------------------------------- Solo móvil */
/* Portada: los botones del vídeo solo existen en el móvil. */
body.adl .adl-hero-btns { display: none; }
/* Comprar: el botón «Filtrar propiedades» solo en el móvil. */
body.adl .adl-filtrar { display: none; }

@media (max-width: 640px) {
	/* Portada: vídeo limpio, titular al centro y dos botones píldora abajo. */
	body.adl .ip-hero__search { display: none !important; }
	body.adl .ip-hero__in { position: relative; padding-bottom: 0; }
	body.adl .ip-hero__title { margin-bottom: 0; }
	body.adl .adl-hero-btns {
		display: flex; flex-direction: column; gap: 14px;
		position: absolute; left: 24px; right: 24px; bottom: 14px; z-index: 2;
		bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	}
	body.adl .adl-hero-btns a {
		display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 999px;
		border: 1px solid rgba(255, 255, 255, .9); color: #fff; text-decoration: none;
		background: rgba(17, 17, 17, .38); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
		font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
	}
	body.adl .adl-hero-btns a:active { background: rgba(17, 17, 17, .55); }

	/* Comprar: sin «Más filtros» y el buscador plegado bajo «Filtrar propiedades». */
	body.adl .adl-filtrar {
		display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px;
		border-radius: 999px; border: 1px solid var(--adl-text); background: transparent; color: var(--adl-text);
		font: 500 14px/1 var(--adl-font-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
		-webkit-appearance: none; appearance: none;
	}
	body.adl .adl-filtrar svg { transition: transform .25s ease; }
	body.adl .adl-filtros-abiertos .adl-filtrar svg.adl-chev { transform: rotate(180deg); }
	body.adl .adl-filtros-wrap > .ip-buscador { display: none; margin-top: 14px; }
	body.adl .adl-filtros-abiertos > .ip-buscador { display: block; }
	body.adl .adl-filtros-wrap .ip-buscador__more,
	body.adl .adl-filtros-wrap .ip-buscador__adv { display: none !important; }
	body.adl .adl-filtros-wrap .ip-buscador { border: 0; padding: 0; background: transparent; }
	body.adl .adl-filtros-wrap .ip-field input,
	body.adl .adl-filtros-wrap .ip-field select,
	body.adl .adl-filtros-wrap .ip-buscador__submit { border-radius: 999px; padding-left: 20px; padding-right: 20px; }
	body.adl .adl-filtros-wrap .ip-field__ico input { padding-left: 44px; }
	body.adl .adl-filtros-wrap .ip-field__ico svg { left: 18px; }
	body.adl .adl-filtros-wrap .ip-field > label { padding-left: 20px; }

	/* Tarjetas: más foto (≈60/40) en el mismo alto, sin apretar el texto. */
	body.adl .ip-card__media { padding-top: 84%; }
	body.adl .ip-card__body { padding: 12px 14px 12px; }
	body.adl .ip-card__price2 { margin: 2px 0 4px; }
	body.adl .ip-card__foot { padding-top: 0; }

	/* Cookies: fuera el botón flotante (tapaba «Llamar»); queda el enlace fijo del pie. */
	.anvc-float { display: none !important; }

	/* Ficha: fuera «Compra con seguridad»; similares con título centrado y sin antetítulo. */
	body.adl .ip-ficha__aside .ip-asidebox:not(.ip-alertbox) { display: none !important; }
	body.adl .ip-similares .ip-eyebrow { display: none; }
	body.adl .ip-similares .ip-sec-head { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
	body.adl .ip-similares .ip-sec-head .ip-h2 { margin: 0; }

	/* Caja de contacto: título centrado y teléfono con la letra del precio, algo mayor. */
	body.adl .ip-contactbox .ip-form__title { text-align: center; }
	body.adl .ip-contactbox__actions a[href^="tel:"] {
		font-family: 'Bodoni Moda', serif; font-variant-numeric: lining-nums; font-size: 19px; font-weight: 600; letter-spacing: .02em; text-transform: none;
	}

	/* Alerta de propiedades: sin corazón y correo redondeado como el botón. */
	body.adl .ip-alertbox h4 .ip-ico-heart { display: none; }
	body.adl .ip-alertbox h4 { justify-content: center; text-align: center; }
	body.adl .ip-alertbox > p { text-align: center; }
	body.adl .ip-alertbox input[type="email"] { border-radius: 999px; padding-left: 22px; padding-right: 22px; }

	/* Mapa más bajo (4/3) en el móvil. */
	body.adl .ip-map.adl-map { height: auto; aspect-ratio: 4 / 3; }

	/* Servicios: «¿Hablamos de su propiedad?» y «Solicite una llamada» centrados. */
	body.adl .ip-cta__text, body.adl .ip-cta__text .ip-h2, body.adl .ip-cta .ip-form__title { text-align: center; }

	/* Pie centrado de arriba abajo (las redes, como están, en su fila centrada). */
	body.adl .ip-footer__top, body.adl .ip-footer__col, body.adl .ip-footer__bottom-in { text-align: center; justify-items: center; }
	body.adl .ip-footer__col { display: flex; flex-direction: column; align-items: center; }
	body.adl .ip-footer__logo { margin-left: auto; margin-right: auto; }
	body.adl .ip-footer__social { justify-content: center; }
	body.adl .ip-footer .ip-menu { padding: 0; align-items: center; }
	body.adl .ip-footer__contact { padding: 0; }
	body.adl .ip-footer__contact li { justify-content: center; text-align: center; }
	body.adl .ip-footer__bottom-in { flex-direction: column; align-items: center; }
	body.adl .ip-footer__legal { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 640px) {
	body.adl .ip-footer__contact li { display: block; }
	body.adl .ip-footer__contact li svg { display: inline-block; vertical-align: -3px; margin-right: 6px; position: static; }
}
body.adl .adl-map-tiles { filter: grayscale(1) contrast(.72) brightness(1.14); }

/* =====================================================================
 * 23/11/2026 — 4ª tanda de Tommaso
 * ===================================================================== */

/* 1. Portada: vídeo sin capa oscura (Personalizar → Diseño Adelante → Cabecera → «Oscurecer el vídeo», 0 por defecto).
 *    El titular blanco se apoya en una sombra suave para seguir leyéndose sobre zonas claras. */
body.adl .ip-hero__media::after { background: rgba(0, 0, 0, var(--adl-hero-dark, 0)); }
body.adl .ip-hero__title,
body.adl .ip-bv--fondo.ip-bv--t-claro .ip-bv__title { text-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 3px 18px rgba(0, 0, 0, .35), 0 6px 48px rgba(0, 0, 0, .3); }

/* 2. Ficha en el móvil: botones de abajo en píldora. */
body.adl .ip-mbar__btn { border-radius: 999px; }
/*    «Llamar» (y WhatsApp): mismo contorno de píldora que «Contactar», en verde y con fondo blanco, para que se vea. */
body.adl .ip-mbar__btn:not(.ip-mbar__btn--primary) { border: 1.5px solid var(--ip-primary); background: #fff; color: var(--ip-primary); }

/* 3. Nosotros en el móvil: la foto del segundo bloque ya no se pega a la portada. */
@media (max-width: 640px) {
	body.adl.page-id-7 .ip-bv--fondo + .ip-tx-p-mediano .ip-bv--solapado,
	body.adl.page-id-7 .ip-tx-t-enorme + .ip-tx-p-mediano .ip-bv--solapado { margin-top: 36px; }
}

/* 4. Servicios — «Compromiso de principio a fin»: en ordenador, los 4 en una franja; en el móvil, bien centrado. */
body.adl .ip-pasos { padding: 0; margin-left: auto; margin-right: auto; list-style: none; }
body.adl .ip-pasos li { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
@media (min-width: 901px) {
	body.adl .ip-pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; max-width: 1180px; }
	body.adl .ip-pasos li { background: #fff; border: 1px solid var(--adl-line); border-radius: 18px; padding: 34px 24px 30px; margin: 0; height: 100%; justify-content: flex-start; }
	body.adl .ip-pasos li::before, body.adl .ip-pasos li::after { display: none; }
}
@media (max-width: 900px) {
	body.adl .ip-pasos { width: 100%; max-width: 560px; }
	body.adl .ip-pasos li { width: 100%; }
}

/* 5. Pie: «(Atención con cita previa)» solo en el móvil (en ordenador queda en la página de contacto). */
@media (min-width: 641px) { body.adl .ip-footer .adl-cita { display: none; } }

/* 6a. Botones: al pasar el ratón no se mueven, solo cambian de color (Personalizar → Colores → «Botones al pasar el ratón»). */
body.adl :is(.ip-btn, .ip-bv__btn, .ip-buscador__submit, .ip-mbar__btn, button[type="submit"], input[type="submit"], .adl-pill) {
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
body.adl :is(.ip-btn, .ip-bv__btn, .ip-buscador__submit, .ip-mbar__btn, button[type="submit"], input[type="submit"], .adl-pill):hover { transform: none !important; }
@media (hover: hover) {
	body.adl :is(.ip-btn, .ip-bv__btn, .ip-buscador__submit, button[type="submit"], input[type="submit"]):not(.ip-burger):not(.ip-nav__close):hover {
		background: var(--adl-hover) !important; border-color: var(--adl-hover) !important; color: #fff !important;
	}
}

/* 6b. Menú: la sección en la que está el visitante, con un borde fino redondeado. */
body.adl .ip-nav > ul > li > a { border: 1px solid transparent; border-radius: 999px; padding: 6px 14px; transition: border-color .2s ease; }
body.adl .ip-nav > ul > li.adl-activo > a,
body.adl .ip-nav > ul > li.current-menu-item > a { border-color: currentColor; opacity: 1; }
@media (max-width: 900px) {
	body.adl .ip-nav > ul > li > a { display: inline-block; }
}

/* 23/11/2026 — 5ª tanda (ficha del inmueble) */
/* Caja de contacto: sin precio arriba, solo la referencia algo más grande. */
body.adl .ip-contactbox__precio { display: none; }
body.adl .ip-contactbox__head { justify-content: center; }
body.adl .ip-contactbox__ref { font-size: 16px; font-weight: 600; letter-spacing: .04em; color: var(--adl-text, #111); }
/* Iconos (dormitorios, baños, m², ascensor…): en una fila si caben; si hay que saltar, se reparten a lo ancho sin huecos. */
body.adl .ip-keyfacts { display: flex; flex-wrap: wrap; gap: 14px; }
body.adl .ip-keyfact { flex: 1 1 100px; min-width: 0; }
/* Encima del título: solo la referencia (y «Exclusiva» si la hay); fuera «Piso». */
body.adl .ip-ficha__badges .ip-badge:not(.ip-badge--exc):not(.ip-badge--ref) { display: none; }
/* Precio por m² fuera (el JS marca ese dato con .adl-m2). */
body.adl .ip-ficha__precio .adl-m2 { display: none; }
/* Columna derecha: fuera el cuadro «Compra con seguridad» (el único .ip-asidebox que no es la alerta). */
body.adl .ip-ficha__aside .ip-asidebox:not(.ip-alertbox) { display: none; }
/* Números de la ficha con la letra del precio (Bodoni Moda), en todas las pantallas: teléfono, referencia, iconos y características. */
body.adl .ip-contactbox__actions a[href^="tel:"],
body.adl .ip-mbar__btn[href^="tel:"],
body.adl .ip-contactbox__ref,
body.adl .ip-keyfact strong,
body.adl .ip-specs dd,
body.adl .ip-hipoteca__result strong { font-family: 'Bodoni Moda', serif; font-variant-numeric: lining-nums; }
body.adl .ip-contactbox__actions a[href^="tel:"] { font-size: 19px; font-weight: 600; letter-spacing: .02em; text-transform: none; }
/* Comprar: buscador en píldora, como el resto de botones (campos, desplegables y botones; la caja que los envuelve, muy redondeada). */
body.adl .ip-buscador :is(input:not([type="checkbox"]):not([type="radio"]), select, .ip-buscador__submit, .ip-buscador__more) { border-radius: 999px !important; }
body.adl .ip-buscador select { padding-left: 18px; }
body.adl .ip-buscador input:not([type="checkbox"]):not([type="radio"]) { padding-left: 18px; }
body.adl .ip-buscador { border-radius: 32px; }
/* «Más filtros» y los extras (Ascensor, Garaje, En exclusiva): píldoras con contorno visible (su borde era del color del fondo). */
body.adl .ip-buscador__more { border: 1px solid var(--ip-primary) !important; color: var(--ip-primary); background: #fff; padding-left: 18px; padding-right: 18px; }
body.adl .ip-chip span { border: 1px solid var(--ip-primary) !important; border-radius: 999px !important; background: #fff; color: var(--ip-primary); padding: 7px 16px; }
body.adl .ip-chip input:checked + span { background: var(--ip-primary); color: #fff; }
/* Referencia de la caja de contacto más grande (23/11, 2ª petición). */
body.adl .ip-contactbox__ref { font-size: 22px; font-weight: 600; letter-spacing: .05em; }
/* 23/11 (3ª petición): la referencia vuelve encima del título; en la caja de contacto no se pone nada encima del teléfono. */
body.adl .ip-contactbox__head { display: none; }
/* 23/11: logo algo más grande en ordenador (34 → 42 px de alto); la barra mantiene su altura (--ip-header-h). */
@media (min-width: 901px) {
	body.adl .ip-brand__logo { height: 42px; max-width: 270px; }
}
/* 23/11: ficha — fuera «También te puede interesar» encima de «Propiedades similares». */
body.adl .ip-similares .ip-sec-head .ip-eyebrow { display: none; }
/* 23/11: referencia encima del título con la letra del precio (Bodoni Moda) y más grande. */
body.adl .ip-ficha__badges .ip-badge--ref { font-family: 'Bodoni Moda', serif; font-variant-numeric: lining-nums; font-size: 16px; font-weight: 600; letter-spacing: .03em; padding: 6px 16px; }

/* 24/11/2026 — Logos con width/height en el HTML (los pone WP Rocket, «dimensiones de imagen»):
   sin esto el logo del pie se aplastaba (ancho del atributo + max-height del plugin). */
body.adl .ip-footer__logo { width: auto; height: auto; max-width: 100%; max-height: 48px; }

/* Sin ligaduras fi/fl en titulares: el punto de la i no se pega a la f */
body.adl h1, body.adl h2, body.adl h3, body.adl h4, body.adl .ip-hero__title { font-variant-ligatures: no-common-ligatures; font-feature-settings: "liga" 0, "clig" 0; }
