/* ==========================================================================
   ALTOS DE LA SIERRA - ARCHITECTURAL LUXURY DESIGN SYSTEM
   Palette: Gallery Pure White, Jet Black, Royal British/Emerald Green
   ========================================================================== */

:root {
  /* Crisp White Gallery Palette */
  --lux-bg-root: #ffffff;
  --lux-bg-elevated: #ffffff;
  --lux-bg-card: #f8fafc;
  --lux-bg-card-hover: #f1f5f9;
  --lux-bg-row-alt: #f8fafc;

  /* Royal & British Emerald Green Accents */
  --lux-emerald: #047857;
  --lux-emerald-bright: #059669;
  --lux-emerald-deep: #064e3b;
  --lux-emerald-subtle: #ecfdf5;
  --lux-emerald-border: #a7f3d0;
  --lux-emerald-glow: 0 4px 15px rgba(5, 150, 105, 0.2);

  /* Deep Black & Slate Typography */
  --lux-black: #090d0b;
  --lux-charcoal: #1e293b;
  --lux-text-primary: #0f172a;
  --lux-text-secondary: #475569;
  --lux-text-muted: #94a3b8;
  --lux-border: #e2e8f0;
  --lux-border-subtle: #edf2f7;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', serif;

  /* Shadows & Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-lux: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-modal: 0 25px 60px rgba(0, 0, 0, 0.25);

  --header-height: 70px;
}

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

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: clip;
  background-color: #f8fafc;
  font-family: var(--font-sans);
  color: var(--lux-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.font-tabular {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

.text-emerald {
  color: var(--lux-emerald-bright);
}

.text-center { text-align: center; }
.text-right { text-align: right; }

/* LUXURY APP CONTAINER */
.luxury-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background-color: #f8fafc;
  overflow: visible;
}

/* ==========================================================================
   TOP LUXURY HEADER
   ========================================================================== */
.luxury-header {
  position: relative;
  height: 70px;
  min-height: 70px;
  background: #ffffff;
  border-bottom: 1px solid var(--lux-border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.header-inner {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* BRAND ZONE */
.brand-zone {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-monogram {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-sm);
  background: #090d0b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
  border: 1px solid #1e293b;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.brand-main {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--lux-black);
  line-height: 1;
}

.brand-tagline {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--lux-emerald);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

/* CUSTOM SLIM LUXURY SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* LUXURY TABS (4 TABS CABAL / 100% WIDTH) */
.luxury-nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0.25rem;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--lux-border);
  width: 100%;
  max-width: 660px;
  box-sizing: border-box;
}

.lux-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.45rem;
  background: transparent;
  border: none;
  color: var(--lux-text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.tab-mobile-text {
  display: none;
}

.tab-desktop-text {
  display: inline;
}

.lux-tab-num {
  font-size: 0.68rem;
  color: var(--lux-text-muted);
  font-weight: 800;
}

.lux-tab:hover {
  color: var(--lux-black);
  background: rgba(255, 255, 255, 0.6);
}

.lux-tab.active {
  background: #ffffff;
  color: var(--lux-black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lux-tab.active .lux-tab-num {
  color: var(--lux-emerald);
}

/* HEADER ACTIONS */
.header-vip-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lux-btn-drive {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--lux-border);
  color: var(--lux-text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lux-btn-drive:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.lux-btn-concierge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #047857;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--lux-emerald-glow);
}

.lux-btn-concierge:hover {
  background: #065f46;
  transform: translateY(-1px);
}

/* ==========================================================================
   MAIN APP VIEWPORT (CENTERED WITH ELEGANT SIDE MARGINS & FULL VERTICAL SCROLL)
   ========================================================================== */
.luxury-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  padding: 1.25rem 2rem 3rem;
  max-width: 1420px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.lux-pane {
  display: none;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--lux-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.lux-pane.active {
  display: flex;
}

/* TABLE CONTROL HEADER */
.table-control-header {
  padding: 1.1rem 1.75rem;
  background: #ffffff;
  border-bottom: 1px solid var(--lux-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.control-title-group {
  display: flex;
  flex-direction: column;
}

.title-with-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.main-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--lux-black);
}

.badge-status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--lux-emerald-subtle);
  border: 1px solid var(--lux-emerald-border);
  color: var(--lux-emerald);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lux-emerald);
  box-shadow: 0 0 6px var(--lux-emerald);
  animation: luxPulse 1.8s infinite;
}

@keyframes luxPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.subtitle-text {
  font-size: 0.84rem;
  color: var(--lux-text-secondary);
  margin-top: 0.15rem;
}

.subtitle-text strong {
  color: var(--lux-emerald);
}

/* FILTER CONTROLS GROUP */
.filter-controls-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.model-segmented-control {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--lux-border);
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--lux-text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn:hover {
  color: var(--lux-black);
}

.seg-btn.active {
  background: #ffffff;
  color: var(--lux-black);
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.luxury-search-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--lux-border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  width: 190px;
}

.luxury-search-input i {
  color: var(--lux-text-muted);
  font-size: 0.78rem;
}

.luxury-search-input input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--lux-text-primary);
  font-size: 0.8rem;
  width: 100%;
}

