/* ===== VARIABLES ===== */
:root {
  --primary: #6C63FF;
  --primary-light: #8B85FF;
  --primary-dark: #4A43CC;
  --accent: #43C59E;
  --accent2: #FF6B6B;
  --gold: #F7C948;
  --bg: #0D0E1A;
  --bg2: #12131F;
  --bg3: #1A1B2E;
  --surface: #1E2035;
  --surface2: #252640;
  --border: rgba(108,99,255,0.18);
  --text: #E8E8F8;
  --text-muted: #9090B0;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(108,99,255,0.25);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { text-decoration: none; color: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,14,26,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-container {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-icon { font-size: 1.5rem; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--white); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
  padding: 0.4rem 0.9rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); background: var(--surface); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: 0.4rem 0.7rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 1.1rem; }
.nav-mobile { display: none; flex-direction: column; list-style: none; padding: 1rem 2rem; background: var(--bg2); border-top: 1px solid var(--border); }
.nav-mobile a { display: block; padding: 0.6rem 0; color: var(--text-muted); font-weight: 500; }
.nav-mobile.open { display: flex; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: none; transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 20px rgba(108,99,255,0.4); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,99,255,0.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }
.btn-tour {
  background: linear-gradient(135deg, #43C59E, #6C63FF);
  color: var(--white); border: none;
  box-shadow: 0 4px 24px rgba(67,197,158,0.35);
  position: relative; overflow: hidden;
}
.btn-tour::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: var(--transition);
}
.btn-tour:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(67,197,158,0.5); }
.btn-tour:hover::after { opacity: 1; }

/* ===== HERO ===== */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0D0E1A 0%, #1a1040 40%, #0e1a2e 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236C63FF' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(108,99,255,0.15) 0%, transparent 60%),
               radial-gradient(circle at 80% 20%, rgba(67,197,158,0.1) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 2rem; max-width: 900px;
}
.hero-badge {
  display: inline-block; background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.4); color: var(--primary-light);
  padding: 0.35rem 1.1rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease forwards;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900; line-height: 1.05; color: var(--white);
  letter-spacing: -0.03em; margin-bottom: 1rem;
  animation: fadeInUp 0.9s ease forwards;
}
.hero-title span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.1s forwards; opacity: 0;
}
.hero-stats {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.2s forwards; opacity: 0;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
}
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--primary-light); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.3s forwards; opacity: 0;
}
.hero-scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.75rem; animation: bounce 2s infinite;
}
.scroll-arrow {
  width: 20px; height: 20px; border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted); transform: rotate(45deg);
}

/* ===== SECTIONS COMMON ===== */
section { padding: 6rem 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge {
  display: inline-block; background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.3); color: var(--primary-light);
  padding: 0.3rem 1rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.8rem;
}
.section-header h2 {
  font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--white); letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 0.75rem;
}
.section-desc { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ===== PLANO 2D ===== */
#plano2d { background: var(--bg2); }
.plano-wrapper { max-width: 1200px; margin: 0 auto; }
.plano-controls {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin-bottom: 1.5rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem; border-radius: 50px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); border-color: var(--primary);
  color: var(--white); box-shadow: 0 0 20px rgba(108,99,255,0.3);
}
.plano-canvas-wrap {
  position: relative; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow);
}
#plano-canvas { display: block; width: 100%; cursor: crosshair; }
.plano-tooltip {
  position: absolute; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  pointer-events: none; min-width: 180px; box-shadow: var(--shadow);
  font-size: 0.875rem;
}
.plano-tooltip h4 { color: var(--white); font-weight: 700; margin-bottom: 0.25rem; }
.plano-tooltip p { color: var(--text-muted); font-size: 0.8rem; }
.hidden { display: none !important; }
.plano-legend {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin-top: 1.5rem;
}
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.leg-color { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }

/* ===== ZONAS GRID ===== */
#zonas { background: var(--bg); }
.zonas-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem; max-width: 1300px; margin: 0 auto;
}
.zona-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.zona-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: var(--transition);
}
.zona-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); border-color: rgba(108,99,255,0.4); }
.zona-card:hover::before { opacity: 1; }
.zona-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.zona-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 0.4rem; }
.zona-size { font-size: 0.8rem; color: var(--primary-light); font-weight: 600; margin-bottom: 0.6rem; }
.zona-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }
.zona-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.zona-tag {
  background: rgba(108,99,255,0.12); border: 1px solid rgba(108,99,255,0.25);
  color: var(--primary-light); padding: 0.2rem 0.65rem;
  border-radius: 50px; font-size: 0.72rem; font-weight: 500;
}

