/*
Theme Name: 4Rent
Description: Theme a la medida para 4Rent. Reemplaza a WP Residence. Sin jQuery, sin Bootstrap, sin Elementor.
Version: 0.1.0
Requires PHP: 8.0
Text Domain: 4rent
*/

/* ==========================================================================
   Tokens

   El naranja de marca se reserva para ACCIONES (botones, enlaces, precio).
   Los estados usan su propia escala.

   Hoy el sitio pinta "Active", "Rented", "Under Renovation" y "Short Term"
   todos con el mismo rgba(255,130,4,.85). El color no carga información, así
   que el ojo tiene que leer cada etiqueta: por eso 35 tarjetas se sienten
   como ruido. Aquí disponible y rentado no se pueden confundir de reojo.
   ========================================================================== */

:root {
	--brand:            #ff8204;
	--brand-dark:       #e57200;
	--ink:              #1a1a1a;
	--ink-soft:         #5c5c5c;
	--ink-faint:        #8a8a8a;
	--bg:               #fbf9f6;
	--surface:          #ffffff;
	--line:             #e7e2da;
	--header-bg:        #000000;

	/* estados: cada uno distinguible del otro de un vistazo */
	--st-available:     #17803d;
	--st-available-bg:  #e8f5ec;
	--st-unavailable:   #6b7280;
	--st-unavailable-bg:#f0f0f0;
	--st-soon:          #b45309;
	--st-soon-bg:       #fdf3e3;

	--radius:           10px;
	--radius-sm:        6px;
	--shadow:           0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
	--shadow-hover:     0 2px 6px rgba(0,0,0,.10), 0 12px 32px rgba(0,0,0,.09);

	--font-head:        'Raleway', system-ui, -apple-system, sans-serif;
	--font-body:        'Open Sans', system-ui, -apple-system, sans-serif;

	--wrap:             1240px;
	--gutter:           16px;
}

/* ========================================================================== base */

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/*
 * Los botones nunca se subrayan. La regla de arriba es para enlaces de texto;
 * sin esta excepción alcanzaba también a los botones de Elementor del home.
 */
a.btn:hover,
a.elementor-button:hover,
.elementor-button:hover,
a[class*="button"]:hover,
.filters__tab:hover,
.card a:hover,
.site-nav a:hover,
.site-footer a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Foco visible: el theme viejo lo suprimía en varios sitios. */
:where(a, button, select, input, [tabindex]):focus-visible {
	outline: 2px solid var(--brand-dark);
	outline-offset: 2px;
	border-radius: 3px;
}

/* ========================================================================== header

   Tres zonas, como header_type6 de producción: menú a la izquierda, logo
   centrado, teléfonos a la derecha. El grid de tres columnas iguales es lo que
   mantiene el logo ópticamente centrado aunque las zonas laterales midan
   distinto.
   ========================================================================== */

.site-header { background: var(--header-bg); position: sticky; top: 0; z-index: 60; }
/* Con el panel abierto, el header (y su backdrop y su menú) flota sobre todo. */
.site-header.has-nav-open { z-index: 100; }

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	min-height: 88px;
	max-width: 1500px;
	margin-inline: auto;
	padding-inline: 40px;
}

