:root {
  /* Colores Oficiales de cada Desarrollo */
  --color-marques: #eb7526;
  --color-country: #b77319;
  --color-puertanorte: #013a33;
  --color-juriquilla: #1c4896;
  --color-sur: #78519b;

  /* Color dinámico activo (cambia según el desarrollo seleccionado) */
  --active-dev-color: #b77319;

  /* Tema Oscuro Inmersivo por defecto (Inspiración GMX Digital & ERA Residence Night) */
  --bg-primary: #0a0d0c;
  --bg-secondary: #121715;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(14, 19, 17, 0.78);
  --text-primary: #f5f3ef;
  --text-secondary: #9ca8a2;
  --text-muted: #68756f;
  --border-hairline: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45);

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tema Día / Arena Arquitectónico (Inspiración Loam House & ERA Residence Day) */
[data-theme="light"] {
  --bg-primary: #f6f3ec;
  --bg-secondary: #ebe5d8;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-surface-hover: #ffffff;
  --bg-glass: rgba(246, 243, 236, 0.85);
  --text-primary: #121815;
  --text-secondary: #4a5751;
  --text-muted: #76847d;
  --border-hairline: rgba(18, 24, 21, 0.1);
  --border-strong: rgba(18, 24, 21, 0.22);
  --shadow-card: 0 20px 50px rgba(18, 24, 21, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
  padding-bottom: 84px; /* Espacio para el Dock Mobile-First */
}

@media (min-width: 981px) {
  body {
    padding-bottom: 0;
  }
}

/* Ambient Aura Glow Dinámico */
.ambient-glow {
  position: fixed;
  top: -18vh;
  right: -12vw;
  width: 65vw;
  height: 65vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--active-dev-color) 0%, transparent 68%);
  opacity: 0.18;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.8s ease;
}

/* Header Minimalista Arquitectónico */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-juriquilla), var(--color-puertanorte), var(--color-country));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-subtitle {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.main-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

.main-nav a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ERA Residence Inspired Day/Night Switch */
.theme-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
}

/* Stories / Development Pill Bar (Mobile-First Thumb Navigation) */
.stories-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0.65rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.stories-bar::-webkit-scrollbar {
  display: none;
}

.stories-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
}

.story-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s var(--transition-smooth);
}

.story-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.story-pill:hover,
.story-pill.active {
  transform: translateY(-1px);
  border-color: currentColor;
  background: var(--bg-surface-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s var(--transition-smooth);
  white-space: nowrap;
}

.btn-dynamic {
  background: var(--active-dev-color);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px var(--active-dev-color);
}

.btn-dynamic:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-glass {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Containers & Chapters (Loam House Spatial Flow) */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-hairline);
}

@media (max-width: 768px) {
  .section {
    padding: 3.25rem 0;
  }
}

.chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.chapter-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--active-dev-color);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.06;
  max-width: 720px;
}

.chapter-subtitle {
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 460px;
}

/* Cinematic Hero (Mobile First + Editorial) */
.hero-cinematic {
  position: relative;
  padding: 2.5rem 0 4rem;
  border-bottom: 1px solid var(--border-hairline);
}

.hero-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .hero-bento {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.75rem;
    align-items: stretch;
  }
}

.hero-main-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-image 0.6s ease;
}

@media (min-width: 768px) {
  .hero-main-stage {
    padding: 3rem;
    min-height: 580px;
  }
}

.hero-main-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,13,12,0.15) 0%, rgba(10,13,12,0.55) 45%, rgba(10,13,12,0.94) 100%);
  z-index: 1;
}

.hero-stage-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stage-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 4.15rem);
  line-height: 1.04;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-stage-content h1 em {
  font-style: italic;
  color: #f3c878;
}

.hero-stage-content p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 1.6rem;
  max-width: 580px;
}

/* Color-Coded Interactive Development Selector Strip inside Hero */
.hero-color-dock {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-top: 1.5rem;
  scrollbar-width: none;
}

.hero-color-dock::-webkit-scrollbar {
  display: none;
}

.color-trigger {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: all 0.25s;
}

