/* ==========================================================================
   ARCHVIZ STUDIO // ESTILO TECNOLÓGICO ARQUITECTÓNICO B2B
   Inspirado en Arquito & Estudios Globales de CGI Inmobiliario
   ========================================================================== */

:root {
  --bg-primary: #090b0e;
  --bg-secondary: #0f1318;
  --bg-card: #151921;
  --bg-card-hover: #1b212c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(201, 169, 110, 0.35);

  --accent-gold: #c9a96e;
  --accent-gold-light: #dfc28d;
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  
  --text-white: #ffffff;
  --text-primary: #f1f5f9;
  --text-muted: #8b9bb0;
  --text-dim: #5c6b7e;

  --font-heading: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #151c27 0%, var(--bg-primary) 70%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #252e3d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Background Grid Overlay */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Section Common */
section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 14px;
  padding: 6px 14px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 30px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 18px;
}

.section-title span {
  background: linear-gradient(135deg, var(--text-white) 40%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.7;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(9, 11, 14, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1b2432, #0d1218);
  border: 1px solid var(--border-highlight);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.15);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--accent-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #a88448 100%);
  color: #0b0e13;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.12) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--text-white);
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold) 80%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px auto;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 60px auto 0 auto;
  padding: 24px;
  background: rgba(21, 25, 33, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  padding: 0 16px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   INTERACTIVE 360° VIRTUAL ROOM VIEWER
   ========================================================================== */
.tour-360 {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.tour-viewport-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  background: #000;
}

#panorama-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#panorama-canvas:active {
  cursor: grabbing;
}

.tour-controls-ui {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.tour-btn {
  width: 44px;
  height: 44px;
  background: rgba(15, 19, 24, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.tour-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

.tour-badge-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(15, 19, 24, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 12px 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.tour-badge-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
}

.tour-badge-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BEFORE & AFTER COMPARISON SLIDER
   ========================================================================== */
.before-after-section {
  position: relative;
}

.ba-wrapper {
  margin-top: 50px;
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-before {
  z-index: 1;
  filter: grayscale(100%) contrast(120%) brightness(85%); /* Simula render preliminar / volumetría gris */
}

.ba-after {
  z-index: 2;
  width: 50%; /* Controlado dinámicamente por JS */
  overflow: hidden;
  border-right: 3px solid var(--accent-gold);
}

.ba-after .ba-after-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-handle-btn {
  width: 44px;
  height: 44px;
  background: var(--accent-gold);
  border-radius: 50%;
  color: #0b0e13;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.8);
  border: 2px solid #fff;
}

.ba-tag {
  position: absolute;
  top: 20px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 5;
  backdrop-filter: blur(6px);
}

.ba-tag-left {
  left: 20px;
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.ba-tag-right {
  right: 20px;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICES GRID (B2B ENFOCADO A CONSTRUCTORES)
   ========================================================================== */
.services-section {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 20px;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-features li i {
  color: var(--accent-gold);
  font-size: 0.75rem;
}

/* ==========================================================================
   PORTFOLIO WITH FILTERS
   ========================================================================== */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-gold);
  color: #0b0e13;
  border-color: var(--accent-gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 26px;
}

.portfolio-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 380px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(9, 11, 14, 0.95) 10%, rgba(9, 11, 14, 0.3) 60%, transparent 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition);
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}

.portfolio-specs {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.portfolio-specs span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.08);
}

/* ==========================================================================
   B2B WORKFLOW & PIPELINE
   ========================================================================== */
.workflow-section {
  background: var(--bg-secondary);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 30px 24px;
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(201, 169, 110, 0.2);
  line-height: 1;
  margin-bottom: 14px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   ESTIMATOR / QUOTATION CALCULATOR (B2B HIGH VALUE)
   ========================================================================== */
.calculator-section {
  position: relative;
}

.calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: 18px;
  padding: 48px;
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
}

.form-label span.val {
  color: var(--accent-gold);
}

.range-slider {
  width: 100%;
  height: 6px;
  background: #252e3d;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-gold);
}

.select-custom,
.input-custom {
  background: #0d1117;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.select-custom:focus,
.input-custom:focus {
  border-color: var(--accent-gold);
}

.calc-summary {
  background: #0d1117;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-summary-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-white);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-row span.strong {
  color: var(--text-primary);
  font-weight: 600;
}

.calc-total-box {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px solid var(--border-highlight);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-total-label {
  font-size: 1.05rem;
  font-weight: 700;
}

.calc-total-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #06080b;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 20px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   MODAL LIGHTBOX
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 30px;
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--accent-gold);
  color: #000;
}

.modal-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.modal-content {
  padding: 28px 32px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-box {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 120px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .workflow-steps {
    grid-template-columns: 1fr;
  }
  .tour-viewport-wrapper,
  .ba-wrapper {
    height: 380px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