.site-logo { justify-self: center; display: block; }
.site-logo img { width: 112px; height: auto; }
.site-logo__text { color: #fff; font-weight: 700; font-family: var(--font-head); }

.site-header__secondary { justify-self: end; display: flex; gap: 20px; align-items: center; }
.site-header__phone {
	color: #fff; font-size: .88rem; white-space: nowrap;
	display: inline-flex; align-items: center; gap: 6px;
}
.site-header__phone:hover { color: var(--brand); text-decoration: none; }
.site-header__phone .icon { color: var(--brand); flex: none; }

/* ------------------------------------------------------------------ menú */

.site-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a {
	color: #fff; font-size: .92rem; font-weight: 500;
	padding: 6px 0; display: block;
	border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
	color: var(--brand); border-bottom-color: var(--brand); text-decoration: none;
}
.site-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; margin-inline-start: 7px;
	border: 4px solid transparent; border-top-color: currentColor;
	transform: translateY(2px);
}
.site-nav .sub-menu {
	display: none; position: absolute; inset-inline-start: -16px; top: 100%;
	min-width: 196px; background: var(--header-bg);
	border: 1px solid #262626; border-radius: var(--radius-sm);
	padding: 6px 0; box-shadow: 0 10px 30px rgba(0,0,0,.4);
	list-style: none; margin: 0; z-index: 70;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { padding: 10px 18px; border-bottom: 0; font-size: .88rem; white-space: nowrap; }
.site-nav .sub-menu a:hover { background: #151515; border-bottom-color: transparent; }

.site-nav__phones-mobile { display: none; }

/* --------------------------------------------------------- botón móvil */

.nav-toggle {
	display: none; background: none; border: 0; cursor: pointer;
	width: 40px; height: 40px; position: relative; padding: 0;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	position: absolute; left: 9px; width: 22px; height: 2px;
	background: #fff; transition: transform .2s, opacity .2s;
}
.nav-toggle__bar { top: 19px; }
.nav-toggle__bar::before { content: ""; top: -7px; left: 0; }
.nav-toggle__bar::after  { content: ""; top: 7px;  left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* ========================================================================== hero

   Slideshow con Ken Burns, igual que el de Elementor: 3 s por imagen, fade de
   800 ms, zoom in continuo y overlay oscuro.
   ========================================================================== */

.hero {
	position: relative;
	min-height: 590px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	background: #0A0101;
}
.hero--plain { min-height: 300px; background: var(--ink); }

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	opacity: 0;
	transition: opacity 800ms ease-in-out;
}
.hero__slide.is-active { opacity: 1; animation: hero-kenburns 9s ease-out forwards; }

@keyframes hero-kenburns {
	from { transform: scale(1); }
	to   { transform: scale(1.12); }
}

.hero__overlay { position: absolute; inset: 0; background: #0A0101; opacity: .5; }

.hero__content { position: relative; z-index: 2; padding: 40px 24px; max-width: 760px; }
.hero__title {
	color: #fff; font-size: clamp(2rem, 5vw, 3rem); font-weight: 400;
	text-shadow: 0 0 10px rgba(0,0,0,.65); margin-bottom: .35em;
}
.hero__subtitle {
	color: #fff; font-size: clamp(1rem, 1.6vw, 1.22rem); font-weight: 300;
	line-height: 1.5; margin: 0 auto; max-width: 600px;
	text-shadow: 0 0 10px rgba(0,0,0,.55);
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.btn--pill { border-radius: 100px; padding: 12px 28px; }

/* ========================================================================== page head */

.page-head { padding: 52px 0 8px; }
.page-head h1 { margin-bottom: .25em; }
.page-head p { color: var(--ink-soft); max-width: 62ch; margin: 0; }

/* ========================================================================== filtro */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 4px;
	border-bottom: 1px solid var(--line);
	padding-bottom: 14px;
}

.filters__tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: 100px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-soft);
	font-size: .9rem;
	font-weight: 500;
	transition: background .15s, border-color .15s, color .15s;
}
.filters__tab:hover { border-color: var(--ink-faint); text-decoration: none; }

.filters__tab[aria-current="true"] {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.filters__count {
	font-size: .8rem;
	font-variant-numeric: tabular-nums;
	opacity: .65;
}

.results-count { color: var(--ink-faint); font-size: .88rem; margin: 14px 0 22px; }

/* ========================================================================== grid */

.property-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 26px;
	margin-bottom: 56px;
	padding: 0;
	list-style: none;
}

/* ========================================================================== card

   Galería deslizable estilo Airbnb. El swipe táctil lo da scroll-snap del
   navegador: más fluido que el carrusel de Bootstrap y sin sus 23 KB.
   ========================================================================== */

.listing-section { margin-bottom: 18px; }
.listing { padding-bottom: 60px; }
.listing-section__title { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; margin: 44px 0 26px; }

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.card__media { position: relative; aspect-ratio: 4 / 3; background: #eee; overflow: hidden; }

.card__gallery {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}
.card__gallery::-webkit-scrollbar { display: none; }

.card__slide { flex: 0 0 100%; scroll-snap-align: center; display: block; height: 100%; }
.card__slide img { width: 100%; height: 100%; object-fit: cover; }
.card__slide--empty { background: linear-gradient(135deg, #eee, #e0ddd8); }

/* Flechas: aparecen al pasar el ratón; en táctil basta con deslizar. */
.card__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 30px; height: 30px; border-radius: 50%;
	background: rgba(255,255,255,.92); border: 0; color: var(--ink);
	display: grid; place-items: center; cursor: pointer;
	opacity: 0; transition: opacity .15s, background .15s;
	box-shadow: 0 1px 4px rgba(0,0,0,.25); z-index: 3;
}
.card__nav--prev { inset-inline-start: 10px; }
.card__nav--next { inset-inline-end: 10px; }
.card:hover .card__nav, .card__nav:focus-visible { opacity: 1; }
.card__nav:hover { background: #fff; }

.card__dots {
	position: absolute; inset-inline: 0; bottom: 10px; z-index: 3;
	display: flex; gap: 5px; justify-content: center;
}
.card__dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: rgba(255,255,255,.55); transition: background .15s, transform .15s;
}
.card__dot.is-active { background: #fff; transform: scale(1.25); }

/* Degradado inferior: da contraste a los puntos y al contador sobre fotos claras. */
.card__overlay {
	position: absolute; inset-inline: 0; bottom: 0; height: 84px; z-index: 2;
	background: linear-gradient(to top, rgba(0,0,0,.45), transparent);
	pointer-events: none;
}

.card__badges {
	position: absolute; inset-inline-start: 10px; inset-block-start: 10px; z-index: 3;
	display: flex; flex-wrap: wrap; gap: 6px;
}

.badge {
	font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
	padding: 5px 11px; border-radius: 100px;
	background: rgba(0,0,0,.72); color: #fff;
}
.badge--available   { background: var(--st-available); }
.badge--unavailable { background: var(--st-unavailable); }
.badge--soon        { background: var(--st-soon); }

.card__city {
	position: absolute; inset-inline-start: 12px; inset-block-end: 10px; z-index: 3;
	color: #fff; font-size: .8rem; display: inline-flex; align-items: center; gap: 5px;
	text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.card__city:hover { color: var(--brand); text-decoration: none; }

.card__photocount {
	position: absolute; inset-inline-end: 12px; inset-block-end: 10px; z-index: 3;
	color: #fff; font-size: .78rem; display: inline-flex; align-items: center; gap: 5px;
	text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

.card__body { padding: 15px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__price { color: var(--brand-dark); font-weight: 700; font-size: 1.1rem; margin: 0; }
.card__price-label { font-weight: 500; color: var(--ink-soft); font-size: .8rem; }
.card__title { font-size: 1rem; margin: 0; line-height: 1.35; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand-dark); text-decoration: none; }
.card__specs {
	display: flex; gap: 16px; margin: auto 0 0; padding-top: 10px;
	border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .84rem;
}
.card__spec-label { color: var(--ink-faint); }

/*
 * No disponible: foto en gris y precio atenuado. El cliente quiere el
 * inventario rentado a la vista como prueba social, pero sin que compita con
 * lo que sí se puede alquilar.
 */
.card--unavailable .card__slide img { filter: grayscale(1); opacity: .62; }
.card--unavailable .card__price { color: var(--ink-faint); }
.card--unavailable:hover .card__slide img { filter: grayscale(.45); opacity: .82; }

/* Estado de carga del filtro AJAX. */
.listing-sections.is-loading { opacity: .45; transition: opacity .15s; pointer-events: none; }

/* ========================================================================== vacío */

.empty-state {
	text-align: center;
	padding: 64px 24px;
	background: var(--surface);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	margin-bottom: 56px;
}
.empty-state h2 { font-size: 1.25rem; }
.empty-state p { color: var(--ink-soft); margin: 0 auto 18px; max-width: 46ch; }

.btn {
	display: inline-block;
	background: var(--brand);
	color: #fff;
	font-weight: 600;
	padding: 12px 26px;
	border-radius: 100px;
	border: 0;
	cursor: pointer;
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }

/* ========================================================================== footer

   Medido contra producción a 1024 y a 1600, no a un solo ancho: es un flex de
   cuatro columnas en proporción 572:266:266:266 con gap de 40 px, dentro de un
   contenedor de 1600 px máx y 55 px de padding. La segunda columna va vacía y
   es la que ordena el colapso a dos columnas.
   ========================================================================== */

/*
 * Sin margin-top: las páginas que lo necesitan lo ponen ellas. Puesto aquí
 * dejaba un hueco tras las secciones de Elementor del home, que ya traen su
 * propio padding inferior.
 */
.site-footer { background: var(--header-bg); color: #fff; padding: 70px 0 30px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand); text-decoration: none; }

.site-footer .wrap {
	max-width: 1600px;
	/* Producción lo tiene fijo en 55 px, no fluido: medido igual a 1024 y a 1600. */
	padding-inline: 55px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 2.15fr 1fr 1fr 1fr;
	gap: 40px;
}

.site-footer__logo { width: 166px; height: auto; margin-bottom: 22px; }
.site-footer__about { font-size: .875rem; line-height: 1.75; margin: 0; }

.site-footer h3 { color: #fff; font-size: 1.125rem; font-weight: 600; margin: 0 0 1.1em; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__contact li { font-size: .875rem; margin-bottom: 7px; }
.site-footer__address { font-size: .875rem; line-height: 1.7; margin: 20px 0 0; }
.site-footer__links li { font-size: .875rem; margin-bottom: 18px; }

.site-footer__legal {
	margin: 64px 0 0;
	text-align: center;
	font-size: .875rem;
	color: #fff;
}

/* ========================================================================== responsive */

/* Igual que producción: por debajo de 1200 px el footer pasa a dos columnas,
   y la columna vacía hace que Contact caiga en la segunda fila. */
@media (max-width: 1200px) {
	/*
	 * Las columnas no se estiran: son del 45 % y el sobrante queda como
	 * separación. Estirándolas a 1fr, Quick Links caía 26 px a la izquierda
	 * de donde está en producción.
	 */
	.site-footer__grid {
		grid-template-columns: 45% 45%;
		justify-content: space-between;
		column-gap: 0;
		row-gap: 46px;
	}
}

@media (max-width: 1024px) {
	.site-header__inner { padding-inline: 20px; }
	.site-header__secondary { gap: 12px; }
	.site-header__phone { font-size: .8rem; }
}

@media (max-width: 900px) {
	.nav-toggle { display: block; justify-self: start; z-index: 90; }
	.site-header__secondary { display: none; }
	.site-header__inner { grid-template-columns: 44px 1fr 44px; min-height: 68px; }
	.site-logo { justify-self: center; }

	/* Panel deslizante desde la izquierda, no un desplegable que empuja. */
	.site-nav {
		position: fixed;
		inset-block: 0;
		inset-inline-start: 0;
		width: min(86vw, 340px);
		background: #0d0d0d;
		padding: 88px 26px 32px;
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateX(-100%);
		transition: transform .28s cubic-bezier(.4, 0, .2, 1);
		z-index: 80;
		box-shadow: 4px 0 30px rgba(0, 0, 0, .5);
	}
	.site-nav.is-open { transform: translateX(0); }

	.nav-backdrop {
		position: fixed; inset: 0; z-index: 70;
		background: rgba(0, 0, 0, .55);
		opacity: 0; pointer-events: none;
		transition: opacity .28s;
	}
	.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

	body.has-nav-open { overflow: hidden; }

	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list > li { border-bottom: 1px solid #1e1e1e; }
	.site-nav a {
		padding: 16px 0;
		font-size: 1.02rem;
		border-bottom: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	/* La flecha gira al desplegar: indica estado, no solo que hay más. */
	.site-nav .menu-item-has-children > a::after {
		margin: 0;
		border: 5px solid transparent;
		border-top-color: currentColor;
		transform: translateY(3px);
		transition: transform .2s;
	}
	.site-nav .menu-item-has-children.is-expanded > a::after {
		transform: translateY(-1px) rotate(180deg);
	}
	.site-nav .menu-item-has-children.is-expanded > a { color: var(--brand); }

	/*
	 * Colapso por max-height, no por `grid-template-rows: 0fr`: esa técnica
	 * solo dimensiona la PRIMERA fila, así que con dos hijos el segundo caía
	 * en una fila automática y se quedaba visible con el menú cerrado.
	 */
	.site-nav .sub-menu {
		display: block;
		position: static; border: 0; box-shadow: none;
		padding: 0; background: transparent; min-width: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height .26s ease;
	}
	.site-nav .menu-item-has-children.is-expanded > .sub-menu { max-height: 320px; }
	.site-nav .sub-menu li { border-bottom: 0; }
	.site-nav .sub-menu li:first-child { padding-top: 4px; }
	.site-nav .sub-menu li:last-child { padding-bottom: 12px; }
	.site-nav .sub-menu a {
		padding: 12px 0 12px 18px;
		font-size: .94rem;
		color: #b5b5b5;
	}
	.site-nav .sub-menu a:hover { color: var(--brand); background: transparent; }

	.site-nav__phones-mobile {
		display: flex; flex-direction: column; gap: 14px;
		margin-top: 30px; padding-top: 24px; border-top: 1px solid #1e1e1e;
	}
	.site-nav__phones-mobile a {
		color: var(--brand); font-weight: 600; font-size: 1rem;
		border-bottom: 0; padding: 0; justify-content: flex-start;
	}

	.site-footer__grid { grid-template-columns: 1fr; row-gap: 38px; }
	.site-footer__spacer { display: none; }
	.site-footer .wrap { padding-inline: 20px; }

	.hero { min-height: 440px; }
	/* Una sola columna: el separador sobra y se oculta. */
	.site-footer__grid { grid-template-columns: 1fr; row-gap: 38px; }
	.site-footer__spacer { display: none; }
	.site-footer .wrap { padding-inline: 20px; }
}

@media (max-width: 520px) {
	.property-grid { grid-template-columns: 1fr; gap: 20px; }
	.filters { gap: 6px; }
	.filters__tab { padding: 8px 13px; font-size: .85rem; }
	.hero { min-height: 380px; }
	/* En táctil las flechas no hacen falta: se desliza. */
	.card__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	.card:hover { transform: none; }
	.card__gallery { scroll-behavior: auto; }
}

/* ========================================================================== formularios

   Contact Form 7, medido contra producción: etiquetas de 13 px/500 en #1b3942
   con 7 px de separación, campos de 50 px con borde #666 y radio 10 px,
   párrafos separados 13 px, y botón naranja con el mismo radio.

   Una diferencia deliberada: producción colapsa el textarea a 50 px pese a
   tener rows="10" — se queda inservible. Aquí respeta su altura.
   ========================================================================== */

.wpcf7-form p { margin: 0 0 13px; }

.wpcf7-form label {
	display: block;
	width: 100%;
	font-size: 13px;
	font-weight: 500;
	color: #1b3942;
	margin-bottom: 7px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	height: 50px;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 13px;
	color: var(--ink);
	background: #fff;
	border: 1px solid #666;
	border-radius: 10px;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}

.wpcf7-form textarea {
	height: auto;
	min-height: 140px;
	padding-block: 12px;
	resize: vertical;
	line-height: 1.6;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
	outline: 0;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(255, 130, 4, .18);
}

.wpcf7-form ::placeholder { color: var(--ink-faint); }

.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
	height: 50px;
	min-width: 145px;
	padding: 9px 26px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: var(--brand);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background .15s;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover { background: var(--brand-dark); }

/* El spinner de CF7 se colaba a la derecha del botón y descuadraba la fila. */
.wpcf7-spinner { margin: 0 0 0 10px; vertical-align: middle; }

.wpcf7-form .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	border-width: 1px;
	font-size: .9rem;
}
.wpcf7-form .wpcf7-not-valid-tip { font-size: 12px; margin-top: 5px; }
.wpcf7-form .wpcf7-not-valid { border-color: #d63638; }

/* Producción oculta el sello de reCAPTCHA. */
.grecaptcha-badge { opacity: 0 !important; }

/* ========================================================================== ficha

   Medido contra producción a 1600 / 1024 / 375:
     contenedor   1510 (pad 45)  ·  1000 (pad 12)  ·  351 (pad 12)
     columnas     1117 + 362     ·  734 + 234      ·  apiladas
     gap                32       ·        32       ·  —
     galería      650 alto, 50/50 ·  650, 50/50    ·  apilada
     nav interna  fija 50px      ·  oculta         ·  oculta
   ========================================================================== */

.psingle__wrap { max-width: 1600px; margin-inline: auto; padding: 0 45px 70px; }

/* ---------------------------------------------------------------- nav interna */

.pnav {
	position: sticky; top: 88px; z-index: 40;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.pnav__inner {
	max-width: 1600px; margin-inline: auto; padding-inline: 45px;
	height: 50px; display: flex; align-items: center; gap: 44px;
}
.pnav a {
	color: var(--ink-soft); font-size: .9rem; font-weight: 500;
	padding: 4px 0; border-bottom: 2px solid transparent;
}
.pnav a:hover { color: var(--ink); text-decoration: none; }
/* Marca dónde estás: producción solo enlaza, sin indicar sección actual. */
.pnav a.is-current { color: var(--brand-dark); border-bottom-color: var(--brand); }

/* --------------------------------------------------------------------- cabecera */

.phead { padding: 30px 0 22px; }
.pbreadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--ink-faint); margin-bottom: 16px; }
.pbreadcrumb a { color: var(--ink-faint); }
.pbreadcrumb a:hover { color: var(--brand-dark); }

.phead__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.phead__badges { display: flex; gap: 7px; margin-bottom: 12px; }
.phead__title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .35em; }
.phead__address { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .93rem; margin: 0; }
.phead__address svg { color: var(--brand); flex: none; }

.phead__price { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--brand-dark); margin: 0; white-space: nowrap; }
.phead__price.is-muted { color: var(--ink-faint); }
.phead__from, .phead__cycle { font-size: .9rem; font-weight: 500; color: var(--ink-soft); }

/* ---------------------------------------------------------------------- galería */

.pgallery {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	height: 650px;
	border-radius: var(--radius);
	overflow: hidden;
}
.pgallery__hero { height: 100%; }
.pgallery__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 100%; }

.pgallery__shot {
	padding: 0; border: 0; background: #eee; cursor: pointer;
	width: 100%; height: 100%; overflow: hidden; display: block;
}
.pgallery__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pgallery__shot:hover img { transform: scale(1.04); }

.pgallery__all {
	position: absolute; inset-inline-end: 18px; inset-block-end: 18px;
	display: inline-flex; align-items: center; gap: 8px;
	background: #fff; color: var(--ink); border: 1px solid var(--ink);
	border-radius: 8px; padding: 9px 16px; font-size: .86rem; font-weight: 600;
	cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.pgallery__all:hover { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------------- columnas */

.psingle__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 362px;
	gap: 32px;
	align-items: start;
	margin-top: 40px;
}

.pblock { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.pblock:last-of-type { border-bottom: 0; }
.pblock__title { font-size: 1.3rem; margin-bottom: .8em; }
.pblock__body { max-width: 70ch; line-height: 1.75; }
.pblock__body p { margin: 0 0 1em; }

.poverview {
	display: flex; flex-wrap: wrap; gap: 38px; list-style: none; margin: 0; padding: 22px 26px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.poverview li { display: flex; flex-direction: column; }
.poverview strong { font-family: var(--font-head); font-size: 1.35rem; }
.poverview span { color: var(--ink-faint); font-size: .84rem; }

.pfeatures { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.pfeatures li {
	display: flex; align-items: center; gap: 9px; font-size: .9rem;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-sm); padding: 10px 14px;
}
.pfeatures svg { color: var(--st-available); flex: none; }

.paddress { display: grid; grid-template-columns: 150px 1fr; gap: 10px 20px; margin: 0 0 20px; font-size: .92rem; }
.paddress dt { color: var(--ink-faint); }
.paddress dd { margin: 0; }
.paddress__maps { font-weight: 600; font-size: .9rem; }

.pmap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pmap iframe { display: block; width: 100%; height: 420px; border: 0; }

.pshare { display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.pshare__label { color: var(--ink-faint); font-size: .86rem; margin-inline-end: 4px; }
.pshare__link {
	width: 38px; height: 38px; display: grid; place-items: center;
	border: 1px solid var(--line); border-radius: 50%;
	color: var(--ink-soft); background: var(--surface); transition: all .15s;
}
.pshare__link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ----------------------------------------------------------------------- sidebar */

.psidebar { position: sticky; top: 156px; }
.psidebar__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

.psidebar__agent { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.psidebar__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.psidebar__agent-name { font-weight: 700; margin: 0; font-size: .98rem; }
.psidebar__agent-role { color: var(--ink-faint); font-size: .82rem; margin: 2px 0 0; }

.psidebar__actions { display: grid; gap: 9px; padding: 18px 0; }
.psidebar__actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .9rem; padding: 11px 18px; }

.psidebar__form-title { font-weight: 700; font-size: .95rem; margin: 0 0 14px; }
.pfield { margin: 0 0 13px; }
.pfield label { display: block; font-size: 13px; font-weight: 500; color: #1b3942; margin-bottom: 7px; }
.pfield label span { color: var(--brand-dark); }
.pfield input, .pfield textarea {
	width: 100%; height: 46px; padding: 8px 14px;
	font-family: inherit; font-size: 13px; color: var(--ink);
	background: #fff; border: 1px solid #666; border-radius: 10px;
	-webkit-appearance: none; appearance: none;
	transition: border-color .15s, box-shadow .15s;
}
.pfield textarea { height: auto; min-height: 104px; padding-block: 11px; resize: vertical; line-height: 1.6; }
.pfield input:focus, .pfield textarea:focus {
	outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,130,4,.18);
}
.pfield__error { display: block; color: #d63638; font-size: 12px; margin-top: 5px; }
.pfield--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.psidebar__submit { width: 100%; margin-top: 4px; }
.psidebar__status { font-size: .86rem; margin: 12px 0 0; }
.psidebar__status.is-ok { color: var(--st-available); }
.psidebar__status.is-error { color: #d63638; }

/* --------------------------------------------------------------------- similares */

.psimilar { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.psimilar__title { font-size: 1.5rem; margin-bottom: 26px; }

/* --------------------------------------------------------------------- lightbox */

.lightbox {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(0, 0, 0, .93);
	display: none; align-items: center; justify-content: center; gap: 12px;
	padding: 60px 20px;
}
.lightbox.is-open { display: flex; }
body.has-lightbox { overflow: hidden; }

.lightbox__stage { margin: 0; max-width: min(1200px, 92vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__stage img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 6px; }
.lightbox__count { color: #c9c9c9; font-size: .85rem; font-variant-numeric: tabular-nums; }

.lightbox__close {
	position: absolute; top: 18px; inset-inline-end: 20px;
	width: 44px; height: 44px; font-size: 30px; line-height: 1;
	background: none; border: 0; color: #fff; cursor: pointer; border-radius: 50%;
}
.lightbox__close:hover { background: rgba(255,255,255,.14); }

.lightbox__nav {
	width: 52px; height: 52px; flex: none;
	background: rgba(255,255,255,.12); border: 0; border-radius: 50%;
	color: #fff; font-size: 34px; line-height: 1; cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255,255,255,.26); }

/* -------------------------------------------------------------------- responsive */

@media (max-width: 1200px) {
	/* Producción oculta la nav interna por debajo de 1200. */
	.pnav { display: none; }
	.psingle__wrap { padding-inline: 12px; }
	.psingle__cols { grid-template-columns: minmax(0, 1fr) 234px; }
	.psidebar { top: 92px; }
	.psidebar__card { padding: 18px; }
}

@media (max-width: 900px) {
	.psingle__cols { grid-template-columns: 1fr; gap: 40px; }
	.psidebar { position: static; }
	.pgallery { grid-template-columns: 1fr; height: auto; gap: 8px; }
	.pgallery__hero { aspect-ratio: 4 / 3; }
	.pgallery__grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; height: 92px; gap: 8px; }
	.phead__row { flex-direction: column; gap: 14px; }
	.pmap iframe { height: 320px; }
}

@media (max-width: 520px) {
	.paddress { grid-template-columns: 1fr; gap: 3px 0; }
	.paddress dt { margin-top: 10px; }
	.poverview { gap: 24px; padding: 18px; }
	.lightbox { padding: 52px 8px; }
	.lightbox__nav { width: 42px; height: 42px; font-size: 28px; }
}

/* ========================================================================== home

   Medido contra producción a 1600:
     hero 1600×700 · secciones 610 y 700 · banner 725
     collage: columna alta 380×520 + dos apiladas de 365×250
     For Rent texto-izquierda, For Sale invertido

   Diferencia de fondo: allí las fotos son fondos CSS (2,6 MB, sin srcset
   posible). Aquí son <img>, así que el móvil recibe una versión a su medida.
   ========================================================================== */

.hhero {
	position: relative;
	min-height: 700px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	background: #0A0101;
}

.hhero__slides { position: absolute; inset: 0; }
.hhero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease-in-out; }
.hhero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hhero__slide.is-active { opacity: 1; animation: hero-kenburns 11s ease-out forwards; }

.hhero__overlay { position: absolute; inset: 0; background: #0A0101; opacity: .5; }

.hhero__content { position: relative; z-index: 2; padding: 40px 24px; max-width: 880px; }
.hhero__title {
	color: #fff; font-weight: 400; margin-bottom: .4em;
	font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.15;
	text-shadow: 0 0 12px rgba(0,0,0,.6);
}
.hhero__subtitle {
	color: #fff; font-weight: 300; margin: 0 auto; max-width: 620px;
	font-size: clamp(.98rem, 1.5vw, 1.15rem); line-height: 1.6;
	text-shadow: 0 0 10px rgba(0,0,0,.55);
}
.hhero__cta { margin-top: 30px; }

.hstats {
	position: relative; z-index: 2;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 56px;
	list-style: none; margin: 46px 0 0; padding: 0 24px;
}
.hstats li { display: flex; flex-direction: column; align-items: center; color: #fff; }
.hstats strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.hstats span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

/* ------------------------------------------------------------------ secciones */

.hsection { padding: 70px 0; }
.hsection__inner {
	max-width: 1600px; margin-inline: auto; padding-inline: 30px;
	display: grid; grid-template-columns: minmax(0, 755px) minmax(0, 380px) minmax(0, 365px);
	gap: 25px; align-items: center;
}
.hsection--images-first .hsection__inner { grid-template-columns: minmax(0, 380px) minmax(0, 365px) minmax(0, 755px); }
.hsection--images-first .hsection__text { order: 3; }
.hsection--images-first .hsection__media { order: 1; }

.hsection__text { max-width: 640px; }
.hsection__title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .3em; }
.hsection__lead { font-size: 1.05rem; color: var(--ink); margin: 0 0 .9em; }
.hsection__body { color: var(--ink-soft); line-height: 1.75; margin: 0 0 26px; }
.hsection__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hsection__or { color: var(--ink-faint); font-size: .82rem; letter-spacing: .06em; }

/* El collage ocupa dos columnas del grid: una alta y dos apiladas. */
.hsection__media { display: contents; }
.hsection__tall { height: 520px; border-radius: var(--radius); overflow: hidden; }
.hsection__tall img { width: 100%; height: 100%; object-fit: cover; }
.hsection__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; height: 520px; }
.hsection__stack img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* --------------------------------------------------------------------- banner */

.hbanner {
	position: relative; min-height: 460px;
	display: flex; align-items: center; justify-content: center; text-align: center;
	overflow: hidden; background: #0A0101;
}
.hbanner__bg { position: absolute; inset: 0; }
.hbanner__bg img { width: 100%; height: 100%; object-fit: cover; }
.hbanner__overlay { position: absolute; inset: 0; background: #0A0101; opacity: .52; }
.hbanner__content { position: relative; z-index: 2; padding: 60px 24px; max-width: 700px; }
.hbanner__title { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: .35em; }
.hbanner__text { color: #fff; font-weight: 300; line-height: 1.6; margin: 0 0 28px; }

/* ----------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
	.hsection__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
	.hsection--images-first .hsection__inner { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
	/* Con poco ancho sobra la tercera foto antes que apretar las tres. */
	.hsection__stack { display: none; }
	.hsection__tall { height: 430px; }
}

@media (max-width: 900px) {
	.hhero { min-height: 560px; }
	.hstats { gap: 30px; margin-top: 34px; }
	.hstats strong { font-size: 1.25rem; }

	.hsection { padding: 52px 0; }
	.hsection__inner,
	.hsection--images-first .hsection__inner { grid-template-columns: 1fr; gap: 30px; }
	.hsection--images-first .hsection__text,
	.hsection--images-first .hsection__media { order: initial; }
	.hsection__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
	.hsection__tall { height: 260px; }
	.hsection__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; height: 260px; }
}

@media (max-width: 520px) {
	.hhero { min-height: 480px; }
	.hstats { gap: 20px 26px; }
	.hsection__inner { padding-inline: 16px; }
	.hsection__media { grid-template-columns: 1fr; }
	.hsection__tall { height: 220px; }
	.hsection__stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: 140px; }
	.hsection__actions { gap: 10px; }
}

/* ========================================================================== home: iconos, header transparente, collage

   Correcciones tras revisar contra producción.
   ========================================================================== */

/* Círculo de 100×100 con el SVG dentro, como producción. */
.hicon {
	display: grid; place-items: center;
	width: 100px; height: 100px;
	border-radius: 50%;
	/* Negro puro, como producción: --ink es #1a1a1a y se notaba más claro. */
	background: #000;
	color: rgba(255, 255, 255, .86);
	margin-bottom: 22px;
}
.hicon svg { width: 50px; height: 50px; }
/* El de vacacionales va en naranja. */
.hicon--brand { background: var(--brand); margin-inline: auto; }

.hsection--images-first .hicon { margin-inline-start: 0; }

/*
 * El collage: la columna alta y la pila miden lo mismo y llenan su caja.
 * Antes la alta se quedaba corta porque su altura dependía del contenido.
 */
.hsection__inner { align-items: stretch; }
.hsection__text { align-self: center; }
.hsection__tall,
.hsection__stack { height: 100%; min-height: 520px; }
.hsection__tall img,
.hsection__stack img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------- header transparente */

body.has-transparent-header .site-header {
	background: transparent;
	transition: background .25s ease, box-shadow .25s ease;
}
body.has-transparent-header .site-header.is-solid {
	background: var(--header-bg);
	box-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}
/* Con el panel móvil abierto siempre sólido: si no, el menú flota sobre la foto. */
body.has-transparent-header .site-header.has-nav-open { background: var(--header-bg); }

/* El hero arranca bajo el header transparente. */
body.has-transparent-header .hhero { margin-top: -88px; padding-top: 88px; }

@media (max-width: 900px) {
	body.has-transparent-header .hhero { margin-top: -68px; padding-top: 68px; }
	.hicon { width: 76px; height: 76px; margin-bottom: 18px; }
	.hicon svg { width: 38px; height: 38px; }
	.hsection__tall, .hsection__stack { min-height: 0; }
}

/* --------------------------------------------------------- banner en vídeo */

.hbanner__bg video {
	width: 100%; height: 100%; object-fit: cover; display: block;
}

@media (prefers-reduced-motion: reduce) {
	/* Quien pidió menos movimiento se queda con el póster. */
	.hbanner__bg video { display: none; }
}

/* ------------------------------------------------------- archivos de taxonomía */

.page-head p { color: var(--ink-soft); }

/* ========================================================================== contacto

   Dos columnas como producción a 1600: info 627 a la izquierda, formulario 658
   a la derecha. Apiladas por debajo de 900.
   ========================================================================== */

.contact { padding-bottom: 70px; }
.contact__cols {
	display: grid;
	grid-template-columns: minmax(0, 627px) minmax(0, 658px);
	gap: 60px;
	justify-content: center;
	padding-top: 56px;
}

.contact__block { margin-bottom: 40px; }
.contact__block h2 { font-size: 1.4rem; margin-bottom: .7em; }

.contact__phones, .contact__hours { list-style: none; margin: 0; padding: 0; }
.contact__phones li { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; font-size: 1.02rem; }
.contact__phones svg { color: var(--brand); flex: none; }
.contact__phones a { color: var(--ink); }
.contact__phones a:hover { color: var(--brand-dark); text-decoration: none; }

.contact__hours li { color: var(--ink-soft); margin-bottom: 8px; }

.contact__address { line-height: 1.7; margin: 0 0 10px; }
.contact__maps { font-weight: 600; font-size: .92rem; }

.contact__form {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 34px;
	box-shadow: var(--shadow);
	align-self: start;
}
.contact__form h2 { font-size: 1.4rem; margin-bottom: 1em; }
.contact__fallback { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

@media (max-width: 900px) {
	.contact__cols { grid-template-columns: 1fr; gap: 36px; padding-top: 38px; }
	.contact__form { padding: 24px 20px; }
}
