/*
Theme Name: Corretaje Pro
Theme URI: https://example.com/
Author: Corretaje Pro
Description: Tema moderno para corretaje de propiedades en Chile. Incluye publicaciones de propiedades con galería de fotos, buscador por operación, tipo, región y comuna, y sellos de "Vendido" / "Arrendado". Todo se administra desde el escritorio de WordPress.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: corretaje
*/

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
	--accent: #d9583b;
	--accent-ink: #ffffff;
	--ink: #111214;
	--ink-2: #3b3d42;
	--muted: #6f727a;
	--line: #e6e3dc;
	--paper: #f7f5f0;
	--white: #ffffff;
	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 20px 50px -20px rgba(17, 18, 20, .25);
	--shadow-sm: 0 6px 20px -8px rgba(17, 18, 20, .18);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: "Instrument Serif", Georgia, serif;
	--wrap: 1320px;
	--header-h: 76px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .9em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .2s ease;
	white-space: nowrap; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(.92); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { filter: brightness(.94); }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
	display: flex; align-items: center; transition: background .3s, box-shadow .3s, color .3s;
	color: var(--ink); background: rgba(247, 245, 240, .85); backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0,0,0,.05);
}
.has-hero .site-header { background: transparent; color: #fff; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header.is-scrolled { background: rgba(17,18,20,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.brand img { max-height: 46px; width: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; }
.brand-sub { font-size: .62rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-nav a { font-weight: 500; font-size: .95rem; opacity: .9; position: relative; white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 901px) { .main-nav ul { gap: 18px; } .main-nav a { font-size: .88rem; } }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--accent); transition: width .25s; }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: .7em 1.2em; }
.has-hero .site-header:not(.is-scrolled) .btn-dark { background: #fff; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .3s; }

/* Barra negra de WordPress (solo la ve el administrador conectado) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-main { padding-top: var(--header-h); min-height: 60vh; }
.has-hero .site-main { padding-top: 0; }

/* ==========================================================================
   Hero + buscador
   ========================================================================== */
.hero {
	position: relative; min-height: 92vh; display: flex; align-items: flex-end;
	color: #fff; background: #1a1b1e; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 70px;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%), linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 30%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.85) 100%); }
.hero h1, .hero-sub, .hero-kicker { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-bg.is-empty { background: radial-gradient(1200px 600px at 80% 10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%), linear-gradient(135deg, #1a1b1e, #2b2d33); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero .wrap { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 600; opacity: .9; margin-bottom: 18px; }
.hero-kicker::before { content: ""; width: 28px; height: 1.5px; background: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 6.2rem); font-weight: 800; letter-spacing: -.045em; max-width: 14ch; margin-bottom: .25em; }
.hero h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: color-mix(in srgb, var(--accent) 70%, #fff); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); opacity: .88; max-width: 52ch; margin-bottom: 34px; }

/* Buscador */
.search-box { background: var(--white); color: var(--ink); border-radius: 28px; padding: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.search-tabs { display: flex; gap: 6px; padding: 6px 6px 12px; flex-wrap: wrap; }
.search-tab { position: relative; }
.search-tab input { position: absolute; opacity: 0; pointer-events: none; }
.search-tab span { display: inline-block; padding: .55em 1.15em; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--muted); transition: .2s; }
.search-tab input:checked + span { background: var(--ink); color: #fff; }
.search-tab input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-fields { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0; background: var(--paper); border-radius: 20px; align-items: stretch; }
.search-field { padding: 12px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.search-field:last-of-type { border-right: 0; }
.search-field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.search-field select, .search-field input {
	border: 0; background: transparent; padding: 4px 0; font-size: 1rem; font-weight: 600; width: 100%;
	appearance: none; -webkit-appearance: none; outline: none; cursor: pointer; text-overflow: ellipsis;
}
.search-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 20px; }
.search-field select:disabled { opacity: .45; cursor: not-allowed; }
.search-submit { padding: 8px; display: flex; align-items: stretch; }
.search-submit .btn { border-radius: 16px; padding: 0 30px; font-size: 1rem; }
.search-more { display: none; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 8px; background: var(--paper); border-radius: 20px; }
.search-more.is-open { display: grid; }
.search-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 4px; gap: 10px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 4px 6px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--accent); }
.link-btn svg { width: 16px; height: 16px; }
.search-count { font-size: .85rem; color: var(--muted); }

.hero-stats { display: flex; gap: 40px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div { font-size: .85rem; opacity: .8; }
.hero-stats strong { display: block; font-size: 1.8rem; font-weight: 800; opacity: 1; letter-spacing: -.03em; }

/* ==========================================================================
   Secciones
   ========================================================================== */
.section { padding: 90px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 50ch; }
.eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: 10px; display: block; }

/* Tipos */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.type-card { background: var(--white); border-radius: var(--radius-sm); padding: 22px 20px; border: 1px solid var(--line); transition: .25s; display: flex; flex-direction: column; gap: 14px; }
.type-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.type-card svg { width: 30px; height: 30px; color: var(--accent); }
.type-card strong { font-size: 1.05rem; }
.type-card small { color: var(--muted); display: block; }

/* ==========================================================================
   Tarjeta de propiedad
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 30px 26px; }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.6)); pointer-events: none; }
.card-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.tag { background: rgba(255,255,255,.95); color: var(--ink); font-size: .74rem; font-weight: 700; padding: .4em .85em; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.tag-accent { background: var(--accent); color: var(--accent-ink); }
.card-price { position: absolute; left: 18px; bottom: 14px; z-index: 2; color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.card-price small { display: block; font-size: .72rem; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.card-photos { position: absolute; right: 14px; bottom: 16px; z-index: 2; color: #fff; font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.card-photos svg { width: 15px; height: 15px; }
.card-body { padding: 16px 4px 0; }
.card-title { font-size: 1.12rem; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.card-loc { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.card-loc svg { width: 15px; height: 15px; flex: none; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line); }
.specs span { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { width: 17px; height: 17px; color: var(--muted); }

/* Sello Vendido / Arrendado */
.sello { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.sello span {
	background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .22em; font-size: 1.05rem;
	padding: .55em 1.6em; border-radius: 6px; transform: rotate(-8deg); text-transform: uppercase;
	box-shadow: 0 10px 30px rgba(0,0,0,.35); border: 2px solid #fff;
}
.sello--vendido span { background: #c4302b; }
.sello--arrendado span { background: #1f5fbf; }
.sello--reservado span { background: #c98a12; }
.is-closed .card-media img { filter: grayscale(.65) brightness(.85); }
.sello--lg span { font-size: clamp(1.3rem, 3vw, 2.2rem); }

/* ==========================================================================
   Listado (archivo)
   ========================================================================== */
.page-hero { padding: 60px 0 30px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: .2em; }
.page-hero p { color: var(--muted); }
.filters-bar { position: relative; z-index: 20; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.filters-bar .search-box { box-shadow: none; border: 1px solid var(--line); padding: 6px; border-radius: 22px; }
.filters-bar .search-tabs { padding: 4px 4px 8px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.results-head strong { font-size: 1.1rem; }
.results-head select { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .55em 1em; font-weight: 600; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .85rem; font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.chip b { font-weight: 400; opacity: .6; }
.empty { text-align: center; padding: 80px 20px; background: var(--white); border-radius: var(--radius); border: 1px dashed var(--line); }
.empty h3 { font-size: 1.6rem; }
.empty p { color: var(--muted); }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 60px 0 20px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 46px; height: 46px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); }

/* ==========================================================================
   Ficha de propiedad
   ========================================================================== */
.prop-top { padding: 34px 0 22px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.prop-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.prop-title-row h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin: 0 0 8px; max-width: 22ch; }
.prop-price { text-align: right; }
.prop-price strong { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; display: block; line-height: 1; }
.prop-price small { color: var(--muted); font-weight: 600; }

/* Mosaico */
.mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 10px; border-radius: var(--radius); overflow: hidden; }
.mosaic a { position: relative; overflow: hidden; display: block; background: #ddd; cursor: zoom-in; }
.mosaic a:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .3s; }
.mosaic a:hover img { transform: scale(1.04); filter: brightness(.92); }
.mosaic.count-1 { grid-template-columns: 1fr; grid-template-rows: 560px; }
.mosaic.count-2 { grid-template-columns: 2fr 1fr; }
.mosaic.count-2 a:nth-child(2) { grid-row: span 2; }
.mosaic.count-3 { grid-template-columns: 2fr 1fr; }
.mosaic.count-4 { grid-template-columns: 2fr 1fr 1fr; }
.mosaic.count-4 a:nth-child(4) { grid-column: span 2; }
.mosaic-all { position: absolute; right: 18px; bottom: 18px; z-index: 3; background: #fff; color: var(--ink); }
.mosaic-all:hover { background: var(--ink); color: #fff; }
.mosaic .sello { z-index: 2; }

/* Carrusel móvil */
.swipe, .swipe-count { display: none; }

.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 60px; padding: 46px 0 90px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 40px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.fact svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 8px; }
.fact small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.fact strong { font-size: 1.15rem; }
.prop-section { margin-bottom: 44px; }
.prop-section h2 { font-size: 1.6rem; margin-bottom: 16px; }
.prop-content { font-size: 1.05rem; color: var(--ink-2); }
.prop-content p { margin-bottom: 1.1em; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; }
.features li { display: flex; gap: 10px; align-items: center; }
.features li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.video-embed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #000; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }

.contact-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.contact-card > p { color: var(--muted); font-size: .92rem; }
.contact-card .btn { margin-bottom: 10px; }
.contact-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm); padding: .85em 1em; outline: none; transition: border-color .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); background: #fff; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.notice-ok { background: #e7f6ec; color: #1d6b3a; }
.notice-err { background: #fdeceb; color: #a12a22; }
.closed-banner { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-weight: 600; margin-bottom: 30px; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,12,.97); display: none; flex-direction: column; color: #fff; }
.lb.is-open { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; font-weight: 600; }
.lb-close { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 22px; }
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 70px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-thumbs { display: flex; gap: 8px; padding: 14px 22px 20px; overflow-x: auto; justify-content: center; scrollbar-width: thin; }
.lb-thumbs button { flex: none; width: 74px; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .5; background: none; transition: .2s; }
.lb-thumbs button.is-active { border-color: #fff; opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.lb-lock { overflow: hidden; }

/* ==========================================================================
   CTA + Footer
   ========================================================================== */
.cta { margin: 0 auto 90px; }
.cta-inner { position: relative; overflow: hidden; border-radius: 32px; background: var(--ink); color: #fff; padding: clamp(40px, 7vw, 90px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-inner::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 65%); opacity: .55; }
.cta-inner > * { position: relative; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 0; }
.cta h2 em { font-family: var(--serif); font-weight: 400; }
.cta p { opacity: .8; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn-ghost { color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.site-footer { background: #0c0d0f; color: #c9cad0; padding: 70px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; opacity: .7; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Páginas genéricas */
.entry { max-width: 780px; margin: 0 auto; padding: 50px 0 90px; }
.entry h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.entry-content { font-size: 1.07rem; color: var(--ink-2); }
.entry-content img { border-radius: var(--radius-sm); }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
	.hero-bg { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.prop-layout { grid-template-columns: 1fr; gap: 30px; }
	.contact-card { position: static; }
	.search-more { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--ink); color: #fff; padding: 24px 20px; transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s, opacity .3s, visibility .3s; }
	.main-nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
	.main-nav ul { flex-direction: column; gap: 16px; font-size: 1.15rem; }
	.header-actions .btn-dark { display: none; }
	.search-fields { grid-template-columns: 1fr 1fr; }
	.search-field { border-bottom: 1px solid var(--line); }
	.search-field:nth-child(2n) { border-right: 0; }
	.search-submit { grid-column: 1 / -1; }
	.search-submit .btn { width: 100%; padding: 16px; }
	.search-more { grid-template-columns: 1fr 1fr; }
	.cta-inner { grid-template-columns: 1fr; }
	.cta-actions { justify-content: flex-start; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
	.mosaic { display: none; }
	.swipe { display: flex; position: relative; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
	.swipe::-webkit-scrollbar { display: none; }
	.swipe a { flex: 0 0 88%; scroll-snap-align: center; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
	.swipe img { width: 100%; height: 100%; object-fit: cover; }
	.swipe-wrap { position: relative; }
	.swipe-count { display: block; position: absolute; right: 14px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; z-index: 3; }
	.prop-price { text-align: left; }
	.lb-stage { padding: 0; }
	.lb-nav { display: none; }
}
@media (max-width: 600px) {
	.section { padding: 60px 0; }
	.hero { min-height: auto; padding-top: calc(var(--header-h) + 60px); }
	.search-fields, .search-more { grid-template-columns: 1fr; }
	.search-field { border-right: 0; }
	.hero-stats { gap: 24px; }
	.footer-grid { grid-template-columns: 1fr; }
	.filters-bar { position: static; }
}