/* ===== GALERÍA ===== */
#galeria { background: var(--bg2); }
.gallery-tabs {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-bottom: 2rem;
}
.gallery-tab {
  padding: 0.6rem 1.5rem; border-radius: 50px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: var(--transition);
}
.gallery-tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.gallery-panels { max-width: 1200px; margin: 0 auto; }
.gallery-panel { display: none; }
.gallery-panel.active { display: block; animation: fadeIn 0.4s ease; }
.render-card { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.render-card img { width: 100%; object-fit: cover; max-height: 500px; }
.render-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(13,14,26,0.95) 0%, transparent 100%);
  padding: 2rem 2rem 1.5rem;
}
.render-caption h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 0.4rem; }
.render-caption p { color: rgba(255,255,255,0.7); font-size: 0.9rem; max-width: 600px; }
.render-specs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.spec-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: var(--transition);
}
.spec-card:hover { border-color: rgba(108,99,255,0.4); }
.spec-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.spec-card h4 { font-weight: 700; color: var(--white); margin-bottom: 0.35rem; }
.spec-card p { color: var(--text-muted); font-size: 0.82rem; }

/* ===== ESPECIFICACIONES ===== */
#especificaciones { background: var(--bg); }
.specs-container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; max-width: 1200px; margin: 0 auto; align-items: start;
}
.specs-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th {
  background: var(--surface2); color: var(--primary-light);
  padding: 0.9rem 1.25rem; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; text-align: left;
}
.specs-table td {
  padding: 0.8rem 1.25rem; font-size: 0.875rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.specs-table td:first-child { color: var(--text); font-weight: 600; }
.specs-table tr:hover td { background: rgba(108,99,255,0.05); }
.specs-highlights { display: flex; flex-direction: column; gap: 1rem; }
.highlight-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: var(--transition);
}
.highlight-card:hover { border-color: rgba(108,99,255,0.4); transform: translateX(4px); }
.highlight-icon { font-size: 1.75rem; flex-shrink: 0; }
.highlight-card h4 { font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.highlight-card p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== CONTACTO ===== */
#contacto { background: var(--bg2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 3rem; max-width: 1100px; margin: 0 auto; align-items: start;
}
.contact-info h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-items { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-item { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: 0.9rem; }
.contact-item span:first-child { font-size: 1.1rem; }
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.contact-form h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.9rem;
  padding: 0.7rem 1rem; font-family: var(--font-body); outline: none;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.form-group select option { background: var(--bg2); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-msg { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; }
.form-msg.success { background: rgba(67,197,158,0.12); border: 1px solid var(--accent); color: var(--accent); }
.form-msg.error { background: rgba(255,107,107,0.12); border: 1px solid var(--accent2); color: var(--accent2); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 2.5rem 2rem; text-align: center;
}
.footer-content { max-width: 800px; margin: 0 auto; }
.footer-brand { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
footer p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.35rem; }
.footer-note { font-size: 0.8rem !important; }

/* ===== SCROLL TOP ===== */
#scroll-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  border: none; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
  opacity: 0; transform: translateY(20px);
  transition: var(--transition); pointer-events: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scroll-top:hover { background: var(--primary-light); transform: translateY(-3px); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes bounce { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(-8px); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .specs-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  section { padding: 4rem 1.25rem; }
  .hero-stats { gap: 1rem; }
  .stat { padding: 0.75rem 1.1rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .render-specs { grid-template-columns: 1fr 1fr; }
}

/* ===== TOUR VIRTUAL MODAL ===== */
.tour-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,5,15,0.97);
  display: flex; align-items: stretch; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.tour-modal.open { opacity: 1; pointer-events: all; }
.tour-modal-inner {
  width: 100%; max-width: 1400px;
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
}

/* Topbar */
.tour-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 58px; flex-shrink: 0;
  background: rgba(13,14,26,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.tour-brand { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--white); display: flex; align-items: center; gap: 0.4rem; }
.tour-subtitle { color: var(--accent); font-size: 0.82rem; font-weight: 600; padding: 0.15rem 0.65rem; background: rgba(67,197,158,0.12); border-radius: 50px; margin-left: 0.4rem; }
.tour-topbar-center { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; flex: 1; margin: 0 2rem; }
.tour-progress-bar { width: 100%; max-width: 320px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.tour-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 2px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); width: 12.5%; }
.tour-counter { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.08em; }
.tour-topbar-right { display: flex; gap: 0.4rem; }
.tour-ctrl-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.tour-ctrl-btn:hover { background: var(--surface2); color: var(--white); }
.tour-ctrl-btn.playing { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.tour-close-btn:hover { background: var(--accent2); border-color: var(--accent2); color: var(--white); }

/* Viewer */
.tour-viewer {
  position: relative; flex: 1; overflow: hidden;
  background: #000; cursor: grab;
}
.tour-viewer:active { cursor: grabbing; }
.tour-scene {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.tour-img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 0;
  transform-origin: center center;
  transition: opacity 0.6s ease;
  animation: kenBurns 14s ease-in-out infinite alternate;
}
.tour-img.changing { opacity: 0; animation: none; }
@keyframes kenBurns {
  0%   { transform: scale(1.0) translateX(0px) translateY(0px); }
  25%  { transform: scale(1.06) translateX(-15px) translateY(-8px); }
  50%  { transform: scale(1.04) translateX(10px) translateY(5px); }
  75%  { transform: scale(1.08) translateX(-8px) translateY(12px); }
  100% { transform: scale(1.05) translateX(18px) translateY(-10px); }
}

/* CSS Art overlay (for scenes without photo) */
.tour-overlay-art { position: absolute; inset: 0; pointer-events: none; }

/* Nav arrows */
.tour-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(13,14,26,0.7); border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); font-size: 2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); backdrop-filter: blur(8px);
  line-height: 1;
}
.tour-prev { left: 1.5rem; }
.tour-next { right: 1.5rem; }
.tour-nav-btn:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-50%) scale(1.1); }

