/*
Theme Name: JXLab Inmobiliaria
Description: Tema para sitios de inmobiliarias. Trabaja junto al plugin Prop JXLab (propiedades, filtros y ajustes). Primera versión hecha para Gabriela Tirado Propiedades.
Author: JXLab
Version: 1.5.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jxlab-inmo
*/

/* ==================================================================
   TOKENS (del design system — cambiá acá los colores por cliente)
   ================================================================== */
:root {
	--navy: #153451;
	--navy-deep: #0d2236;
	--gold: #C9A669;
	--gold-hover: #d6b77f;
	--gold-ink: #7d6335;
	--cream: #F5F2EB;
	--white: #FFFFFF;
	--ink: #24303c;
	--ink-soft: #3b4855;
	--ink-muted: #5d6b78;
	--line: #CACACA;
	--line-soft: rgba(21, 52, 81, .14);
	--photo-empty: #dfe3e6;
	--scrim: rgba(13, 34, 54, .72);

	--state-ok-bg: #e7f5ea; --state-ok: #1e7b34;
	--state-hold-bg: #fcf3dc; --state-hold: #8a6100;
	--state-closed-bg: #f0f0f1; --state-closed: #50575e;

	--font-display: "Fraunces", Georgia, serif;
	--font-sans: "Roboto", system-ui, sans-serif;

	--radius-sm: 10px;
	--radius-md: 18px;
	--radius-lg: 28px;
	--radius-pill: 999px;

	--pad-x: 64px;
	--section: 80px;
	--band: 120px;
	--gap-l: 56px;
	--header-h: 88px;
	--shadow-float: 0 18px 40px -24px rgba(21, 52, 81, .45);
	--wrap: 1312px;
}

/* ==================================================================
   BASE
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: var(--font-display); font-weight: 500; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.jxi-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--cream); padding: 12px 18px; border-radius: var(--radius-sm); }
.jxi-skip:focus { top: 16px; color: var(--cream); }

.jxi-wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad-x); }
.jxi-narrow { max-width: 880px; }
.jxi-icon { flex: none; }
.jxi-muted { color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
.jxi-small { font-size: 14px; line-height: 1.5; }

/* Tipografía */
.jxi-display { font-size: 68px; line-height: 1.02; letter-spacing: -.02em; }
.jxi-h1 { font-size: 46px; line-height: 1.1; letter-spacing: -.01em; }
.jxi-h2 { font-size: 46px; line-height: 1.1; }
.jxi-h3 { font-size: 26px; line-height: 1.25; }
.jxi-lead { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 36em; }
.jxi-kicker { display: flex; align-items: center; gap: 6px; font: 500 15px/1.5 var(--font-sans); color: var(--gold-ink); }
.jxi-heading { display: flex; flex-direction: column; gap: 14px; }
.jxi-mb { margin-bottom: var(--gap-l); }
.jxi-textlink { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; font: 500 16px/1 var(--font-sans); color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* Botones */
.jxi-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--radius-pill); border: 0; font: 500 16px/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.jxi-btn-navy { background: var(--navy); color: var(--cream); }
.jxi-btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.jxi-btn-gold { background: var(--gold); color: var(--navy); }
.jxi-btn-gold:hover { background: var(--gold-hover); color: var(--navy); }
.jxi-btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.jxi-btn-outline:hover { background: var(--navy); color: var(--cream); }
.jxi-btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); }
.jxi-btn-ghost:hover { background: var(--cream); color: var(--navy); }
.jxi-btn-block { width: 100%; }
.jxi-btn-lg { min-height: 52px; }
.jxi-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.jxi-actions--center { justify-content: center; }

/* Etiquetas */
.jxi-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.jxi-badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font: 500 13px/1.4 var(--font-sans); }
.jxi-badge-disponible { background: var(--state-ok-bg); color: var(--state-ok); }
.jxi-badge-reservada { background: var(--state-hold-bg); color: var(--state-hold); }
.jxi-badge-vendida, .jxi-badge-alquilada { background: var(--state-closed-bg); color: var(--state-closed); }
.jxi-badge-op { background: var(--white); color: var(--navy); }

/* ==================================================================
   ENCABEZADO
   ================================================================== */
.jxi-header { --fg: var(--navy); --sub: var(--gold-ink); --btn-bg: var(--navy); --btn-fg: var(--cream); background: var(--cream); border-bottom: 1px solid var(--line-soft); color: var(--fg); position: relative; z-index: 20; }
.jxi-header--overlay { --fg: var(--cream); --sub: var(--gold); --btn-bg: var(--gold); --btn-fg: var(--navy); position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom-color: rgba(245, 242, 235, .28); }
.jxi-header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.jxi-header-actions { display: flex; align-items: center; gap: 36px; }