.luxury-search-input input::placeholder {
  color: var(--lux-text-muted);
}

/* ==========================================================================
   TABLE SCROLL VIEWPORT & LUXURY WHITE SPREADSHEET
   ========================================================================== */
.table-scroll-viewport {
  width: 100%;
  overflow: visible !important;
  background: #ffffff;
}

.table-lux {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  text-align: left;
  font-size: 0.88rem;
}

.table-lux thead {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: #090d0b !important;
  color: #ffffff;
}

.table-lux thead th,
.table-lux th {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: #090d0b !important;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f1f5f9;
  text-transform: uppercase;
  border-bottom: 2px solid var(--lux-emerald);
  white-space: nowrap;
}

.table-lux tbody tr {
  border-bottom: 1px solid var(--lux-border);
  background: #ffffff;
  transition: background 0.15s ease;
}

.table-lux tbody tr:nth-child(even) {
  background: #f8fafc;
}

.table-lux tbody tr:hover {
  background: #f1f5f9;
}

.table-lux td {
  padding: 0.7rem 1.25rem;
  vertical-align: middle;
}

/* AREA SOCIAL HIGHLIGHT ROW */
.tr-social-lux {
  background: #ecfdf5 !important;
  border-top: 2px solid var(--lux-emerald) !important;
  border-bottom: 2px solid var(--lux-emerald) !important;
}

.tr-social-lux td {
  padding: 0.85rem 1.25rem !important;
}

.social-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.social-label-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-label-crown {
  color: var(--lux-emerald);
  font-size: 1.15rem;
}

.social-label-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--lux-black);
}

.social-label-sub {
  font-size: 0.8rem;
  color: var(--lux-emerald-deep);
  font-weight: 600;
}