/* Scene badge */
.tour-scene-badge {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: rgba(13,14,26,0.8); border: 1px solid var(--border);
  border-radius: 50px; padding: 0.45rem 1.25rem;
  font-size: 0.85rem; font-weight: 600; color: var(--white);
  backdrop-filter: blur(10px); white-space: nowrap;
  transition: opacity 0.4s ease;
}

/* Hotspots */
.tour-hotspots { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hs-dot {
  position: absolute; pointer-events: all; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(108,99,255,0.9); border: 3px solid var(--white);
  box-shadow: 0 0 0 0 rgba(108,99,255,0.6);
  transform: translate(-50%,-50%);
  animation: hsPulse 2.5s ease-in-out infinite;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--white); font-weight: 700;
}
.hs-dot:hover { background: var(--accent); box-shadow: 0 0 0 8px rgba(67,197,158,0.25); transform: translate(-50%,-50%) scale(1.25); }
.hs-dot .hs-label {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: rgba(13,14,26,0.92); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.3rem 0.7rem;
  font-size: 0.72rem; white-space: nowrap; color: var(--white);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.hs-dot:hover .hs-label { opacity: 1; }
@keyframes hsPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(108,99,255,0.6); }
  50%      { box-shadow: 0 0 0 12px rgba(108,99,255,0); }
}

/* Bottom bar */
.tour-bottom {
  flex-shrink: 0; background: rgba(13,14,26,0.96);
  border-top: 1px solid var(--border);
  display: flex; gap: 0; align-items: stretch;
  height: 130px;
}

/* Thumbnails */
.tour-thumbs {
  display: flex; gap: 0.5rem; align-items: center;
  padding: 0.75rem 1rem; overflow-x: auto; flex: 1;
}
.tour-thumbs::-webkit-scrollbar { height: 3px; }
.tour-thumb {
  flex-shrink: 0; width: 110px; height: 75px; border-radius: 8px;
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); position: relative;
  background: var(--surface);
}
.tour-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tour-thumb .thumb-art {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.tour-thumb:hover { border-color: rgba(108,99,255,0.5); transform: translateY(-2px); }
.tour-thumb.active { border-color: var(--accent); box-shadow: 0 0 16px rgba(67,197,158,0.3); }
.tour-thumb-num {
  position: absolute; top: 4px; left: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(13,14,26,0.8); color: var(--text-muted);
  font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.tour-thumb.active .tour-thumb-num { background: var(--accent); color: var(--bg); }

/* Info panel */
.tour-info-panel {
  width: 340px; flex-shrink: 0; padding: 0.9rem 1.25rem;
  border-left: 1px solid var(--border);
  display: flex; gap: 0.75rem; align-items: flex-start;
  overflow: hidden;
}
.tour-info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.tour-info-text { flex: 1; min-width: 0; }
.tour-info-text h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; line-height: 1.3; }
.tour-info-text p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour-info-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.tour-info-tags .zona-tag { font-size: 0.65rem; padding: 0.15rem 0.5rem; }

/* Responsive tour */
@media (max-width: 768px) {
  .tour-info-panel { display: none; }
  .tour-bottom { height: 100px; }
  .tour-thumb { width: 80px; height: 55px; }
  .tour-topbar-center { display: none; }
}