.jxi-logo-img { height: 64px; width: auto; }
.jxi-mark--footer .jxi-logo-img { height: 72px; }
.jxi-mark { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--fg); }
.jxi-mark:hover { color: var(--fg); }
.jxi-mark-ring { position: relative; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font: 500 17px/1 var(--font-display); color: var(--fg); }
.jxi-mark-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); }
.jxi-mark-text { display: flex; flex-direction: column; gap: 2px; }
.jxi-mark-name { font: 500 21px/1.1 var(--font-display); }
.jxi-mark-sub { font: 500 13px/1.2 var(--font-sans); letter-spacing: .08em; color: var(--sub); }

.jxi-menu { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.jxi-menu a { display: inline-flex; align-items: center; min-height: 48px; color: var(--fg); text-decoration: none; font: 500 16px/1 var(--font-sans); }
.jxi-menu a:hover, .jxi-menu .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.jxi-menu-toggle { display: none; background: none; border: 0; color: var(--fg); width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius-pill); }

/* ==================================================================
   HOME
   ================================================================== */
.jxi-hero { position: relative; background: var(--navy); overflow: hidden; color: var(--cream); }
.jxi-hero-bg { position: absolute; inset: 0; }
.jxi-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.jxi-hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.jxi-hero-inner { position: relative; padding-top: calc(var(--header-h) + 96px); padding-bottom: 148px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.jxi-hero-inner > * { max-width: 820px; }
.jxi-hero .jxi-display { color: var(--cream); max-width: 14em; }
.jxi-hero-text { font-size: 19px; line-height: 1.6; max-width: 34em; }
.jxi-hero .jxi-actions { padding-top: 8px; }
.jxi-hero-search { position: relative; margin-top: -52px; }

.jxi-section { padding-block: var(--section); }
.jxi-band { padding-block: var(--band); }
.jxi-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--gap-l); }
.jxi-white { background: var(--white); }
.jxi-navy { background: var(--navy); color: var(--cream); }
.jxi-navy .jxi-h2 { color: var(--cream); }

.jxi-help { display: flex; flex-wrap: wrap; gap: 28px; }
.jxi-panel { flex: 1 1 300px; min-width: 0; background: var(--cream); border-radius: var(--radius-lg); padding: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.jxi-panel p { color: var(--ink-soft); max-width: 30em; }
.jxi-panel-head { display: flex; align-items: center; gap: 16px; }
.jxi-panel-head > div { display: flex; flex-direction: column; gap: 2px; }
.jxi-panel-icon { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--gold-ink); display: inline-flex; align-items: center; justify-content: center; }
.jxi-panel .jxi-panel-sub { font-size: 15px; font-weight: 500; color: var(--ink); }
.jxi-panel .jxi-btn { margin-top: 8px; }
.jxi-panel--navy { background: var(--navy); color: var(--cream); }
.jxi-panel--navy .jxi-h3 { color: var(--gold); }
.jxi-panel--navy p { color: var(--cream); }
.jxi-panel--white { background: var(--white); }

.jxi-pillars { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.jxi-pillar { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.jxi-pillar-title { font-size: 26px; line-height: 1.25; color: var(--gold); }
.jxi-pillar p { font-size: 16px; line-height: 1.6; color: var(--cream); }

/* Llamado final (zona) */
.jxi-cta-wrap { padding-bottom: var(--band); }
.jxi-cta { background: var(--navy); color: var(--cream); border-radius: var(--radius-lg); padding: 56px 64px; box-shadow: var(--shadow-float); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.jxi-cta-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.jxi-cta-title { font-size: 40px; line-height: 1.15; letter-spacing: -.015em; color: var(--cream); max-width: 20em; }
.jxi-cta-meta { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--cream); }
.jxi-cta-meta li { display: inline-flex; align-items: center; gap: 8px; }
.jxi-cta-meta .jxi-icon { color: var(--gold); }
.jxi-cta-meta a { color: var(--cream); }
.jxi-cta .jxi-btn { flex: none; }

.jxi-team { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 88px; }
.jxi-team-text { flex: 1 1 100%; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 22px; }
.jxi-team-text p { max-width: 44em; color: var(--ink-soft); }
.jxi-team-text .jxi-team-lead { max-width: 34em; font: 400 22px/1.4 var(--font-display); color: var(--navy); }
.jxi-quote { margin: 0; padding: 0; font: italic 400 24px/1.35 var(--font-display); color: var(--navy); max-width: 26em; }
.jxi-recruit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.jxi-recruit p { color: var(--ink); }

/* ==================================================================
   BUSCADOR Y CAMPOS
   ================================================================== */
.jxi-search { background: var(--white); border-radius: 20px; padding: 26px 28px; box-shadow: var(--shadow-float); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: end; }
.jxi-search .jxi-btn { padding: 0 34px; }
.jxi-search-full { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; }
.jxi-field label, .jxi-motivos legend { display: block; font: 500 13px/1.4 var(--font-sans); color: var(--ink-muted); margin-bottom: 6px; }
.jxi-field select,
.jxi-field input,
.jxi-field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); padding: 0 14px; font: 400 16px var(--font-sans); color: var(--navy); }
.jxi-field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.jxi-field select:focus, .jxi-field input:focus, .jxi-field textarea:focus { border-color: var(--navy); }
.jxi-price-input { display: flex; }
.jxi-price-input select { width: 84px; flex: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; background: var(--cream); }
.jxi-price-input input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ==================================================================
   TARJETAS Y LISTADO
   ================================================================== */