.btn-social-open {
  background: #047857;
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-social-open:hover {
  background: #065f46;
  transform: translateY(-1px);
}

/* CELL STYLES */
.th-mobile {
  display: none !important;
}

.th-desktop {
  display: inline !important;
}

.mobile-inline-tag,
.mobile-sub-price,
.mobile-sub-tag {
  display: none !important;
}

.cell-stacked {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.piso-tag {
  display: inline-block;
  font-weight: 800;
  color: var(--lux-black);
  font-size: 0.88rem;
  letter-spacing: 0.5px;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.pill-A { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.pill-B { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.pill-C { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.pill-D { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.price-main-tag {
  font-size: 1.05rem;
  font-weight: 800;
  color: #047857;
}

.price-lux-highlight {
  font-size: 1rem;
  font-weight: 800;
  color: var(--lux-black);
}

.badge-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--lux-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.row-lux-featured {
  background: #f0fdf4 !important;
}

/* LUXURY ACTION BUTTONS */
.btn-lux-video {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-xs);
  background: #090d0b;
  border: 1px solid #1e293b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lux-video:hover {
  background: #000000;
  border-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-lux-video i {
  color: #34d399;
  font-size: 0.72rem;
}

.btn-lux-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-xs);
  background: #047857;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.2);
}

.btn-lux-whatsapp:hover {
  background: #065f46;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.35);
}

.strip-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.strip-sep {
  color: var(--lux-text-muted);
}

/* ==========================================================================
   TAB 2: ÁREA SOCIAL (SUITE)
   ========================================================================== */
.social-suite-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #ffffff;
}

.social-banner-hero {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: url('hero-building.jpg') center/cover no-repeat;
  border: 1px solid var(--lux-border);
  box-shadow: var(--shadow-lux);
}

.social-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 13, 11, 0.92) 0%, rgba(9, 13, 11, 0.75) 60%, rgba(9, 13, 11, 0.4) 100%);
}

.social-banner-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.suite-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #34d399;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.suite-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.suite-desc {
  font-size: 0.92rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.suite-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-lux-play {
  background: #047857;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-lux-play:hover {
  background: #065f46;
  transform: translateY(-2px);
}

.btn-lux-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.amenities-luxury-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.amenity-lux-card {
  background: #ffffff;
  border: 1px solid var(--lux-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
}

.amenity-lux-card:hover {
  border-color: #047857;
  transform: translateY(-3px);
}

.amenity-lux-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #047857;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.amenity-lux-card h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--lux-black);
  margin-bottom: 0.45rem;
}

.amenity-lux-card p {
  font-size: 0.82rem;
  color: var(--lux-text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   TAB 5: CALCULADORA FINANCIERA
   ========================================================================== */
.calc-luxury-center {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.calc-lux-card {
  max-width: 1040px;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--lux-border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  box-shadow: var(--shadow-lux);
  overflow: hidden;
}

.calc-lux-col-inputs {
  padding: 2.5rem;
}

.calc-headline {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--lux-black);
  margin-bottom: 0.35rem;
}

.calc-sub {
  font-size: 0.84rem;
  color: var(--lux-text-secondary);
  margin-bottom: 1.75rem;
}

.input-lux-group {
  margin-bottom: 1.25rem;
}

.input-lux-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lux-text-secondary);
  margin-bottom: 0.45rem;
}

.input-lux-group label strong {
  color: #047857;
}

.input-lux-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.lux-input, .lux-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--lux-border);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.9rem;
  color: var(--lux-text-primary);
  font-size: 0.92rem;
  font-family: var(--font-sans);
}

.lux-input:focus, .lux-select:focus {
  border-color: #047857;
}

.lux-range {
  width: 100%;
  accent-color: #047857;
  cursor: pointer;
}

.calc-lux-col-results {
  background: #f8fafc;
  border-left: 1px solid var(--lux-border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-glass-card {
  text-align: center;
}

.res-subtitle {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--lux-text-muted);
  text-transform: uppercase;
}

.res-main-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #047857;
  line-height: 1.15;
  margin: 0.5rem 0;
  font-variant-numeric: tabular-nums;
}

.res-disclaimer {
  font-size: 0.7rem;
  color: var(--lux-text-muted);
  margin-bottom: 1.75rem;
}

.res-details-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.res-stack-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--lux-border);
  padding-bottom: 0.4rem;
  color: var(--lux-text-secondary);
}

.res-stack-row strong {
  color: var(--lux-black);
}

.btn-lux-whatsapp-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #047857;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--lux-emerald-glow);
}

.btn-lux-whatsapp-block:hover {
  background: #065f46;
  transform: translateY(-2px);
}

/* ==========================================================================
   THEATRE VIDEO & SPECIFICATIONS MODAL (100% FULLSCREEN VIDEO -> FICHA TÉCNICA)
   ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* FLOATING CLOSE BUTTON (ALWAYS VISIBLE TOP-RIGHT) */
.modal-floating-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100001;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-floating-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.1) rotate(90deg);
}

/* 1. FULLSCREEN VIDEO VIEW */
.fullscreen-video-container {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow: hidden;
}

.fullscreen-video-player,
.fullscreen-iframe-player {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  background: #000000;
  border: none;
  display: block;
}

