/* ===================================================================
   Los tres estilos de la web de cada agencia.

   La agencia elige uno en el CRM (Sitio Web → Tu marca) y portal.js pone
   en <body> la clase theme-luxury, theme-modern o theme-boutique (el
   servidor ya la pone al entregar la página, para que no haya parpadeo).
   Los textos, fotos y pisos son los mismos: cambia la composición.

   - Luxury:   editorial. Foto a pantalla completa, letra clásica, pocos
               pisos con fotos grandes, pie oscuro.
   - Modern:   buscador. Portada partida con buscador grande, cuadrícula
               de tarjetas redondeadas, el color de marca manda.
   - Boutique: cercana. Fondo cálido, foto del equipo en arco, "Quiénes
               somos" con dirección y horario, pisos en lista.

   El color principal (--sage / --on-primary / --primary-text) y el
   secundario (--brand-secondary / --secondary-text) los pone portal.js con
   los colores de la agencia; aquí solo se usan.

   Las fuentes de cada estilo las carga el servidor (sendPortalHtml) o
   portal.js (ensureThemeFonts).

   Nota sobre las fuentes: portal.css pone Inter en `*`. Se cambia con
   :where(), sin especificidad, para no pisar la fuente de los iconos (.ti).
   =================================================================== */

/* ---------- Variables de cada estilo ---------- */