.jxi-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.jxi-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.jxi-card:hover { color: inherit; }
.jxi-card-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--photo-empty); }
.jxi-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.jxi-card-op { position: absolute; top: 16px; left: 16px; background: var(--cream); color: var(--navy); border-radius: var(--radius-pill); padding: 7px 14px; font: 500 13px var(--font-sans); }
.jxi-card-estado { position: absolute; top: 16px; right: 16px; }
.jxi-card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.jxi-card-price { font: 700 24px/1.2 var(--font-sans); letter-spacing: -.01em; color: var(--navy); }
.jxi-card-title { margin: 0; font: 500 17px/1.4 var(--font-sans); color: var(--ink); }
.jxi-card:hover .jxi-card-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.jxi-card-zone { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.jxi-card-specs { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.jxi-card-specs span { display: inline-flex; align-items: center; gap: 7px; }
.jxi-card-specs .jxi-icon { color: var(--gold-ink); }

.jxi-page-head { padding-top: 72px; }
.jxi-page-head .jxi-heading { gap: 20px; }
.jxi-display--page { font-size: 68px; }
.jxi-count { margin-top: 10px; color: var(--ink-muted); }
.jxi-list { padding: 56px 0 var(--band); }
.jxi-empty { background: var(--white); border-radius: var(--radius-lg); padding: 56px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.jxi-empty p { color: var(--ink-soft); }

.pagination { margin-top: 72px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 48px; height: 48px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); text-decoration: none; font-weight: 500; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line-soft); }
.pagination .page-numbers.current { background: var(--navy); color: var(--cream); box-shadow: none; }
.pagination a.page-numbers:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }

/* ==================================================================
   FICHA
   ================================================================== */
.jxi-single-top { padding-top: 32px; display: flex; flex-direction: column; gap: 28px; }
.jxi-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.jxi-single-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.jxi-single-title { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.jxi-single-zone { display: flex; align-items: center; gap: 8px; color: var(--ink-muted); }
.jxi-single-zone .jxi-icon { color: var(--gold-ink); }
.jxi-single-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.jxi-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.jxi-share { position: relative; flex: none; }
.jxi-btn-share { min-height: 38px; padding: 0 16px; gap: 6px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--navy); }
.jxi-share-status { position: absolute; top: 100%; right: 0; margin-top: 4px; white-space: nowrap; }
.jxi-price-big { font: 700 40px/1.1 var(--font-sans); letter-spacing: -.015em; color: var(--navy); }

/* Mosaico de fotos (escritorio) */
.jxi-mosaic { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 230px); gap: 12px; }
.jxi-mosaic-item { padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--photo-empty); cursor: zoom-in; }
.jxi-mosaic-item img { width: 100%; height: 100%; object-fit: cover; }
.jxi-mosaic-item:first-child { grid-column: span 2; grid-row: span 2; }
.jxi-mosaic--1 .jxi-mosaic-item:first-child { grid-column: 1 / -1; }
.jxi-mosaic--2 .jxi-mosaic-item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.jxi-mosaic--3 .jxi-mosaic-item:nth-child(n+2) { grid-column: span 2; }
.jxi-mosaic--4 .jxi-mosaic-item:nth-child(4) { grid-column: span 2; }
.jxi-mosaic-all { position: absolute; right: 16px; bottom: 16px; min-height: 44px; padding: 0 20px; font-size: 15px; background: var(--cream); color: var(--navy); }
.jxi-mosaic-all:hover { background: var(--white); color: var(--navy); }