/* 2. FICHA TÉCNICA (APPEARS ON VIDEO FINISH) */
.ficha-tecnica-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 100;
  animation: fichaCardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fichaCardEntrance {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ficha-header {
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
}

.ficha-badge-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.theatre-unit-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #047857;
  text-transform: uppercase;
}

.theatre-unit-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--lux-black);
  margin: 0;
  line-height: 1.25;
}

.theatre-price-container {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}

.theatre-price-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: #047857;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.theatre-price-rate {
  font-size: 0.78rem;
  color: var(--lux-text-secondary);
  margin-top: 0.2rem;
  font-weight: 600;
}

.theatre-specs-table {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
}

.t-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--lux-border);
  padding-bottom: 0.4rem;
  color: var(--lux-text-secondary);
}

.t-spec-row strong {
  color: var(--lux-black);
  font-weight: 700;
}

.theatre-features-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.t-chip {
  background: #f1f5f9;
  border: 1px solid var(--lux-border);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  color: var(--lux-text-primary);
  font-weight: 600;
}

.t-chip i {
  color: #047857;
  margin-right: 0.3rem;
}

.theatre-actions-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
}

.btn-replay-video {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #334155;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-replay-video:hover {
  background: #047857;
  border-color: #047857;
}

.btn-lux-whatsapp-block {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-lux-whatsapp-block:hover {
  background: #1eb954;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE ARCHITECTURE (ZERO HORIZONTAL SCROLL)
   ========================================================================== */
@media (max-width: 1180px) {
  html, body {
    overflow-x: clip !important;
    height: auto !important;
    min-height: 100vh;
  }

  .luxury-app {
    height: auto !important;
    min-height: 100vh;
    overflow-x: clip !important;
  }

  /* Header adjustments */
  .luxury-header {
    height: auto;
    padding: 0.75rem 1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .brand-zone {
    justify-content: space-between;
    width: 100%;
  }

  .luxury-nav-tabs {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.2rem;
    padding: 3px;
    box-sizing: border-box;
  }

  .lux-tab {
    padding: 0.45rem 0.25rem;
    font-size: 0.74rem;
    width: 100%;
    justify-content: center;
  }

  .header-vip-actions {
    width: 100%;
  }

  .lux-btn-concierge {
    width: 100%;
    justify-content: center;
    padding: 0.6rem;
  }
}

@media (max-width: 768px) {
  .luxury-nav-tabs {
    gap: 0.15rem;
    padding: 2.5px;
  }

  .lux-tab {
    padding: 0.45rem 0.15rem;
    font-size: 0.68rem;
    gap: 0.2rem;
  }

  .tab-desktop-text {
    display: none !important;
  }

  .tab-mobile-text {
    display: inline !important;
  }

  .lux-tab-num {
    font-size: 0.6rem;
  }

  /* Main Viewport */
  .luxury-main {
    padding: 0.75rem 0.75rem 2rem;
    height: auto !important;
    overflow: visible !important;
    max-width: 100% !important;
  }

  .lux-pane {
    height: auto !important;
    overflow: visible !important;
    border-radius: var(--radius-md);
  }

  .table-control-header {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .main-heading {
    font-size: 1.15rem;
  }

  .filter-controls-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
  }

  .model-segmented-control {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    display: flex;
  }
  .model-segmented-control::-webkit-scrollbar {
    display: none;
  }

  .seg-btn {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .luxury-search-input {
    width: 100%;
  }

  /* =========================================================================
     MOBILE 3-COLUMN TABLE VIEW (STRICT ZERO HORIZONTAL SCROLL)
     Col 1: PISO / MODELO | Col 2: SUPERFICIE / PRECIO | Col 3: VER VIDEO / ACCIÓN
     ========================================================================= */
  .desktop-only,
  .th-desktop {
    display: none !important;
  }

  .th-mobile {
    display: inline !important;
  }

  .mobile-inline-tag {
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    font-size: 0.65rem !important;
    padding: 0.12rem 0.4rem !important;
    font-weight: 700;
  }

  .mobile-sub-price {
    display: block !important;
    font-size: 0.78rem !important;
    font-weight: 800;
    color: #047857 !important;
    line-height: 1.2;
    margin-top: 0.15rem;
  }

  .mobile-sub-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem !important;
    color: var(--lux-text-secondary);
    font-weight: 600;
  }

  .table-scroll-viewport {
    overflow: visible !important;
    height: auto !important;
    width: 100% !important;
  }

  .table-lux {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .table-lux thead {
    display: table-header-group !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: #090d0b !important;
  }

  .table-lux thead th,
  .table-lux th {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: #090d0b !important;
  }

  .table-lux tbody {
    display: table-row-group !important;
    background: #ffffff !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .table-lux tbody tr {
    display: table-row !important;
    border-bottom: 1px solid var(--lux-border) !important;
    background: #ffffff !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .table-lux tbody tr:nth-child(even) {
    background: #f8fafc !important;
  }

  .table-lux th {
    padding: 0.65rem 0.35rem !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .table-lux td {
    padding: 0.6rem 0.35rem !important;
    vertical-align: middle !important;
    font-size: 0.8rem !important;
    border: none !important;
    box-sizing: border-box !important;
  }

  /* 3-COLUMN WIDTH DISTRIBUTION */
  .th-col-piso,
  td.col-piso-type,
  .table-lux tbody tr td:first-child {
    width: 33% !important;
    padding-left: 0.55rem !important;
  }

  .th-col-sup,
  td.col-sup-price,
  .table-lux tbody tr td:nth-child(3) {
    width: 37% !important;
  }

  .th-col-video,
  td.col-video,
  .table-lux tbody tr td:nth-child(6) {
    width: 30% !important;
    padding-right: 0.55rem !important;
    text-align: center !important;
  }

  .cell-stacked {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    align-items: flex-start !important;
  }

  .piso-tag {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .sup-val {
    font-size: 0.8rem !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
  }

  .btn-lux-video {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    padding: 0.45rem 0.35rem !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    width: 100% !important;
    max-width: 96px !important;
    border-radius: var(--radius-xs) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .btn-video-label {
    display: inline !important;
  }

  .btn-lux-whatsapp {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    padding: 0.45rem 0.35rem !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    width: 100% !important;
    max-width: 96px !important;
    border-radius: var(--radius-xs) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .btn-lux-whatsapp span {
    display: inline !important;
  }

  /* ÁREA SOCIAL ROW ON MOBILE */
  .tr-social-lux {
    background: #ecfdf5 !important;
    border-top: 1px solid var(--lux-emerald) !important;
    border-bottom: 1px solid var(--lux-emerald) !important;
  }

  .pill-social {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
  }

  /* MODAL RESPONSIVE (FULLSCREEN CINEMA & DETAILS) */
  .theatre-cinema-view {
    padding: 1rem 0.85rem !important;
  }
  .theatre-topbar {
    padding-right: 2.5rem !important;
  }
  .theatre-cinema-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    text-align: center !important;
  }
  .theatre-footer-actions {
    flex-direction: column !important;
    width: 100% !important;
  }
  .theatre-footer-actions button,
  .theatre-footer-actions a {
    width: 100% !important;
    justify-content: center !important;
  }
  .theatre-details-view {
    padding: 1.35rem 1rem !important;
  }
  .theatre-actions-row {
    grid-template-columns: 1fr !important;
  }
  .details-nav-row {
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .btn-replay-video {
    width: 100% !important;
    justify-content: center !important;
  }
  .calc-lux-card {
    grid-template-columns: 1fr;
  }
  .calc-lux-col-results {
    border-left: none;
    border-top: 1px solid var(--lux-border);
    padding: 1.5rem;
  }
  .calc-lux-col-inputs {
    padding: 1.5rem;
  }
  .social-banner-hero {
    height: auto;
  }
  .social-banner-content {
    padding: 1.5rem;
  }
  .suite-title {
    font-size: 1.5rem;
  }
}