.color-trigger.active,
.color-trigger:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Interactive Smart Profiler Card (Clean & Uncluttered) */
.smart-profiler {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.smart-profiler::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-juriquilla), var(--color-puertanorte), var(--color-country), var(--color-marques), var(--color-sur));
}

.profiler-step-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.choice-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.choice-btn:hover {
  border-color: var(--border-strong);
}

.choice-btn.active {
  background: var(--active-dev-color);
  color: #fff;
  border-color: var(--active-dev-color);
}

.profiler-match-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--active-dev-color);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  margin-top: 0.5rem;
  transition: border-color 0.3s;
}

/* Mobile-First Horizontal Snap Carousel for the 5 Developments */
.dev-carousel-wrapper {
  position: relative;
}

.dev-snap-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.dev-snap-track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .dev-snap-track {
    grid-auto-columns: 46%;
  }
}

@media (min-width: 1120px) {
  .dev-snap-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
  }
}

.luxury-dev-card {
  scroll-snap-align: start;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--transition-smooth), border-color 0.35s;
  position: relative;
}

.luxury-dev-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-brand);
}

.luxury-card-media {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.luxury-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.88) 100%);
  z-index: 1;
}

.luxury-card-top,
.luxury-card-bottom {
  position: relative;
  z-index: 2;
}

.luxury-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.brand-tag {
  background: var(--card-brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
}

.macro-badge {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.68rem;
  padding: 0.24rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.luxury-card-bottom h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.05;
  margin-bottom: 0.2rem;
}

.luxury-card-bottom span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}

.luxury-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  border-top: 3px solid var(--card-brand);
}

.kpi-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.kpi-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  color: var(--text-primary);
  font-weight: 600;
}

.luxury-card-pitch {
  font-size: 0.86rem;
  color: var(--text-secondary);
  flex: 1;
}

.luxury-card-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

/* Interactive Geo-Poles Radar Tabs (Replaces boring static blocks) */
.poles-interactive {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.poles-tab-bar {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--border-hairline);
}

@media (min-width: 768px) {
  .poles-tab-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pole-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1.15rem 1.25rem;
  text-align: left;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s;
}

.pole-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-bottom-color: var(--active-dev-color);
}

.pole-tab-btn strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.pole-tab-btn span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pole-stage-panel {
  display: none;
  padding: 2rem 1.5rem;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .pole-stage-panel {
    padding: 2.5rem;
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.pole-stage-panel.active {
  display: grid;
}

.distance-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.distance-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 0.9rem;
  border-radius: var(--radius-sm);
}

.distance-badge strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
}

.distance-badge span {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* Live CRM Map Showcase */
.crm-showcase {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.crm-header-bar {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-hairline);
}

.crm-viewport {
  height: 540px;
  width: 100%;
  background: #0d1311;
}

@media (max-width: 768px) {
  .crm-viewport {
    height: 440px;
  }
}

.crm-viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.crm-footer-bar {
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Progressive Disclosure Drawers (Accordions for SEO/AEO/GEO without visual clutter) */
.architectural-accordion {
  border-top: 1px solid var(--border-hairline);
}

.acc-item {
  border-bottom: 1px solid var(--border-hairline);
}

.acc-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.35rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
}

.acc-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.acc-item.open .acc-icon {
  transform: rotate(45deg);
  background: var(--active-dev-color);
  border-color: var(--active-dev-color);
  color: #fff;
}

.acc-content {
  display: none;
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.acc-item.open .acc-content {
  display: block;
}

/* Semantic Table inside Drawer */
.luxury-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.luxury-table th,
.luxury-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
}

.luxury-table th {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.pill-ok {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.pill-out {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Mobile-First Sticky Bottom Action Bar */
.mobile-bottom-dock {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 1500;
  background: rgba(14, 19, 17, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.45rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

@media (min-width: 981px) {
  .mobile-bottom-dock {
    display: none;
  }
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.2rem;
  border-radius: var(--radius-pill);
  color: #d1dbd6;
  text-decoration: none;
  font-size: 0.66rem;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
}

.dock-item.dock-cta {
  background: var(--active-dev-color);
  color: #fff;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 7, 0.82);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-group input,
.form-group select {
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2.5rem;
  background: var(--bg-secondary);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-hairline);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text-primary);
}