/* Galería que se desliza (celular y visor) */
.jxi-gallery--inline { display: none; }
.jxi-gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--photo-empty); }
.jxi-gallery-slide { margin: 0; position: absolute; inset: 0; }
.jxi-gallery-slide[hidden] { display: none; }
.jxi-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.jxi-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(245, 242, 235, .92); color: var(--navy); font-size: 30px; line-height: 1; cursor: pointer; }
.jxi-gallery-nav:hover { background: var(--white); }
.jxi-gallery-prev { left: 12px; }
.jxi-gallery-next { right: 12px; }
.jxi-gallery-count { position: absolute; bottom: 12px; right: 12px; background: var(--cream); color: var(--navy); padding: 6px 12px; border-radius: var(--radius-pill); font: 500 13px/1.4 var(--font-sans); }

/* Visor */
.jxi-lightbox { width: min(1200px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.jxi-lightbox::backdrop { background: rgba(13, 34, 54, .92); }
.jxi-lightbox .jxi-gallery-main { aspect-ratio: 3 / 2; max-height: 86vh; background: var(--navy-deep); }
.jxi-lightbox .jxi-gallery-slide img { object-fit: contain; }
.jxi-lightbox-close { position: absolute; top: -56px; right: 0; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--cream); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

.jxi-single-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--gap-l) 64px; padding-top: var(--gap-l); padding-bottom: var(--section); }
.jxi-single-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--gap-l); }
.jxi-specs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; padding-block: 28px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.jxi-spec { display: flex; flex-direction: column; gap: 6px; }
.jxi-spec .jxi-icon { color: var(--gold-ink); }
.jxi-spec-value { font: 500 22px/1.2 var(--font-display); color: var(--navy); }
.jxi-spec-label { font: 500 13px/1.4 var(--font-sans); color: var(--ink-muted); }
.jxi-block { display: flex; flex-direction: column; gap: 20px; }
.jxi-content { color: var(--ink-soft); max-width: 36em; }
.jxi-content p { margin: 0 0 1em; }
.jxi-content > *:last-child { margin-bottom: 0; }
.jxi-collapsible { max-height: 11.5em; overflow: hidden; position: relative; }
.jxi-collapsible::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgba(245, 242, 235, 0), var(--cream)); }
.jxi-collapsible.is-open { max-height: none; }
.jxi-collapsible.is-open::after { display: none; }
.jxi-comodidades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.jxi-comodidades li { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.4; }
.jxi-comodidades .jxi-icon { color: var(--gold-ink); }
.jxi-map { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--photo-empty); }
.jxi-map iframe, .jxi-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.jxi-video { aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; }
.jxi-ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.jxi-ficha div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line-soft); font-size: 16px; line-height: 1.4; }
.jxi-ficha dt { color: var(--ink-muted); }
.jxi-ficha dd { margin: 0; font-weight: 500; color: var(--ink); text-align: right; }

.jxi-consulta { flex: 1 1 340px; min-width: 0; position: sticky; top: 24px; background: var(--white); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.jxi-divider { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-muted); }
.jxi-divider::before, .jxi-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

.jxi-bottombar { display: none; }

/* ==================================================================
   FORMULARIO Y CONTACTO
   ================================================================== */