body.theme-luxury {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --page-bg: #FFFFFF;
  --ink: #111111;
  --ink-soft: #4B4B4B;
  --line: #E5E5E5;
  --footer-bg: var(--brand-secondary, #111111);
}

body.theme-modern {
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --page-bg: #FFFFFF;
  --ink: #0F172A;
  --ink-soft: #475569;
  --line: #E2E8F0;
  --soft-bg: #F1F5F9;
  --footer-bg: var(--brand-secondary, #0F172A);
}

body.theme-boutique {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --page-bg: #F6F1EA;
  --ink: #2B2420;
  --ink-soft: #5E5249;
  --line: #E4D9CC;
  --footer-bg: var(--brand-secondary, #2B2420);
}

body.theme-luxury,
body.theme-modern,
body.theme-boutique {
  background-color: var(--page-bg);
  color: var(--ink);
}

:where(body.theme-luxury, body.theme-modern, body.theme-boutique) *:where(:not(.ti)) {
  font-family: var(--font-body);
}

body.theme-luxury :is(h1, h2, h3, h4, .section-title, .property-title, .property-price, .drawer-prop-title, .drawer-prop-price, .owner-band-title, .logo, .footer-logo, .process-step-num, .process-card h3),
body.theme-modern :is(h1, h2, h3, h4, .section-title, .property-title, .property-price, .drawer-prop-title, .drawer-prop-price, .owner-band-title, .logo, .footer-logo, .process-step-num, .process-card h3),
body.theme-boutique :is(h1, h2, h3, h4, .section-title, .property-title, .property-price, .drawer-prop-title, .drawer-prop-price, .owner-band-title, .logo, .footer-logo, .process-step-num, .process-card h3) {
  font-family: var(--font-display);
}

/* El titular de portada lleva su propia fuente; el color, cada estilo */
body.theme-luxury .hero-headline,
body.theme-modern .hero-headline,
body.theme-boutique .hero-headline {
  font-family: var(--font-display);
}

/* Aviso de la calculadora de hipoteca */
.mortgage-disclaimer { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #64748B; }

/* Piezas que solo usa Modern (precio sobre la foto, "Más filtros" y las
   cifras extra de la portada) */
.property-img-price,
.property-index,
.buscador-more,
.hero-stat-extra { display: none; }

/* Lo que ningún estilo usa ya */
body.theme-luxury .scroll-indicator,
body.theme-modern .scroll-indicator,
body.theme-boutique .scroll-indicator {
  display: none;
}

/* Etiqueta "Zona · Operación" encima del título (la añade portal.js) */
.property-eyebrow {
  display: none;
}

/* ===================================================================
   1. LUXURY · editorial
   =================================================================== */

/* Menú: enlaces a la izquierda, nombre en el centro, acciones a la derecha */
body.theme-luxury .navbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "links logo actions";
  height: 76px;
  padding: 0 56px;
}

body.theme-luxury .navbar .logo { grid-area: logo; justify-content: center; }
body.theme-luxury .nav-links { grid-area: links; gap: 24px; white-space: nowrap; }

/* En Luxury la captación va en su franja de abajo: el menú queda limpio */
body.theme-luxury .nav-links a.btn-nav-owner-cta { display: none; }
body.theme-luxury .nav-actions { grid-area: actions; justify-content: flex-end; }

body.theme-luxury #main-navbar .logo {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.theme-luxury #main-navbar:not(.scrolled) .logo { color: #FFFFFF; }

body.theme-luxury .nav-links a,
body.theme-luxury .nav-links a.btn-nav-owner-cta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

/* "¿Quieres alquilar o vender?" como un enlace más, subrayado */
body.theme-luxury .nav-links a.btn-nav-owner-cta,
body.theme-luxury .navbar.scrolled .nav-links a.btn-nav-owner-cta {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 0 2px;
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
}

body.theme-luxury .navbar:not(.scrolled) .nav-links a.btn-nav-owner-cta { color: #FFFFFF; }
body.theme-luxury .navbar.scrolled .nav-links a.btn-nav-owner-cta { color: var(--ink); }

body.theme-luxury .btn-nav-explore {
  border-radius: 0;
  font-size: 12px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.theme-luxury .navbar.scrolled .btn-nav-explore {
  color: var(--ink) !important;
  border-color: var(--ink);
}

/* Portada: foto a pantalla completa, texto abajo a la izquierda */
body.theme-luxury .hero {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 140px 64px 72px;
}

body.theme-luxury .hero-overlay { background: linear-gradient(to top, rgba(10, 10, 12, 0.72) 0%, rgba(10, 10, 12, 0.28) 55%, rgba(10, 10, 12, 0.18) 100%); }

/* Zoom muy lento de la foto de portada (efecto Ken Burns) */
/* Solo la escala: el transform ya centra la foto */
@keyframes pfKenBurns { from { scale: 1; } to { scale: 1.09; } }
body.theme-luxury .hero-cover-image,
body.theme-luxury .hero-video { animation: pfKenBurns 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@media (prefers-reduced-motion: reduce) {
  body.theme-luxury .hero-cover-image,
  body.theme-luxury .hero-video { animation: none; }
}

body.theme-luxury .hero-content {
  align-items: flex-start;
  max-width: 900px;
  gap: 22px;
  margin-bottom: 32px;
}

body.theme-luxury .hero-eyebrow {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  letter-spacing: 0.24em;
}

body.theme-luxury .hero-eyebrow::before { display: none; }

body.theme-luxury .hero-headline {
  color: #FFFFFF;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

body.theme-luxury .hero-headline em {
  font-style: italic;
  font-weight: 500;
  color: #FFFFFF;
}

body.theme-luxury .hero-subheadline {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
}

/* Buscador: una línea fina y semitransparente sobre la foto, sin caja
   blanca ni esquinas; sin "¿cuánto ganas?" */
body.theme-luxury .buscador-inline {
  max-width: 900px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 0;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  box-shadow: none;
}

body.theme-luxury .buscador-field { padding: 16px 22px; border-right: 1px solid rgba(255, 255, 255, 0.25) !important; }
body.theme-luxury .buscador-field:has(#search-income) { display: none; }
body.theme-luxury .buscador-field label { letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.7); }
body.theme-luxury .buscador-field select,
body.theme-luxury .buscador-field input { color: #FFFFFF; background: transparent; }
body.theme-luxury .buscador-field select option { color: #111111; }

body.theme-luxury .btn-search {
  border-radius: 0;
  height: 100%;
  min-height: 72px;
  width: 84px;
  background: #FFFFFF;
  color: #111111;
}

body.theme-luxury .hero-stats { display: none; }

/* Quiénes somos: foto y texto grande en letra clásica */
body.theme-luxury .about-section { padding: 120px 0; }
body.theme-luxury .about-container.has-image { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
body.theme-luxury .about-image { border-radius: 0; }
body.theme-luxury .about-image img { min-height: 520px; }

body.theme-luxury .about-text .section-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.24em;
}

body.theme-luxury .about-bio {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.3;
  color: var(--ink);
  max-width: none;
}

body.theme-luxury .about-gallery img { border-radius: 0; }

/* Catálogo: "Selección", pestañas como enlaces, dos columnas desplazadas */
body.theme-luxury .properties-section { background: var(--page-bg); padding: 120px 0 60px; }
body.theme-luxury .properties-section .container { max-width: 1180px; padding: 0 48px; }

body.theme-luxury .catalog-title {
  font-size: 3.4rem;
  font-weight: 500;
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

body.theme-luxury .category-tabs-container {
  justify-content: flex-start;
  border-bottom: none;
  gap: 28px;
  margin: 20px 0 56px;
}

body.theme-luxury .category-tab {
  flex-direction: row;
  padding: 4px 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.theme-luxury .category-tab i { display: none; }
body.theme-luxury .category-tab::after { left: 0; right: 0; height: 1px; }
body.theme-luxury .salary-slider-container { display: none !important; }

body.theme-luxury .properties-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 48px;
}

/* El primer piso, destacado a todo el ancho; el resto en dos columnas
   desplazadas (la de la derecha más abajo), como una revista */
body.theme-luxury .property-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 40px;
}

body.theme-luxury .property-card:first-child .property-img-wrapper { aspect-ratio: 16 / 11; }
body.theme-luxury .property-card:first-child .property-content { padding: 0; }
body.theme-luxury .property-card:first-child .property-title { font-size: 2.6rem; }
body.theme-luxury .property-card:nth-child(odd):not(:first-child) { margin-top: 96px; }

body.theme-luxury .property-card {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

body.theme-luxury .property-card:hover { transform: none; box-shadow: none; }
body.theme-luxury .property-card:hover .property-img { transform: scale(1.03); }
body.theme-luxury .property-img { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

body.theme-luxury .property-img-wrapper { height: auto; aspect-ratio: 1 / 1.08; }

/* Número del piso en grande, como en una revista de casas */
body.theme-luxury .property-index {
  display: block;
  order: -3;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 500;
  color: var(--primary-text, var(--ink));
}

body.theme-luxury .property-zone-badge,
body.theme-luxury .property-status-dot,
body.theme-luxury .property-location-row,
body.theme-luxury .property-description,
body.theme-luxury .property-slots-info,
body.theme-luxury .property-requirements,
body.theme-luxury .property-card .btn-wa-cta {
  display: none;
}

body.theme-luxury .property-content { padding: 22px 0 0; gap: 10px; }

body.theme-luxury .property-eyebrow {
  display: block;
  order: -2;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

body.theme-luxury .property-title { order: -1; font-size: 2rem; font-weight: 500; line-height: 1.15; }
body.theme-luxury .property-price { order: 1; font-size: 1.6rem; font-weight: 500; }
body.theme-luxury .price-period { font-family: var(--font-body); font-size: 0.9rem; }

body.theme-luxury .property-meta-tags { gap: 0; }

body.theme-luxury .property-meta-tag {
  background: none;
  padding: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

body.theme-luxury .property-meta-tag:not(:last-child)::after { content: "·"; margin: 0 8px; }

/* "Cómo funciona" no encaja en el tono editorial */
body.theme-luxury .process-section { display: none; }

/* Captación: una línea fina y un botón de borde */
body.theme-luxury .owner-band { margin: 40px 0 120px; padding: 0 48px; }

body.theme-luxury .owner-band-inner {
  max-width: 1084px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 40px 0;
}

body.theme-luxury .owner-band-title { font-size: 2.2rem; font-weight: 500; }
body.theme-luxury .owner-band-text { color: var(--ink-soft); margin-top: 6px; }

body.theme-luxury .owner-band-btn {
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 16px 30px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.theme-luxury .owner-band-btn:hover { background: var(--ink); color: #FFFFFF; }

body.theme-luxury .footer { margin-top: 0; }
body.theme-luxury .footer-logo { font-size: 1.8rem; font-weight: 500; }
body.theme-luxury .footer-links h4,
body.theme-luxury .footer-info h4 { letter-spacing: 0.2em; }

/* ===================================================================
   2. MODERN · buscador
   =================================================================== */

/* Menú siempre blanco y fijo, con el WhatsApp a la vista */
body.theme-modern .navbar,
body.theme-modern .navbar.scrolled {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  height: 68px;
  padding: 0 48px;
}

body.theme-modern #main-navbar .logo { color: var(--ink); font-weight: 800; font-size: 1.25rem; }

body.theme-modern .nav-links a,
body.theme-modern .navbar.scrolled .nav-links a {
  color: var(--ink);
  font-weight: 600;
}

body.theme-modern .nav-links a.btn-nav-owner-cta {
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: none;
  font-weight: 700;
}

body.theme-modern .btn-nav-explore {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
}

/* Portada: foto grande a todo el ancho con el texto encima, y el buscador
   como una barra que flota sobre el borde de abajo de la foto */
body.theme-modern .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0;
  text-align: left;
  min-height: 0;
  padding: 92px max(32px, calc((100vw - 1232px) / 2)) 24px;
  background: var(--page-bg);
}

body.theme-modern .hero-overlay { display: none; }

body.theme-modern .hero-video,
body.theme-modern .hero-cover-image {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: min(620px, 74vh);
  grid-area: 1 / 1;
  border-radius: 28px;
  object-fit: cover;
}

body.theme-modern .hero-content {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 1;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  max-width: none;
  padding: 140px 56px 112px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(to top, rgba(10, 14, 24, 0.72) 0%, rgba(10, 14, 24, 0.38) 55%, rgba(10, 14, 24, 0) 100%);
}

body.theme-modern .hero-eyebrow {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 700;
}

body.theme-modern .hero-eyebrow::before { background-color: #FFFFFF; }

body.theme-modern .hero-headline {
  color: #FFFFFF;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 820px;
}

body.theme-modern .hero-headline em { color: #FFFFFF; font-weight: 800; }
body.theme-modern .hero-subheadline { color: rgba(255, 255, 255, 0.9); font-size: 18px; max-width: 580px; }

body.theme-modern .buscador-inline {
  grid-row: 2;
  position: relative;
  z-index: 2;
  width: auto;
  max-width: none;
  margin: -60px 40px 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: center;
  background: #FFFFFF;
  border-radius: 20px;
  border: none;
  padding: 10px;
  gap: 0;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

body.theme-modern .buscador-field { padding: 8px 18px; border-right: 1px solid var(--line) !important; }
body.theme-modern .buscador-field:last-of-type { border-right: none !important; }

body.theme-modern .btn-search {
  grid-column: auto;
  width: 60px;
  height: 60px;
  border-radius: 14px;
}

/* Franja de datos reales bajo el buscador */
body.theme-modern .hero-stats {
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 28px 40px 0;
  padding: 0;
}

body.theme-modern .hero-stats[hidden] { display: none; }
body.theme-modern .hero-stat-item { flex-direction: row; align-items: center; gap: 10px; }
body.theme-modern .hero-stat-extra:not([hidden]) { display: flex; }
body.theme-modern .hero-stat-num { color: var(--ink); font-size: 1.5rem; font-weight: 800; }
body.theme-modern .hero-stat-num .ti { color: #25D366; font-size: 1.5rem; }
body.theme-modern .hero-stat-lbl { color: var(--ink-soft); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }

/* Quiénes somos, limpio */
body.theme-modern .about-image { border-radius: 24px; }
body.theme-modern .about-gallery img { border-radius: 16px; }

/* Catálogo: título y filtros en una fila, cuadrícula de 3 */
body.theme-modern .properties-section { background: var(--page-bg); padding: 64px 0 24px; }
body.theme-modern .properties-section .container { max-width: 1232px; padding: 0 48px; }

body.theme-modern .section-header-airbnb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

body.theme-modern .catalog-title { font-size: 2rem; font-weight: 800; margin: 0; }

body.theme-modern .category-tabs-container {
  width: auto;
  border-bottom: none;
  margin: 0;
  gap: 8px;
  padding: 0;
}

body.theme-modern .category-tab {
  flex-direction: row;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

body.theme-modern .category-tab i { font-size: 16px; }
body.theme-modern .category-tab::after { display: none; }

body.theme-modern .category-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

body.theme-modern .properties-grid { gap: 24px; }

body.theme-modern .property-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: none;
}

body.theme-modern .property-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08); }
body.theme-modern .property-img-wrapper { height: 240px; }

/* Operación como píldora blanca arriba; la zona va en la dirección */
body.theme-modern .property-zone-badge:not(.property-op-badge) { display: none; }

body.theme-modern .property-op-badge {
  top: 14px;
  bottom: auto;
  left: 14px;
  right: auto;
  background: #FFFFFF;
  color: var(--ink);
  border: none;
  border-radius: 999px;
  backdrop-filter: none;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
}

body.theme-modern .property-content { padding: 18px 20px 22px; gap: 10px; }
body.theme-modern .property-price { order: -2; font-size: 1.5rem; font-weight: 800; }
body.theme-modern .property-title { font-size: 1.05rem; font-weight: 700; }
body.theme-modern .property-location-row { order: 1; font-size: 14px; color: #64748B; }

body.theme-modern .property-meta-tag {
  background: var(--soft-bg);
  color: var(--ink);
  border-radius: 8px;
  padding: 5px 10px;
  font-weight: 600;
}

body.theme-modern .property-card .btn-wa-cta { display: none; }

/* Tarjeta limpia: foto grande con el precio encima, solo habitaciones,
   baños y m², y toda la tarjeta se pulsa. El horario de visitas y los
   ingresos mínimos se quedan en la ficha. */
body.theme-modern .property-card { cursor: pointer; }
body.theme-modern .property-img-wrapper { height: 260px; overflow: hidden; }
body.theme-modern .property-img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
body.theme-modern .property-card:hover .property-img { transform: scale(1.05); }

body.theme-modern .property-img-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

body.theme-modern .property-img-price small { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
body.theme-modern .property-content .property-price,
body.theme-modern .property-description,
body.theme-modern .property-slots-info,
body.theme-modern .property-requirements,
body.theme-modern .property-meta-tag:nth-child(n+4) { display: none; }

/* Cómo funciona: tarjetas claras con el número en el color de marca */
body.theme-modern .process-section {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin: 40px auto;
  padding: 24px 48px;
  max-width: 1232px;
}

body.theme-modern .process-section .section-header { text-align: left; margin-bottom: 0; }
body.theme-modern .process-section .section-title { color: var(--ink) !important; font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
body.theme-modern .process-section .section-subtitle { color: var(--ink-soft) !important; margin: 0; }
body.theme-modern .process-grid { gap: 24px; margin-top: 28px; }

body.theme-modern .process-card {
  background: #F8FAFC;
  border: none;
  border-radius: 20px;
  padding: 28px;
  gap: 10px;
}

body.theme-modern .process-card:hover { background: #F1F5F9; }
body.theme-modern .process-step-num { font-size: 1rem; font-weight: 800; color: var(--primary-text, var(--sage)); }
body.theme-modern .process-card h3 { color: var(--ink); font-weight: 800; }
body.theme-modern .process-card p { color: var(--ink-soft); font-size: 15px; }

/* Captación: bloque del color de marca */
body.theme-modern .owner-band { padding: 0 48px; margin: 48px 0 0; }

body.theme-modern .owner-band-inner {
  background: var(--sage);
  color: var(--on-primary, #FFFFFF);
  border-radius: 28px;
  padding: 44px 48px;
}

body.theme-modern .owner-band-title { font-size: 1.9rem; font-weight: 800; }
body.theme-modern .owner-band-text { margin-top: 6px; opacity: 0.9; }

body.theme-modern .owner-band-btn {
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 800;
  padding: 16px 24px;
  border-radius: 14px;
}

body.theme-modern .footer { margin-top: 64px; }

/* ===================================================================
   3. BOUTIQUE · cercana
   =================================================================== */

/* Menú del color del fondo, con el nombre a la izquierda */
body.theme-boutique .navbar,
body.theme-boutique .navbar.scrolled {
  background: var(--page-bg);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  height: 80px;
  padding: 0 56px;
}

body.theme-boutique .navbar.scrolled { border-bottom-color: var(--line); }

body.theme-boutique #main-navbar .logo { color: var(--ink); font-weight: 600; font-size: 1.5rem; }

body.theme-boutique .nav-links a,
body.theme-boutique .navbar.scrolled .nav-links a {
  color: var(--ink);
  font-weight: 700;
}

body.theme-boutique .nav-links a.btn-nav-owner-cta,
body.theme-boutique .navbar.scrolled .nav-links a.btn-nav-owner-cta {
  background: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: none;
}

body.theme-boutique .btn-nav-explore { display: none; }

/* Portada: texto y botones a la izquierda, foto en arco a la derecha */
body.theme-boutique .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 64px;
  text-align: left;
  min-height: 0;
  padding: 120px max(56px, calc((100vw - 1168px) / 2)) 72px;
  background: var(--page-bg);
}

body.theme-boutique .hero-overlay,
body.theme-boutique .buscador-inline,
body.theme-boutique .hero-stats,
body.theme-boutique .hero-eyebrow {
  display: none;
}

body.theme-boutique .hero-video,
body.theme-boutique .hero-cover-image {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 560px;
  grid-column: 2;
  grid-row: 1;
  border-radius: 280px 280px 28px 28px;
}

body.theme-boutique .hero-content {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-start;
  margin: 0;
  gap: 24px;
}

body.theme-boutique .hero-headline {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
}

body.theme-boutique .hero-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--primary-text, var(--sage));
}

body.theme-boutique .hero-subheadline { color: var(--ink-soft); font-size: 19px; line-height: 1.6; }

body.theme-boutique .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

body.theme-boutique .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  padding: 16px 26px;
  border-radius: 999px;
}

body.theme-boutique .hero-cta-primary { background: var(--sage); color: var(--on-primary, #FFFFFF); }
body.theme-boutique .hero-cta-secondary { background: #FFFFFF; color: var(--ink); }

/* Quiénes somos con la tarjeta "Ven a vernos" (dirección, horario, teléfono) */
body.theme-boutique .about-section { background: #FFFFFF; padding: 72px 0; }

body.theme-boutique .about-container,
body.theme-boutique .about-container.has-image {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  max-width: 1056px;
  margin: 0 auto;
}

/* Sin galería no hay foto (la de portada ya está arriba). Con foto del
   equipo u oficina, va a la izquierda en un marco de arco. */
body.theme-boutique .about-image { display: none; }

body.theme-boutique .about-container.has-image {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr) minmax(0, 1fr);
  max-width: 1104px;
  align-items: center;
}

body.theme-boutique .about-container.has-image .about-image {
  display: block;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
}

body.theme-boutique .about-container.has-image .about-image img { min-height: 340px; max-height: 420px; width: 100%; object-fit: cover; }

/* Nuestros barrios: tarjetas con la foto de un piso de cada zona */
.zones-section { display: none; }
body.theme-boutique .zones-section:not([hidden]) { display: block; background: #FFFFFF; padding: 8px 0 72px; }
body.theme-boutique .zones-section .container { max-width: 1104px; padding: 0 24px; margin: 0 auto; }
body.theme-boutique .zones-section .section-title { font-size: 2.2rem; font-weight: 600; margin: 0 0 6px; text-align: left; }
body.theme-boutique .zones-section .section-subtitle { color: var(--ink-soft); margin: 0 0 28px; text-align: left; }

body.theme-boutique .zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

body.theme-boutique .zone-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 16px;
  border: none;
  border-radius: 24px;
  background: var(--page-bg);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font: inherit;
  color: var(--ink);
}

body.theme-boutique .zone-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(43, 36, 32, 0.1); }
body.theme-boutique .zone-img { display: block; height: 130px; background: center / cover no-repeat; margin-bottom: 10px; }
body.theme-boutique .zone-name { padding: 0 18px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
body.theme-boutique .zone-count { padding: 0 18px; font-size: 14px; color: var(--primary-text, var(--sage)); font-weight: 700; }

body.theme-boutique .about-text .section-eyebrow { display: none; }
body.theme-boutique .about-bio { font-size: 19px; line-height: 1.7; color: var(--ink-soft); }
body.theme-boutique .about-extra-info { display: none !important; }

body.theme-boutique .about-contact-card:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--page-bg);
  border-radius: 24px;
  padding: 26px;
  font-size: 15px;
  line-height: 1.6;
}

body.theme-boutique .about-contact-card strong { font-family: var(--font-display); font-size: 1.25rem; }
body.theme-boutique .about-contact-card a { color: var(--ink); font-weight: 800; text-decoration: none; }
body.theme-boutique .about-gallery { max-width: 1056px; margin: 40px auto 0; }
body.theme-boutique .about-gallery img { border-radius: 20px; }

/* Catálogo: pisos en lista, tarjetas horizontales */
body.theme-boutique .properties-section { background: var(--page-bg); padding: 80px 0 24px; }
body.theme-boutique .properties-section .container { max-width: 1104px; padding: 0 24px; }
body.theme-boutique .catalog-title { font-size: 2.4rem; font-weight: 600; margin: 0 0 12px; }

body.theme-boutique .category-tabs-container {
  justify-content: flex-start;
  border-bottom: none;
  gap: 8px;
  margin-bottom: 32px;
}

body.theme-boutique .category-tab {
  flex-direction: row;
  padding: 8px 16px;
  background: #FFFFFF;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

body.theme-boutique .category-tab i { font-size: 16px; }
body.theme-boutique .category-tab::after { display: none; }
body.theme-boutique .category-tab.active { background: var(--ink); color: #FFFFFF; }

body.theme-boutique .properties-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }

body.theme-boutique .property-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  border: none;
  border-radius: 28px;
  box-shadow: none;
}

body.theme-boutique .property-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(43, 36, 32, 0.08); }
body.theme-boutique .property-img-wrapper { height: 100%; min-height: 280px; }

body.theme-boutique .property-zone-badge,
body.theme-boutique .property-status-dot {
  display: none;
}

body.theme-boutique .property-content { padding: 30px 34px; gap: 12px; }

body.theme-boutique .property-eyebrow {
  display: block;
  order: -3;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-text, var(--sage));
}

body.theme-boutique .property-title { order: -2; font-size: 1.75rem; font-weight: 600; line-height: 1.2; }
body.theme-boutique .property-location-row { order: -1; color: var(--ink-soft); }
body.theme-boutique .property-price { order: 5; font-size: 1.5rem; font-weight: 600; }
body.theme-boutique .property-description { font-size: 16px; line-height: 1.6; color: var(--ink-soft); -webkit-line-clamp: 2; }

/* Tarjeta más ligera: el horario y los ingresos mínimos van en la ficha */
body.theme-boutique .property-card { cursor: pointer; }

/* Todas las tarjetas del mismo alto, así la foto (recortada al centro, sea
   vertical u horizontal) mide siempre igual, como en los portales. El texto
   se ajusta: título en 2 líneas, datos en una fila, descripción en 2. */
@media (min-width: 861px) {
  body.theme-boutique .property-card { height: 360px; }
  body.theme-boutique .property-img-wrapper { height: 360px; min-height: 0; }
  body.theme-boutique .property-content { overflow: hidden; }
  body.theme-boutique .property-location-row { display: none; }
  body.theme-boutique .property-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body.theme-boutique .property-meta-tags { flex-wrap: nowrap; overflow: hidden; }
  body.theme-boutique .property-meta-tag { flex-shrink: 0; }
}
body.theme-boutique .property-slots-info,
body.theme-boutique .property-requirements { display: none; }

/* La barra del sueldo, como pastilla redondeada a juego */
body.theme-boutique .salary-slider-container {
  border: none;
  border-radius: 999px;
  background: #FFFFFF;
  padding: 10px 24px;
  margin-bottom: 24px;
  box-shadow: none;
}
body.theme-boutique .property-meta-tag { background: var(--page-bg); color: var(--ink); border-radius: 999px; padding: 5px 12px; }
body.theme-boutique .property-slots-info { background: none; padding: 0; color: var(--ink-soft); }

/* "Ver detalles" como un enlace subrayado, no un botón verde */
body.theme-boutique .property-card .btn-wa-cta {
  order: 6;
  align-self: flex-start;
  width: auto;
  background: none;
  color: var(--ink);
  padding: 6px 0;
  border-radius: 0;
  border-bottom: 2px solid var(--sage);
  font-weight: 800;
}

body.theme-boutique .property-card .btn-wa-cta i { display: none; }

/* "Cómo funciona" sobra: la cercanía ya la cuentan Quiénes somos y la lista */
body.theme-boutique .process-section { display: none; }

/* Captación: tarjeta blanca "¿Tienes un piso?" */
body.theme-boutique .owner-band { padding: 0 24px; margin: 56px 0 0; }

body.theme-boutique .owner-band-inner {
  max-width: 1056px;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 44px;
}

body.theme-boutique .owner-band-title { font-size: 2rem; font-weight: 600; }
body.theme-boutique .owner-band-text { color: var(--ink-soft); margin-top: 6px; font-size: 17px; }

body.theme-boutique .owner-band-btn {
  background: var(--sage);
  color: var(--on-primary, #FFFFFF);
  font-weight: 800;
  padding: 16px 26px;
  border-radius: 999px;
}

body.theme-boutique .footer { margin-top: 80px; }

/* ===================================================================
   Móvil (los tres estilos)
   =================================================================== */

@media (max-width: 900px) {
  body.theme-luxury .navbar {
    display: flex;
    padding: 0 16px;
    height: 60px;
  }

  body.theme-luxury .hero { padding: 120px 20px 48px; min-height: 80vh; }
  body.theme-luxury .buscador-inline { grid-template-columns: minmax(0, 1fr); }
  body.theme-luxury .btn-search { width: 100%; min-height: 52px; }
  body.theme-luxury .properties-section .container { padding: 0 20px; }
  body.theme-luxury .properties-grid { grid-template-columns: minmax(0, 1fr); }
  body.theme-luxury .property-card:nth-child(even) { margin-top: 0; }
  body.theme-luxury .about-container.has-image { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  body.theme-luxury .about-image img { min-height: 300px; }
  body.theme-luxury .about-bio { font-size: 1.5rem; }
  body.theme-luxury .catalog-title { font-size: 2.4rem; }
  body.theme-luxury .owner-band { padding: 0 20px; }

  body.theme-modern .navbar,
  body.theme-boutique .navbar,
  body.theme-boutique .navbar.scrolled {
    padding: 0 16px;
    height: 60px;
  }

  body.theme-modern .hero,
  body.theme-boutique .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 88px 16px 40px;
    row-gap: 20px;
  }

  body.theme-modern .hero-video,
  body.theme-modern .hero-cover-image {
    grid-column: 1;
    grid-row: auto;
    height: 240px;
    border-radius: 20px;
  }

  body.theme-modern .buscador-inline { grid-template-columns: minmax(0, 1fr); }
  body.theme-modern .properties-section .container,
  body.theme-modern .process-section { padding: 0 16px; }
  body.theme-modern .category-tabs-container { width: 100%; }
  body.theme-modern .owner-band { padding: 0 16px; }
  body.theme-modern .owner-band-inner { padding: 28px 24px; }

  body.theme-boutique .hero-video,
  body.theme-boutique .hero-cover-image {
    grid-column: 1;
    grid-row: 2;
    height: 360px;
    border-radius: 180px 180px 24px 24px;
  }

  body.theme-boutique .about-container,
  body.theme-boutique .about-container.has-image { grid-template-columns: minmax(0, 1fr); padding: 0 8px; }
  body.theme-boutique .property-card { grid-template-columns: minmax(0, 1fr); }
  body.theme-boutique .property-img-wrapper { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  body.theme-boutique .property-content { padding: 22px; }
  body.theme-boutique .owner-band-inner { padding: 28px 24px; }
}

/* ---------- Ajustes comunes ---------- */

/* Lo que va dentro de un título (la cursiva del titular, el nombre dentro
   del logo) hereda la fuente del título, no la del texto. */
:is(body.theme-luxury, body.theme-modern, body.theme-boutique) :is(h1, h2, h3, h4, .hero-headline, .logo, .footer-logo, .owner-band-title) *:not(.ti) {
  font-family: inherit;
}

/* Texto sobre el color de marca: el que mejor se lee (blanco u oscuro) */
body.theme-modern .nav-links a.btn-nav-owner-cta,
body.theme-modern .navbar.scrolled .nav-links a.btn-nav-owner-cta,
body.theme-modern .owner-band-inner .owner-band-title,
body.theme-modern .owner-band-inner .owner-band-text {
  color: var(--on-primary, #FFFFFF);
}

@media (max-width: 860px) {
  /* "Quiénes somos" en una columna (portal.css lo hacía, pero .has-image le ganaba) */
  :is(body.theme-luxury, body.theme-modern, body.theme-boutique) .about-container.has-image {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Modern en el móvil ---------- */
@media (max-width: 900px) {
  body.theme-modern .hero { grid-template-columns: minmax(0, 1fr); padding: 72px 12px 16px; row-gap: 0; }

  body.theme-modern .hero-video,
  body.theme-modern .hero-cover-image {
    grid-area: 1 / 1;
    height: 520px;
    border-radius: 22px;
  }

  body.theme-modern .hero-content { padding: 96px 22px 84px; border-radius: 0 0 22px 22px; gap: 12px; }
  body.theme-modern .hero-headline { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  body.theme-modern .hero-subheadline { font-size: 16px; }

  body.theme-modern .buscador-inline {
    margin: -52px 10px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
    border-radius: 18px;
  }

  body.theme-modern .buscador-field { padding: 8px 12px; border-right: none !important; }
  body.theme-modern .buscador-field:nth-of-type(1) { border-right: 1px solid var(--line) !important; }
  body.theme-modern .buscador-field-extra { display: none; grid-column: 1 / -1; border-top: 1px solid var(--line); }
  body.theme-modern .buscador-inline.show-extra .buscador-field-extra { display: block; }

  body.theme-modern .buscador-more {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
  }

  body.theme-modern .btn-search { grid-column: 1 / -1; width: 100%; height: 50px; }
  body.theme-modern .hero-stats { margin: 22px 12px 0; gap: 12px 24px; }
  body.theme-modern .hero-stat-num { font-size: 1.25rem; }
  body.theme-modern .hero-stat-lbl { font-size: 13px; }
  body.theme-modern .property-img-wrapper { height: 240px; }
}

/* ---------- Luxury en el móvil ---------- */
@media (max-width: 900px) {
  body.theme-luxury .hero { padding: 110px 18px 36px; min-height: 100vh; min-height: 100svh; }
  body.theme-luxury .hero-headline { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  body.theme-luxury .buscador-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-luxury .buscador-field { padding: 12px 14px; border-right: none !important; }
  body.theme-luxury .buscador-field:nth-of-type(1) { border-right: 1px solid rgba(255, 255, 255, 0.25) !important; }
  body.theme-luxury .buscador-field-extra { display: none; grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.25); }
  body.theme-luxury .buscador-inline.show-extra .buscador-field-extra:not(:has(#search-income)) { display: block; }
  body.theme-luxury .buscador-more {
    display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 6px;
    background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); padding: 12px;
    color: #FFFFFF; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  }
  body.theme-luxury .btn-search { grid-column: 1 / -1; width: 100%; min-height: 52px; }
  body.theme-luxury .property-card:first-child { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 0; }
  body.theme-luxury .property-card:first-child .property-title { font-size: 2rem; }
  body.theme-luxury .property-card:nth-child(odd):not(:first-child) { margin-top: 0; }
  body.theme-luxury .property-index { font-size: 2rem; }
}

/* ---------- Boutique en el móvil ---------- */
@media (max-width: 860px) {
  body.theme-boutique .about-container.has-image { grid-template-columns: minmax(0, 1fr); }
  body.theme-boutique .about-container.has-image .about-image { max-width: 320px; }
  body.theme-boutique .zones-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.theme-boutique .zone-img { height: 100px; }
  body.theme-boutique .zone-name { font-size: 1.1rem; padding: 0 14px; }
  body.theme-boutique .zone-count { padding: 0 14px; font-size: 13px; }
  body.theme-boutique .salary-slider-container { border-radius: 24px; }
}