.jxi-form { display: flex; flex-direction: column; gap: 16px; }
.jxi-field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.jxi-field-row .jxi-field { flex: 1 1 220px; min-width: 0; }
.jxi-field-stack { display: flex; flex-direction: column; gap: 16px; }
.jxi-optional { font-weight: 400; }
.jxi-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.jxi-form-foot .jxi-muted { flex: 1 1 220px; }
.jxi-motivos { margin: 0; padding: 0; border: 0; }
.jxi-motivos legend { padding: 0; margin-bottom: 10px; }
.jxi-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.jxi-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.2; color: var(--navy); cursor: pointer; }
.jxi-pill input { margin: 0; width: 18px; height: 18px; accent-color: var(--navy); }
.jxi-pill:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--navy); background: var(--cream); }
.jxi-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jxi-alert { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 500; }
.jxi-alert-ok { background: var(--state-ok-bg); color: var(--state-ok); }
.jxi-alert-error { background: #fbe9e7; color: #a12c1c; }

.jxi-contact-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.jxi-contact-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.jxi-contact-side .jxi-panel { flex: none; padding: 40px; }
.jxi-contact-form { flex: 1.4 1 420px; padding: 40px; gap: 20px; align-items: stretch; }
.jxi-contact-form .jxi-form { width: 100%; }
.jxi-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jxi-info-list li { display: flex; align-items: flex-start; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line-soft); }
.jxi-info-list .jxi-icon { color: var(--gold-ink); margin-top: 2px; }
.jxi-info-list li > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jxi-info-k { font: 500 13px/1.4 var(--font-sans); color: var(--ink-muted); }
.jxi-info-v { font-size: 16px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.jxi-recruit-band { padding-block: 72px; }
.jxi-recruit-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.jxi-recruit-title { flex: 1 1 320px; max-width: 18em; font: 400 30px/1.3 var(--font-display); }

/* ==================================================================
   PIE
   ================================================================== */
.jxi-footer { background: var(--navy); color: var(--cream); font-size: 16px; line-height: 1.6; padding-top: 72px; }
.jxi-footer a { color: var(--cream); text-decoration: none; }
.jxi-footer a:hover { color: var(--gold); }
.jxi-footer a.jxi-btn-gold { color: var(--navy); }
.jxi-footer-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.jxi-footer-main { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.jxi-mark--footer { --fg: var(--cream); --sub: var(--gold); min-height: 0; color: var(--cream); }
.jxi-mark--footer .jxi-mark-name { font-size: 24px; }
.jxi-footer-title { max-width: 20em; font: 400 22px/1.3 var(--font-display); }
.jxi-footer-col { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jxi-footer-col > a, .jxi-footer-col > span { display: inline-flex; align-items: center; min-height: 36px; }
.jxi-footer-h { margin: 0 0 8px; font: 500 13px/1.4 var(--font-sans); color: var(--gold); }
.jxi-footer-bottom { margin-top: 72px; padding: 24px 0 28px; border-top: 1px solid rgba(245, 242, 235, .22); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 1100px) {
	.jxi-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jxi-search-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jxi-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.jxi-header-actions { gap: 24px; }
	.jxi-menu { gap: 22px; }
}

@media (max-width: 900px) {
	:root { --pad-x: 20px; --section: 48px; --band: 72px; --gap-l: 40px; --header-h: 64px; }

	.jxi-logo-img { height: 42px; }
	.jxi-cta { padding: 32px 24px; }
	.jxi-cta-title { font-size: 28px; }
	.jxi-header-actions { gap: 4px; }
	.jxi-menu-toggle { display: inline-flex; }
	.jxi-mark-ring { width: 40px; height: 40px; font-size: 15px; }
	.jxi-mark-name { font-size: 18px; }
	.jxi-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); padding: 8px var(--pad-x) 20px; border-bottom: 1px solid var(--line-soft); box-shadow: var(--shadow-float); }
	.jxi-nav.is-open { display: block; }
	.jxi-menu { flex-direction: column; gap: 0; }
	.jxi-menu a { color: var(--navy); width: 100%; font-size: 17px; }

	.jxi-display, .jxi-display--page { font-size: 40px; }
	.jxi-h1 { font-size: 32px; }
	.jxi-h2 { font-size: 32px; }
	.jxi-price-big { font-size: 32px; }
	.jxi-hero-inner { padding-top: calc(var(--header-h) + 48px); padding-bottom: 96px; }
	.jxi-hero-bg::after { background: rgba(13, 34, 54, .78); }
	.jxi-hero-search { margin-top: -40px; }
	.jxi-search, .jxi-search-full { grid-template-columns: minmax(0, 1fr); padding: 22px; }
	.jxi-cards, .jxi-comodidades, .jxi-ficha { grid-template-columns: minmax(0, 1fr); }
	.jxi-panel { padding: 28px; }
	.jxi-contact-side .jxi-panel, .jxi-contact-form { padding: 24px; }
	.jxi-team-text .jxi-team-lead { font-size: 20px; }
	.jxi-page-head { padding-top: 40px; }
	.jxi-empty { padding: 32px; }

	.jxi-single-top { padding-top: 20px; gap: 20px; }
	.jxi-title-row { align-items: flex-start; }
	.jxi-btn-share { width: 36px; min-height: 36px; padding: 0; margin-top: 2px; }
	.jxi-btn-share-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
	.jxi-mosaic { display: none; }
	.jxi-gallery--inline { display: block; }
	.jxi-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jxi-consulta { position: static; padding: 24px; }
	.jxi-bottombar { display: flex; position: sticky; bottom: 0; z-index: 15; background: var(--white); border-top: 1px solid var(--line-soft); padding: 12px 20px; align-items: center; justify-content: space-between; gap: 16px; }
	.jxi-bottombar-price { font: 700 19px/1.2 var(--font-sans); color: var(--navy); }
	.jxi-recruit-title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.jxi-btn { transition: none; }
}
.jxi-page-head .jxi-narrow { display: flex; flex-direction: column; gap: 20px; }
