/* CorGrid UI Core - Dark, alto contraste, responsivo */

:root {
  --bg: #0b1020;
  --bg-elev: #111832;
  --text: #e9eefc;
  --muted: #b9c4e6;
  --border: rgba(233,238,252,0.08);
  --accent: #3498db;
  --accent-2: #1abc9c;
  --danger: #ef4444;
  --shadow: 0 8px 24px rgba(0,0,0,0.35);
  --radius: 12px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(135deg,#0a0f23,#0b1020 30%,#0e1733 100%);color:var(--text);font:400 16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial}

/* Layout */
.layout{display:flex;min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:280px;transition:width .25s ease,transform .25s ease;background:linear-gradient(180deg,var(--bg-elev),#0e1733);border-right:1px solid var(--border);box-shadow:var(--shadow);z-index:1200;display:flex;flex-direction:column}
.sidebar.collapsed{width:76px}
.sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:16px 14px;border-bottom:1px solid var(--border)}
.sidebar-title{font-weight:700;color:var(--text);margin:0;white-space:nowrap}
.sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid rgba(52,152,219,.35);background:rgba(52,152,219,.1);color:var(--accent);border-radius:10px;cursor:pointer}
.sidebar-toggle:hover{background:rgba(52,152,219,.18)}
.nav-vertical{padding:8px 6px 24px;overflow:auto;height:100%}
.nav-item{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:6px 8px;border:1px solid transparent;border-radius:10px;color:var(--muted);text-decoration:none;transition:.2s}
.nav-item:hover{background:rgba(52,152,219,.12);color:var(--text);transform:translateX(4px);border-color:rgba(52,152,219,.35)}
.nav-item.active{background:rgba(52,152,219,.18);border-color:rgba(52,152,219,.45);color:var(--accent)}
.nav-icon{width:24px;text-align:center;font-size:18px;color:inherit;filter:drop-shadow(0 0 2px rgba(255,255,255,.35))}
.nav-label{white-space:nowrap;color:inherit}
.sidebar.collapsed .nav-label{display:none}
.sidebar.collapsed .nav-item{justify-content:center;margin:10px 8px}
.nav-item .tip{position:absolute;left:90%;top:50%;transform:translateY(-50%);background:#000;border:1px solid rgba(255,255,255,.1);color:#fff;padding:6px 8px;border-radius:8px;opacity:0;pointer-events:none;transition:.15s}
.sidebar.collapsed .nav-item:hover .tip{opacity:1}

.header{position:sticky;top:0;z-index:1100;margin-left:280px;transition:margin-left .25s ease;background:linear-gradient(90deg,var(--bg-elev),#0e1733);border-bottom:1px solid var(--border);backdrop-filter:saturate(120%) blur(6px);width:calc(100% - 280px)}
.sidebar.collapsed ~ .header{margin-left:76px}
.sidebar.collapsed ~ .header{width:calc(100% - 76px)}
.header-inner{display:flex;align-items:center;gap:16px;padding:14px 18px}
.brand{display:flex;align-items:center;gap:10px}
.brand .logo{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:rgba(52,152,219,.2);color:var(--accent)}
.brand .name{font-weight:800;letter-spacing:.3px}
.nav-horizontal{margin-left:auto;display:flex;gap:10px;align-items:center}
.nav-horizontal a{color:var(--muted);text-decoration:none;padding:10px 12px;border-radius:8px;white-space:nowrap}
.nav-horizontal a:hover{background:rgba(52,152,219,.12);color:var(--text)}
.nav-horizontal a.active{background:rgba(52,152,219,.18);color:var(--accent)}
.nav-horizontal a.cta{background:linear-gradient(135deg,var(--accent),#2d7bb3);color:#fff;border:1px solid rgba(255,255,255,.12)}

.content{margin-left:280px;transition:margin-left .25s ease;padding:28px;width:100%}
.sidebar.collapsed ~ .header + .content,.sidebar.collapsed ~ .content{margin-left:76px}

/* Utilitários */
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.card{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.title{font-weight:800;margin:0 0 8px}
.muted{color:var(--muted)}

/* Hero modernizado */
.hero-card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:32px 26px;border-radius:16px;background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));max-width:780px;margin:0 auto}
.hero-card .title{font-weight:900;letter-spacing:.2px;font-size:clamp(1.5rem, 2.5vw + 1rem, 2.4rem)}
.hero-card .muted{font-size:clamp(.95rem, 1vw + .6rem, 1.15rem)}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;border-radius:10px;text-decoration:none;border:1px solid var(--border);color:var(--text);background:rgba(255,255,255,.04);transition:.2s}
.btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.07)}
.btn.primary{background:linear-gradient(135deg,var(--accent),#2d7bb3);color:#fff;border-color:rgba(255,255,255,.15)}
.btn.secondary{background:rgba(255,255,255,.06)}

/* Seções específicas */
.stats-section{margin-top:24px}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}

.specs-section{margin-top:28px}
.specs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}

/* Tour Guiado Interativo */
.interactive-floor-plan {
  margin: 24px 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
}

.floor-plan-container {
  max-width: 100%;
  margin: 0 auto 24px;
  text-align: center;
}

.floor-plan-svg {
  width: 100%;
  height: auto;
  max-width: 1200px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.1);
}

/* Interações dos elementos da planta */
.room, .corridor, .machinery-room {
  cursor: pointer;
  transition: all 0.3s ease;
}

.room:hover, .corridor:hover, .machinery-room:hover {
  filter: brightness(1.1);
  stroke-width: 3;
  stroke: var(--accent);
}

.machinery-room:hover {
  fill: #ffdb4d;
}

/* Sensores */
.sensor {
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.sensor-persistent {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.sensor:hover {
  opacity: 1;
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}

.sensor.active {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.6));
}

.sensor.highlighting {
  animation: highlight 1s ease-in-out;
  opacity: 1;
  transform: scale(1.15);
}

@keyframes highlight {
  0%, 100% { 
    transform: scale(1); 
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
  }
  50% { 
    transform: scale(1.15); 
    filter: drop-shadow(0 0 16px rgba(255,255,255,0.8));
  }
}

.sensor.filtered {
  opacity: 0.2;
  transform: scale(0.8);
  filter: grayscale(1);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animações de entrada para elementos da planta */
.room, .corridor, .machinery-room {
  animation: fadeInUp 0.6s ease-out forwards;
}

.room:nth-child(1) { animation-delay: 0.1s; }
.room:nth-child(2) { animation-delay: 0.2s; }
.room:nth-child(3) { animation-delay: 0.3s; }
.room:nth-child(4) { animation-delay: 0.4s; }
.room:nth-child(5) { animation-delay: 0.5s; }

.sensor {
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.sensor-group {
  opacity: 1 !important;
  visibility: visible !important;
}

.sensor.electrical, 
.sensor.temperature, 
.sensor.mechanical, 
.sensor.door, 
.sensor.air-quality, 
.sensor.humidifier, 
.sensor.gateway,
.sensor.fancoil,
.sensor.valve,
.sensor.water-temp,
.sensor.contactor,
.sensor.powermeter { 
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Tooltip */
.sensor-tooltip {
  position: absolute;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.sensor-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.sensor-tooltip h4 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}

.sensor-tooltip .metric {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sensor-tooltip .metric:last-child {
  border-bottom: none;
}

.sensor-tooltip .metric-label {
  color: #94a3b8;
}

.sensor-tooltip .metric-value {
  color: white;
  font-weight: 600;
}

/* Legenda */
.sensors-legend {
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

.sensors-legend h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.legend-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.legend-item.active {
  background: rgba(52,152,219,0.1);
  border-color: var(--accent);
}

.legend-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.legend-icon.electrical { background: #3498db; }
.legend-icon.temperature { background: #e74c3c; }
.legend-icon.mechanical { background: #9b59b6; }
.legend-icon.door { background: #f39c12; }
.legend-icon.air-quality { background: #27ae60; }
.legend-icon.humidifier { background: #1abc9c; }
.legend-icon.gateway { background: #34495e; }
.legend-icon.fancoil { background: #8e44ad; }
.legend-icon.valve { background: #2980b9; }
.legend-icon.water-temp { background: #d35400; }
.legend-icon.contactor { background: #c0392b; }
.legend-icon.powermeter { background: #16a085; }

.legend-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.legend-item span {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

.section-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Navegação de Andares */
.floor-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.floor-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floor-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.floor-nav-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.floor-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.floor-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(52,152,219,0.1);
  border: 1px solid rgba(52,152,219,0.3);
  border-radius: 12px;
  font-weight: 600;
  color: var(--accent);
}

.current-floor {
  font-size: 24px;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
}

.floor-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floor-selector label {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.floor-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  min-width: 160px;
  cursor: pointer;
}

.floor-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.floor-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floor-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.floor-stats .stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.floor-stats .stat strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

/* Responsividade da navegação */
@media (max-width: 768px) {
  .floor-navigation {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .floor-controls {
    order: 1;
  }
  
  .floor-selector {
    order: 2;
    flex-direction: column;
    gap: 8px;
  }
  
  .floor-info {
    order: 3;
  }
  
  .floor-stats {
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 768px){
  .sidebar{transform:translateX(-100%)}
  .sidebar.mobile-open{transform:translateX(0)}
  .header,.content{margin-left:0}
  
  /* Hero responsivo */
  .hero{height:55vh;padding:10px}
  .hero .content{padding:15px;max-width:100%}
  .title{font-size:2.2rem !important;margin-bottom:12px !important}
  .subtitle{font-size:0.95rem !important;margin:8px auto 18px auto !important;line-height:1.5}
  .cta-bar{gap:8px;margin-top:15px}
  .btn{padding:12px 18px;font-size:0.9rem}
  
  .interactive-floor-plan {
    padding: 16px;
  }
  
  .legend-grid {
    grid-template-columns: 1fr;
  }
  
  .sensor-tooltip {
    max-width: 250px;
    padding: 12px 16px;
    font-size: 13px;
  }
  
  /* Expandir mapa no mobile e tornar layout mais fluido/impactante */
  .interactive-floor-plan { padding: 12px; }
  .floor-plan-container { height: min(75vh, 600px); aspect-ratio: 16 / 10; }
  .floor-plan-svg { height: 100%; max-height: none; }
  .content-card { padding: 16px; }
  .floor-nav-btn { width: 48px; height: 48px; font-size: 20px; }
  .floor-display { padding: 10px 16px; }
  .current-floor { font-size: 28px; }
  .floor-select { width: 100%; min-width: 0; }
  .legend-grid { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .legend-item { flex: 0 0 auto; scroll-snap-align: start; }
}

/* Mobile extra-pequeno */
@media (max-width: 480px){
  .floor-plan-container { height: min(78vh, 640px); aspect-ratio: 16 / 11; }
  .floor-nav-btn { width: 52px; height: 52px; font-size: 22px; }
  .current-floor { font-size: 30px; }
}

/* Acessibilidade */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Top Menu */
#top-menu {
    width: 100%;
    position: relative;
    z-index: 9999;
}

/* ===== Menu Personalizado (Tesla Style) ===== */

.cg-top-nav {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #2c3e50;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cg-top-nav .cg-nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cg-top-nav .brand {
    font-weight: 800;
    letter-spacing: 0.3px;
    font-size: 1.1rem;
}

.cg-top-nav .brand a {
    color: #ecf0f1;
    text-decoration: none;
}

.cg-top-nav .nav-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cg-top-nav .nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.cg-top-nav .nav-links a:hover {
    background: rgba(236, 240, 241, 0.12);
    transform: translateY(-1px);
}

.cg-top-nav .nav-links a.active {
    background: rgba(236, 240, 241, 0.18);
    box-shadow: inset 0 0 0 1px rgba(236,240,241,0.25);
}

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(236,240,241,0.15);
    color: #ecf0f1;
    border: 1px solid rgba(236,240,241,0.25);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(236,240,241,0.25);
    border-color: rgba(236,240,241,0.4);
    transform: translateY(-1px);
}

.lang-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.lang-btn .flag-icon {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.lang-btn .lang-text {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2c3e50;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 1px solid rgba(236,240,241,0.25);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 3000;
    margin-top: 5px;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    color: #ecf0f1;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(236,240,241,0.1);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(236,240,241,0.15);
}

.lang-option:focus {
    background: rgba(236,240,241,0.2);
    outline: none;
}

.lang-option .flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* Mobile drawer */
.cg-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 360px;
    height: 100%;
    background: #2c3e50;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    box-shadow: -8px 0 24px rgba(0,0,0,0.4);
    transition: right .3s ease;
    z-index: 2500;
    padding: 18px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.cg-drawer.open {
    right: 0;
}

.cg-drawer h3 {
    margin: 0 0 12px 0;
    font-weight: 800;
    font-size: 1.1rem;
}

.cg-drawer a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(236,240,241,0.18);
}

.cg-drawer a:last-child {
    border-bottom: none;
}

.cg-drawer .close {
    appearance: none;
    border: none;
    background: rgba(236,240,241,0.15);
    color: #ecf0f1;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

/* Overlay para drawer mobile */
.cg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 2400;
}

.cg-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Botão hamburger acessível */
.cg-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border-radius: 10px;
    background: rgba(236,240,241,0.12);
    border: 1px solid rgba(236,240,241,0.2);
    color: #ecf0f1;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
}

.cg-hamburger:hover {
    background: rgba(236,240,241,0.2);
    transform: translateY(-1px);
}

.cg-hamburger svg {
    width: 22px;
    height: 22px;
}

/* Scroll shadow mais forte ao rolar */
.cg-top-nav.scroll-shadow {
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

/* FAB lateral para abrir o menu no mobile */
.cg-side-fab {
    position: fixed;
    left: 12px;
    bottom: 24px;
    z-index: 2300;
    display: none;
}

.cg-side-fab .fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(236,240,241,0.2);
    background: linear-gradient(135deg,#2c3e50,#34495e);
    color: #ecf0f1;
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cg-side-fab .fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,.45);
}

.cg-side-fab svg {
    width: 22px;
    height: 22px;
}

/* Mobile Responsivo */
@media (max-width: 768px) {
    .cg-top-nav .cg-nav-container {
        padding: 10px 14px;
    }
    .cg-top-nav .brand a {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60vw;
        display: inline-block;
    }
    .cg-top-nav .nav-links {
        display: none;
    }
    .language-selector {
        display: inline-flex;
    }
    .cg-hamburger {
        display: inline-flex;
    }
    .cg-side-fab {
        display: block;
    }
}

/* Respeitar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .cg-drawer,
    .cg-overlay,
    .cg-hamburger,
    .cg-top-nav {
        transition: none !important;
    }
}

/* ===== Estilos do Index.html (apresentacao-projeto-hotel.css) ===== */

:root {
  --primary: #3498db;
  --dark: #0a0a0a;
  --card: rgba(255,255,255,0.08);
  --text: #fff;
  --accent: #00d4ff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --muted: rgba(255,255,255,0.75);
}

.hero{position:relative;height:65vh;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hero canvas{position:absolute;inset:0;width:100%;height:100%}
.hero .content{position:relative;z-index:2;text-align:center;padding:20px;max-width:900px;width:100%;margin:0 auto}
.title{font-size:3rem;font-weight:800;background:linear-gradient(135deg,#3498db,#00d4ff);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-align:center;margin:0 auto 15px auto}
.subtitle{opacity:.85;margin:10px auto 20px auto;text-align:center;max-width:800px}
.cta-bar{display:flex;gap:12px;justify-content:center;margin:20px auto 0 auto;flex-wrap:wrap}
.btn{padding:14px 22px;border-radius:12px;border:none;cursor:pointer;font-weight:700}
.btn-primary{background:linear-gradient(135deg,#10b981,#34d399);color:#fff}
.btn-secondary{background:linear-gradient(135deg,#3498db,#8b5cf6);color:#fff}
.grid{display:grid;gap:20px;margin:30px auto;max-width:1200px;padding:0 20px}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.card{background:var(--card);backdrop-filter:blur(15px);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:24px}
.kpi{font-size:2rem;font-weight:800;color:#10b981}
.kpi-label{opacity:.8;margin-top:6px}
/* Removido - consolidado na definição principal */
.charts{display:grid;grid-template-columns:2fr 1fr;gap:20px;max-width:1200px;margin:0 auto;padding:0 20px}
.list{line-height:1.8;opacity:.9}
a.link{color:#a5b4fc;text-decoration:none}
.footer{max-width:1200px;margin:40px auto;padding:20px;display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.tag{padding:10px 14px;border-radius:10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1)}

/* KPIs avançados */
.grid-kpis{display:grid;gap:16px;margin:10px auto 0;max-width:1200px;padding:0 20px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.kpi-tile{background:var(--card);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(0,0,0,.18) inset}
.kpi-tile .kpi-title{font-weight:700;font-size:.9rem;opacity:.85}
.kpi-tile .kpi-value{font-size:1.8rem;font-weight:900;margin-top:6px;background:linear-gradient(135deg,#60a5fa,#34d399);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.kpi-tile .kpi-delta{font-size:.85rem;margin-top:8px;opacity:.9}
.kpi-tile .delta-up{color:var(--success)}
.kpi-tile .delta-down{color:#fca5a5}

/* Charts avançados */
.charts-advanced{display:grid;gap:20px;max-width:1200px;margin:0 auto 20px;padding:0 20px;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.card-chart{background:var(--card);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:18px}
.card-chart h3{font-weight:800;font-size:1rem;opacity:.9;margin-bottom:8px}

/* Comparativos Antes/Depois */
.comparativos-grid{display:grid;gap:20px;max-width:1200px;margin:10px auto 40px;padding:0 20px;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.comparison-card{background:var(--card);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:18px}
.comparison-card h3{font-weight:800;font-size:1rem;opacity:.9;margin-bottom:10px}
.metric-row{display:grid;grid-template-columns:1fr auto auto auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.metric-row:last-child{border-bottom:none}
.metric-row .label{opacity:.85}
.metric-row .before{opacity:.8}
.metric-row .after{font-weight:800}
.delta-badge{padding:4px 8px;border-radius:999px;font-size:.8rem;font-weight:800}
.delta-badge.positive{background:rgba(16,185,129,.18);color:#34d399;border:1px solid rgba(16,185,129,.3)}
.delta-badge.negative{background:rgba(239,68,68,.15);color:#fca5a5;border:1px solid rgba(239,68,68,.3)}
.delta-badge.neutral{background:rgba(99,102,241,.18);color:#a5b4fc;border:1px solid rgba(99,102,241,.3)}
.delta-bar{height:6px;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden;margin-top:6px}
.delta-bar .fill{height:100%;width:0%}

/* Reveal */
.reveal{opacity:0;transform:translateY(10px);transition:opacity .4s ease, transform .4s ease}
.reveal.visible{opacity:1;transform:translateY(0)}

/* Executive Grid */
.executive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;max-width:1200px;margin:10px auto 30px;padding:0 20px}
.executive-card{background:var(--card);backdrop-filter:blur(15px);border:1px solid rgba(255,255,255,.15);border-radius:18px;padding:24px;position:relative;overflow:hidden}
.executive-card::before{content:'';position:absolute;top:0;left:0;width:100%;height:3px}
.executive-card.primary::before{background:linear-gradient(90deg,#3498db,#60a5fa)}
.executive-card.financial::before{background:linear-gradient(90deg,#10b981,#34d399)}
.executive-card.sustainability::before{background:linear-gradient(90deg,#22c55e,#16a34a)}
.executive-card.guest::before{background:linear-gradient(90deg,#f59e0b,#eab308)}
.executive-card h3{font-size:1.1rem;font-weight:800;margin-bottom:15px;opacity:.95}
.exec-metrics{display:flex;flex-direction:column;gap:12px}
.exec-metric{display:flex;justify-content:space-between;align-items:center}
.metric-value{font-size:1.4rem;font-weight:800;background:linear-gradient(135deg,#60a5fa,#34d399);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.metric-label{opacity:.85;font-size:.9rem}

/* KPI Details */
.kpi-details{font-size:.8rem;opacity:.7;margin-top:4px}

/* Timeline */
.timeline-container{max-width:1000px;margin:0 auto 30px;padding:0 20px;position:relative}
.timeline-container::before{content:'';position:absolute;left:50%;top:20px;bottom:20px;width:2px;background:linear-gradient(180deg,#3498db,#60a5fa);transform:translateX(-50%)}
.timeline-item{display:flex;align-items:center;margin-bottom:40px;position:relative}
.timeline-item:nth-child(odd){flex-direction:row}
.timeline-item:nth-child(even){flex-direction:row-reverse}
.timeline-icon{width:50px;height:50px;border-radius:50%;background:linear-gradient(135deg,#3498db,#60a5fa);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.2rem;z-index:2;position:relative}
.timeline-content{flex:1;background:var(--card);backdrop-filter:blur(15px);border:1px solid rgba(255,255,255,.1);border-radius:15px;padding:20px;margin:0 25px;max-width:400px}
.timeline-content h4{font-weight:700;margin-bottom:8px;color:#60a5fa}
.timeline-content p{opacity:.85;line-height:1.5}

/* Technical Grid */
.technical-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;max-width:1200px;margin:0 auto 30px;padding:0 20px}
.tech-card{background:var(--card);backdrop-filter:blur(15px);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:20px;text-align:center}
.tech-icon{font-size:2.5rem;margin-bottom:15px}
.tech-card h4{font-weight:700;margin-bottom:15px;font-size:1rem}
.tech-card ul{list-style:none;text-align:left}
.tech-card li{padding:5px 0;opacity:.85;font-size:.9rem}
.tech-card li::before{content:'✓';color:#10b981;font-weight:bold;margin-right:8px}

/* Mobile Timeline */
@media(max-width:768px){
.timeline-container::before{left:25px}
.timeline-item{flex-direction:row!important}
.timeline-icon{margin-right:20px}
.timeline-content{margin:0 0 0 10px;max-width:none}
.executive-grid{grid-template-columns:1fr}
.technical-grid{grid-template-columns:1fr}
}

/* ===== Estilos do Demo.html ===== */

/* Header Executivo */
.executive-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.executive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo-section h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.roi-highlight {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.roi-highlight .value {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

/* KPIs Principais */
.main-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, #667eea);
}

.kpi-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.kpi-card.financial { --card-color: #10b981; }
.kpi-card.energy { --card-color: #f59e0b; }
.kpi-card.carbon { --card-color: #34d399; }
.kpi-card.maintenance { --card-color: #8b5cf6; }

.kpi-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--card-color);
}

.kpi-value {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--card-color);
}

.kpi-label {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.kpi-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.9rem;
}

.kpi-detail {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    text-align: center;
}

/* Hotel Overview */
.hotel-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.hotel-map {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.floor-selector {
    display: flex;
    gap: 5px;
}

.floor-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 10px;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.floor-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.building-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.room {
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.room:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.room.optimal { background: linear-gradient(135deg, #10b981, #34d399); }
.room.warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.room.critical { background: linear-gradient(135deg, #ef4444, #f87171); }
.room.maintenance { background: linear-gradient(135deg, #6b7280, #9ca3af); }

/* Analytics Panel */
.analytics-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.analytics-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.chart-container {
    height: 250px;
    margin-top: 20px;
}

/* Real-time Data */
.realtime-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.realtime-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.data-stream {
    background: #1a1a1a;
    color: #00ff41;
    padding: 20px;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 15px;
}

/* Calculadora ROI */
.roi-calculator {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.results-panel {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-value {
    font-weight: 700;
    font-size: 1.2rem;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Floating Action Menu */
.floating-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.menu-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.menu-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.menu-items {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 15px;
}

.menu-items.active {
    display: flex;
}

.menu-item {
    background: white;
    color: #333;
    border: none;
    padding: 15px 20px;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.menu-item:hover {
    transform: translateX(-10px);
    background: #f8fafc;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-kpis { grid-template-columns: repeat(2, 1fr); }
    .hotel-overview { grid-template-columns: 1fr; }
    .calculator-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-kpis { grid-template-columns: 1fr; }
    .building-grid { grid-template-columns: repeat(6, 1fr); }
    .header-top { flex-direction: column; gap: 20px; }
    .logo-section h1 { font-size: 2rem; }
}

/* ===== Estilos das páginas de melhorias e sensoriamento ===== */

/* Tesla Dashboard Styles */
.main-content {
    margin-left: 0;
    padding: 20px;
    max-width: 100%;
    margin: 60px auto 0;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #3498db, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Category Bar */
.category-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #3498db, #00d4ff);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Content Cards */
.content-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.content-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Section Headers */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.section-title-row h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.chip {
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Accordion */
.accordion-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.accordion-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.accordion-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

/* Metrics */
.metric-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.metric-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px;
    min-width: 150px;
    text-align: center;
}

.metric-badge .title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.metric-badge .desc {
    color: #b9c4e6;
    font-size: 0.9rem;
}

/* Charts */
.chart-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

/* Impact Cards */
.impact-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.impact-card h3 {
    color: #34d399;
    margin-bottom: 10px;
}

/* Stats Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-card strong {
    color: #fff;
    margin-bottom: 10px;
    display: block;
}

/* Impact Meter */
.impact-meter {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.impact-meter .fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 0;
    transition: width 0.5s ease;
}

.impact-meter .fill[data-width="78%"] { width: 78%; }
.impact-meter .fill[data-width="65%"] { width: 65%; }
.impact-meter .fill[data-width="58%"] { width: 58%; }
.impact-meter .fill[data-width="62%"] { width: 62%; }
.impact-meter .fill[data-width="70%"] { width: 70%; }
.impact-meter .fill[data-width="44%"] { width: 44%; }
.impact-meter .fill[data-width="52%"] { width: 52%; }
.impact-meter .fill[data-width="60%"] { width: 60%; }
.impact-meter .fill[data-width="48%"] { width: 48%; }
.impact-meter .fill[data-width="40%"] { width: 40%; }
.impact-meter .fill[data-width="36%"] { width: 36%; }
.impact-meter .fill[data-width="50%"] { width: 50%; }
.impact-meter .fill[data-width="30%"] { width: 30%; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .section-title-row {
        justify-content: center;
        text-align: center;
    }

    .chart-section {
        grid-template-columns: 1fr;
    }

    .metric-list {
        justify-content: center;
    }
}

/* ===== Estilos da Página de Melhorias ===== */

/* Grid de melhorias */
.melhorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Cards das melhorias */
.melhoria-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.melhoria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #00d4ff);
}

.melhoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.12);
}

.melhoria-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
}

.melhoria-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.melhoria-description {
    color: #b9c4e6;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.melhoria-impact {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.impact-badge {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal das melhorias */
.melhoria-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.melhoria-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.melhoria-modal-content {
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.melhoria-modal-header {
    background: linear-gradient(135deg, #3498db, #00d4ff);
    color: white;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.melhoria-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.melhoria-modal-subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

.melhoria-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.melhoria-modal-body {
    padding: 30px;
}

.melhoria-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.melhoria-modal-section {
    margin-bottom: 25px;
}

.melhoria-modal-section h3 {
    color: #00d4ff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.melhoria-modal-section ul {
    list-style: none;
    padding: 0;
}

.melhoria-modal-section li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #e9eefc;
}

.melhoria-modal-section li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00d4ff;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #b9c4e6;
    margin-top: 5px;
}

.investment-highlight {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

.investment-highlight .amount {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.investment-highlight .period {
    opacity: 0.9;
    font-size: 1rem;
}

.investment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.investment-item {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.investment-item .value {
    font-size: 1.3rem;
    color: #34d399;
    font-weight: bold;
}

/* Seção de estatísticas */
.stats-section {
    margin: 30px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stats-grid .stat-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stats-grid .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #00d4ff;
    display: block;
    margin-bottom: 5px;
}

.stats-grid .stat-label {
    color: #b9c4e6;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .melhoria-modal-grid {
        grid-template-columns: 1fr;
    }
    .melhorias-grid {
        grid-template-columns: 1fr;
    }
    .investment-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal 3D mobile - mais espaço ao 3D e ângulo otimizado */
    .sensor-modal { width: 98%; height: 95vh; margin: 2.5vh 1%; }
    .modal-body { flex-direction: column; }
    .modal-3d-container { height: 72%; }
    .modal-details { height: 28%; border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .room-3d-scene { perspective: 1000px; }
    .room-3d-container {
        width: 500px;
        height: 350px;
        /* Rotação mais favorável e escala para caber melhor em telas menores */
        transform: translate(-50%, -50%) rotateX(-16deg) rotateY(34deg) scale(0.8);
        animation: none;
    }
}

/* ===== MODAL 3D SENSOR DETAILS ===== */
.sensor-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.sensor-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sensor-modal-overlay.active .sensor-modal {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 24px 32px;
  background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 4px;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.modal-3d-container {
  flex: 2;
  position: relative;
  background: linear-gradient(135deg, #0a0a23 0%, #1a1a3e 100%);
  overflow: hidden;
}

.room-3d-scene {
  width: 100%;
  height: 100%;
  perspective: 1200px;
  perspective-origin: center center;
  position: relative;
}

.room-3d-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 350px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(-25deg) rotateY(45deg);
  animation: rotate3d 30s infinite linear;
}

@keyframes rotate3d {
  0% { transform: translate(-50%, -50%) rotateX(-25deg) rotateY(45deg); }
  25% { transform: translate(-50%, -50%) rotateX(-20deg) rotateY(135deg); }
  50% { transform: translate(-50%, -50%) rotateX(-30deg) rotateY(225deg); }
  75% { transform: translate(-50%, -50%) rotateX(-20deg) rotateY(315deg); }
  100% { transform: translate(-50%, -50%) rotateX(-25deg) rotateY(405deg); }
}

.room-3d-container:hover {
  animation-play-state: paused;
}

/* Faces do quarto 3D - Versão Realística */
.room-face {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.room-floor {
  position: absolute;
  left: 50px;
  top: 175px;
  width: 400px;
  height: 300px;
  background: 
    /* Reflexos da luz */
    radial-gradient(circle at 30% 70%, rgba(200, 180, 150, 0.4) 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(180, 160, 130, 0.3) 0%, transparent 50%),
    /* Padrão de piso de madeira */
    repeating-linear-gradient(
      0deg,
      rgba(139, 115, 85, 0.9) 0px,
      rgba(160, 135, 100, 0.8) 15px,
      rgba(139, 115, 85, 0.9) 30px,
      rgba(120, 100, 75, 0.85) 45px,
      rgba(139, 115, 85, 0.9) 60px
    ),
    /* Base do piso */
    linear-gradient(135deg, 
      rgba(101, 67, 33, 0.95) 0%, 
      rgba(139, 115, 85, 0.9) 25%, 
      rgba(160, 135, 100, 0.85) 50%, 
      rgba(139, 115, 85, 0.9) 75%, 
      rgba(101, 67, 33, 0.95) 100%);
  background-size: 100% 100%, 100% 100%, 100% 20px, 100% 100%;
  transform: rotateX(90deg) translateZ(-120px);
  box-shadow: 
    inset 0 0 40px rgba(0, 0, 0, 0.4),
    inset 0 0 80px rgba(101, 67, 33, 0.3),
    0 0 30px rgba(139, 115, 85, 0.4);
}

.room-ceiling {
  position: absolute;
  left: 50px;
  top: 175px;
  width: 400px;
  height: 300px;
  background: 
    /* Iluminação central */
    radial-gradient(circle at 50% 50%, rgba(255, 255, 240, 0.3) 0%, transparent 40%),
    /* Iluminação das bordas */
    radial-gradient(circle at 20% 20%, rgba(255, 250, 240, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(255, 250, 240, 0.2) 0%, transparent 30%),
    /* Textura do teto */
    linear-gradient(135deg, 
      rgba(250, 250, 250, 0.3) 0%, 
      rgba(240, 240, 240, 0.25) 25%,
      rgba(235, 235, 235, 0.2) 50%, 
      rgba(240, 240, 240, 0.25) 75%,
      rgba(250, 250, 250, 0.3) 100%);
  transform: rotateX(90deg) translateZ(120px);
  box-shadow: 
    inset 0 0 50px rgba(255, 255, 255, 0.2),
    inset 0 0 100px rgba(255, 250, 240, 0.1),
    0 -15px 30px rgba(0, 0, 0, 0.3);
}

.room-wall-front, .room-wall-back, .room-wall-left, .room-wall-right {
  background: 
    /* Iluminação ambiente */
    radial-gradient(circle at 30% 20%, rgba(255, 250, 245, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(245, 240, 235, 0.15) 0%, transparent 40%),
    /* Padrão de papel de parede sutil */
    repeating-linear-gradient(
      45deg,
      rgba(240, 235, 230, 0.1) 0px,
      rgba(245, 240, 235, 0.08) 2px,
      rgba(240, 235, 230, 0.1) 4px
    ),
    /* Textura base da parede */
    linear-gradient(135deg, 
      rgba(245, 240, 235, 0.3) 0%, 
      rgba(235, 230, 225, 0.25) 20%,
      rgba(230, 225, 220, 0.2) 40%, 
      rgba(235, 230, 225, 0.25) 60%,
      rgba(240, 235, 230, 0.28) 80%,
      rgba(245, 240, 235, 0.3) 100%);
  background-size: 100% 100%, 100% 100%, 8px 8px, 100% 100%;
}

/* Rodapé nas paredes */
.room-wall-front::after, .room-wall-back::after, 
.room-wall-left::after, .room-wall-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: 
    linear-gradient(180deg, 
      rgba(180, 170, 160, 0.8) 0%,
      rgba(160, 150, 140, 0.9) 50%,
      rgba(140, 130, 120, 0.95) 100%);
  border-top: 1px solid rgba(120, 110, 100, 0.8);
  box-shadow: 
    0 -2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.room-wall-front {
  position: absolute;
  left: 50px;
  top: 50px;
  width: 400px;
  height: 240px;
  transform: translateZ(150px);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.room-wall-back {
  position: absolute;
  left: 50px;
  top: 50px;
  width: 400px;
  height: 240px;
  transform: translateZ(-150px) rotateY(180deg);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.room-wall-left {
  position: absolute;
  left: 50px;
  top: 50px;
  width: 300px;
  height: 240px;
  transform: rotateY(-90deg) translateZ(200px);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.room-wall-right {
  position: absolute;
  left: 250px;
  top: 50px;
  width: 300px;
  height: 240px;
  transform: rotateY(90deg) translateZ(200px);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
}

/* Mobília 3D Ultra Realística - Estilo Hotel Luxo */
.furniture-3d {
  position: absolute;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 8;
  transform-style: preserve-3d;
  opacity: 0;
  animation: furnitureAppear 1.2s ease-out forwards;
}

/* Animação de aparição dos móveis */
@keyframes furnitureAppear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  60% {
    opacity: 0.8;
    transform: translateY(-5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Efeitos de hover na mobília */
.furniture-3d:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
  z-index: 50;
}

/* Delays escalonados para animação */
.bed-3d { animation-delay: 0.1s; }
.nightstand-3d { animation-delay: 0.2s; }
.lamp-3d { animation-delay: 0.25s; }
.tv-3d { animation-delay: 0.3s; }
.chair-3d { animation-delay: 0.4s; }
.coffee-table-3d { animation-delay: 0.5s; }
.curtains-3d { animation-delay: 0.6s; }
.bathroom-3d { animation-delay: 0.7s; }
.carpet-3d { animation-delay: 0.05s; }

/* Cama Principal com Cabeceira Moderna - Ultra Realista */
.bed-3d {
  position: absolute;
  width: 180px;
  height: 220px;
  background: 
    /* Colchão */
    linear-gradient(to bottom,
      rgba(255, 252, 248, 0.95) 0%,
      rgba(245, 240, 235, 0.9) 10%,
      rgba(240, 235, 230, 0.85) 90%,
      rgba(220, 215, 210, 0.9) 100%
    ),
    /* Textura do tecido */
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      rgba(200, 195, 190, 0.1) 2px,
      transparent 4px
    );
  border: 3px solid rgba(180, 170, 160, 0.9);
  border-radius: 8px;
  transform: translate3d(-100px, 110px, -120px) rotateX(90deg);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 10px 20px rgba(0, 0, 0, 0.3),
    inset 0 -3px 10px rgba(0, 0, 0, 0.2);
}

/* Cabeceira Estofada Ultra Realista */
.bed-3d::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 180px;
  height: 80px;
  background: 
    /* Padrão capitonê */
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 5%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 5%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 5%),
    radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 5%),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 5%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 5%),
    /* Base */
    linear-gradient(135deg, 
      rgba(140, 130, 120, 0.95) 0%,
      rgba(160, 150, 140, 0.9) 30%,
      rgba(180, 170, 160, 0.85) 70%,
      rgba(140, 130, 120, 0.95) 100%);
  border: 3px solid rgba(120, 110, 100, 0.9);
  border-radius: 8px 8px 0 0;
  transform: rotateX(-90deg) translateZ(40px);
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.5),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

/* Travesseiros */
.bed-3d::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 15px;
  width: 40px;
  height: 20px;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.8) 100%);
  border: 1px solid rgba(230, 230, 230, 0.8);
  border-radius: 10px;
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

/* Criado-mudo Moderno Ultra Realista */
.nightstand-3d {
  position: absolute;
  width: 50px;
  height: 45px;
  background: 
    /* Gaveta superior */
    linear-gradient(to bottom,
      rgba(100, 90, 80, 0.95) 0%,
      rgba(100, 90, 80, 0.95) 45%,
      rgba(80, 70, 60, 0.9) 45%,
      rgba(80, 70, 60, 0.9) 48%,
      /* Gaveta inferior */
      rgba(100, 90, 80, 0.95) 48%,
      rgba(100, 90, 80, 0.95) 95%,
      rgba(70, 60, 50, 0.95) 95%
    );
  border: 2px solid rgba(60, 50, 40, 0.9);
  border-radius: 4px;
  transform: translate3d(-210px, 100px, -100px) rotateX(90deg);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

/* Gaveta do criado-mudo */
.nightstand-3d::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 4px;
  right: 4px;
  height: 12px;
  background: 
    linear-gradient(135deg, rgba(70, 60, 50, 0.9) 0%, rgba(90, 80, 70, 0.8) 100%);
  border: 1px solid rgba(50, 40, 30, 0.9);
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Puxador da gaveta */
.nightstand-3d::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 6px;
  height: 4px;
  background: linear-gradient(135deg, rgba(180, 170, 160, 0.9) 0%, rgba(140, 130, 120, 0.8) 100%);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* TV Ultra-moderna na Parede */
.tv-3d {
  position: absolute;
  width: 120px;
  height: 70px;
  background: 
    linear-gradient(135deg,
      rgba(20, 20, 20, 0.98) 0%,
      rgba(30, 30, 30, 0.95) 50%,
      rgba(20, 20, 20, 0.98) 100%
    );
  border: 4px solid rgba(5, 5, 5, 0.98);
  border-radius: 4px;
  transform: translate3d(0px, -50px, 148px);
  box-shadow: 
    0 0 30px rgba(100, 200, 255, 0.3),
    0 10px 25px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Tela da TV */
.tv-3d::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: 
    radial-gradient(ellipse at 60% 40%, 
      rgba(100, 200, 255, 0.3) 0%, 
      rgba(50, 150, 255, 0.2) 30%, 
      rgba(30, 100, 200, 0.1) 60%,
      rgba(20, 20, 30, 0.9) 100%);
  border-radius: 3px;
  box-shadow: inset 0 0 15px rgba(100, 200, 255, 0.2);
}

/* Suporte da TV */
.tv-3d::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 20px;
  height: 6px;
  background: linear-gradient(135deg, rgba(60, 60, 60, 0.9) 0%, rgba(40, 40, 40, 0.8) 100%);
  border-radius: 3px;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Poltrona Executiva */
.chair-3d {
  position: absolute;
  left: 320px;
  top: 280px;
  width: 50px;
  height: 45px;
  background: 
    radial-gradient(ellipse at 40% 30%, rgba(120, 100, 80, 0.9) 0%, transparent 70%),
    linear-gradient(135deg, 
      rgba(140, 120, 100, 0.95) 0%,
      rgba(160, 140, 120, 0.9) 40%,
      rgba(180, 160, 140, 0.85) 70%,
      rgba(140, 120, 100, 0.95) 100%);
  border: 2px solid rgba(100, 80, 60, 0.9);
  border-radius: 12px;
  transform: translate3d(60px, 120px, -120px) rotateX(90deg);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.4),
    inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

/* Encosto da poltrona */
.chair-3d::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 5px;
  right: 5px;
  height: 25px;
  background: 
    linear-gradient(135deg, 
      rgba(130, 110, 90, 0.95) 0%,
      rgba(150, 130, 110, 0.9) 50%,
      rgba(130, 110, 90, 0.95) 100%);
  border: 2px solid rgba(90, 70, 50, 0.9);
  border-radius: 8px 8px 4px 4px;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 2px 6px rgba(255, 255, 255, 0.2);
}

/* Área do Banheiro Premium */
.bathroom-3d {
  position: absolute;
  left: 400px;
  top: 60px;
  width: 60px;
  height: 80px;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(250, 250, 250, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, 
      rgba(240, 240, 240, 0.6) 0%,
      rgba(230, 230, 230, 0.5) 30%,
      rgba(220, 220, 220, 0.4) 70%,
      rgba(240, 240, 240, 0.6) 100%);
  border: 3px solid rgba(200, 200, 200, 0.7);
  border-radius: 10px;
  transform: translate3d(200px, -40px, 145px) rotateY(180deg);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Porta do banheiro */
.bathroom-3d::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 2px;
  width: 25px;
  height: 50px;
  background: 
    linear-gradient(135deg, 
      rgba(200, 190, 180, 0.8) 0%,
      rgba(220, 210, 200, 0.7) 50%,
      rgba(200, 190, 180, 0.8) 100%);
  border: 2px solid rgba(180, 170, 160, 0.8);
  border-radius: 4px;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 5px rgba(255, 255, 255, 0.3);
}

/* Maçaneta */
.bathroom-3d::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 20px;
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, rgba(180, 170, 160, 0.9) 0%, rgba(140, 130, 120, 0.8) 100%);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Mesa de Centro Elegante */
.coffee-table-3d {
  position: absolute;
  left: 240px;
  top: 300px;
  width: 70px;
  height: 40px;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(60, 50, 40, 0.9) 0%, transparent 70%),
    linear-gradient(135deg, 
      rgba(80, 70, 60, 0.95) 0%,
      rgba(100, 90, 80, 0.9) 50%,
      rgba(80, 70, 60, 0.95) 100%);
  border: 2px solid rgba(50, 40, 30, 0.9);
  border-radius: 8px;
  transform: translate3d(-20px, 110px, -130px) rotateX(90deg);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.4),
    inset 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Tampo de vidro da mesa */
.coffee-table-3d::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 2px;
  right: 2px;
  height: 4px;
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.3) 0%,
      rgba(240, 240, 240, 0.2) 50%,
      rgba(255, 255, 255, 0.3) 100%);
  border-radius: 4px;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* Janela com Vista e Cortinas */
.curtains-3d {
  position: absolute;
  width: 120px;
  height: 90px;
  background: 
    /* Vista da janela (céu) */
    linear-gradient(to bottom,
      rgba(135, 206, 235, 0.3) 0%,
      rgba(255, 255, 255, 0.2) 100%
    ),
    /* Moldura da janela */
    linear-gradient(to right,
      rgba(100, 90, 80, 0.95) 0%,
      rgba(100, 90, 80, 0.95) 5%,
      transparent 5%,
      transparent 95%,
      rgba(100, 90, 80, 0.95) 95%,
      rgba(100, 90, 80, 0.95) 100%
    ),
    linear-gradient(to bottom,
      rgba(100, 90, 80, 0.95) 0%,
      rgba(100, 90, 80, 0.95) 5%,
      transparent 5%,
      transparent 95%,
      rgba(100, 90, 80, 0.95) 95%,
      rgba(100, 90, 80, 0.95) 100%
    );
  border: 3px solid rgba(80, 70, 60, 0.9);
  border-radius: 2px;
  transform: translate3d(-195px, -40px, 0px) rotateY(90deg);
  box-shadow: 
    0 0 20px rgba(135, 206, 235, 0.4),
    inset 0 0 15px rgba(255, 255, 255, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Varão da cortina */
.curtains-3d::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -10px;
  right: -10px;
  height: 6px;
  background: linear-gradient(135deg, rgba(100, 90, 80, 0.9) 0%, rgba(80, 70, 60, 0.8) 100%);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Tapete Moderno */
.carpet-3d {
  position: absolute;
  left: 180px;
  top: 240px;
  width: 180px;
  height: 120px;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(100, 90, 80, 0.3) 0%, transparent 80%),
    repeating-linear-gradient(
      45deg,
      rgba(120, 110, 100, 0.4) 0px,
      rgba(140, 130, 120, 0.3) 20px,
      rgba(120, 110, 100, 0.4) 40px
    );
  border: 2px solid rgba(90, 80, 70, 0.5);
  border-radius: 12px;
  transform: translate3d(-150px, 90px, -150px) rotateX(90deg);
  box-shadow: 
    0 5px 20px rgba(0, 0, 0, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Abajur de Mesa Ultra Realista */
.lamp-3d {
  position: absolute;
  width: 25px;
  height: 40px;
  background: 
    /* Base metálica */
    linear-gradient(180deg, 
      transparent 0%,
      transparent 60%,
      rgba(80, 70, 60, 0.95) 60%,
      rgba(60, 50, 40, 0.98) 100%);
  border-radius: 50% 50% 3px 3px;
  transform: translate3d(-210px, 55px, -100px);
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 250, 240, 0.5);
}

/* Cúpula do abajur */
.lamp-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  right: -5px;
  height: 20px;
  background: 
    radial-gradient(ellipse at 50% 80%, rgba(255, 250, 240, 0.9) 0%, rgba(240, 235, 225, 0.8) 100%);
  border: 1px solid rgba(220, 210, 200, 0.6);
  border-radius: 15px 15px 8px 8px;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.2),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Sensores 3D */
/* CSS para equipamentos 3D */
.equipment-3d {
  transition: all 0.3s ease;
  z-index: 10;
}

.equipment-3d:hover {
  transform: scale(1.1);
  z-index: 100;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4) !important;
}

.fancoil-3d:hover {
  border-color: #3498db !important;
  animation: fancoil-spin 2s linear infinite;
}

.electrical-panel-3d:hover {
  border-color: #f39c12 !important;
}

.water-pipe-3d:hover {
  background: linear-gradient(90deg, #3498db, #e74c3c) !important;
}

.machinery-door-3d:hover {
  border-color: #8e44ad !important;
}

.powermeter-3d:hover {
  border-color: #e67e22 !important;
}

@keyframes fancoil-spin {
  0% { transform: scale(1.1) rotateZ(0deg); }
  100% { transform: scale(1.1) rotateZ(360deg); }
}

/* Porta Principal do Quarto Ultra Realista */
.door-3d {
  position: absolute;
  width: 70px;
  height: 120px;
  background: 
    /* Painel central */
    linear-gradient(to right,
      transparent 15%,
      rgba(80, 70, 60, 0.1) 15%,
      rgba(80, 70, 60, 0.1) 40%,
      transparent 40%,
      transparent 60%,
      rgba(80, 70, 60, 0.1) 60%,
      rgba(80, 70, 60, 0.1) 85%,
      transparent 85%
    ),
    /* Textura de madeira */
    repeating-linear-gradient(
      0deg,
      rgba(120, 100, 80, 0.95) 0px,
      rgba(140, 120, 100, 0.9) 3px,
      rgba(130, 110, 90, 0.92) 6px,
      rgba(120, 100, 80, 0.95) 9px
    ),
    /* Base */
    linear-gradient(180deg,
      rgba(100, 80, 60, 0.98) 0%,
      rgba(120, 100, 80, 0.95) 50%,
      rgba(100, 80, 60, 0.98) 100%
    );
  border: 4px solid rgba(80, 60, 40, 0.95);
  border-radius: 2px;
  transform: translate3d(-195px, 0px, -80px) rotateY(90deg);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 2px 5px rgba(255, 255, 255, 0.1),
    inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

/* Maçaneta da Porta */
.door-3d::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 16px;
  background: 
    linear-gradient(135deg,
      rgba(255, 220, 100, 0.9) 0%,
      rgba(220, 180, 60, 0.85) 50%,
      rgba(180, 140, 40, 0.8) 100%
    );
  border: 1px solid rgba(160, 120, 30, 0.9);
  border-radius: 3px;
  transform: translateY(-50%);
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.sensor-3d {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: currentColor;
  box-shadow: 
    0 0 15px currentColor, 
    inset 0 0 8px rgba(255, 255, 255, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3);
  animation: pulse3d 3s infinite ease-in-out;
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 20;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.sensor-3d::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

.sensor-3d:hover {
  transform: scale(1.8);
  animation-play-state: paused;
  z-index: 100;
  box-shadow: 
    0 0 25px currentColor, 
    inset 0 0 12px rgba(255, 255, 255, 0.6),
    0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Estilos específicos por tipo de sensor */
.sensor-3d[data-type="electrical"] {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #3498db;
}

.sensor-3d[data-type="temperature"] {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #e74c3c;
}

.sensor-3d[data-type="mechanical"] {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: #9b59b6;
}

.sensor-3d[data-type="door"] {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #f39c12;
}

.sensor-3d[data-type="air-quality"] {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #2ecc71;
}

.sensor-3d[data-type="gateway"] {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  color: #34495e;
}

@keyframes pulse3d {
  0%, 100% { 
    opacity: 0.8;
    box-shadow: 0 0 12px currentColor, inset 0 0 8px rgba(255, 255, 255, 0.3);
  }
  50% { 
    opacity: 1;
    box-shadow: 0 0 20px currentColor, inset 0 0 12px rgba(255, 255, 255, 0.5);
  }
}

/* Tooltip de Sensor */
.sensor-tooltip {
  position: absolute;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 30, 0.9) 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  min-width: 280px;
  max-width: 400px;
  color: #ffffff;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(255, 255, 255, 0.1);
  z-index: 1000;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.sensor-tooltip.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: currentColor;
  position: relative;
  box-shadow: 0 0 10px currentColor;
}

.tooltip-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tooltip-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.tooltip-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tooltip-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 13px;
}

.metric-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.metric-value {
  color: #ffffff;
  font-weight: 600;
}

.tooltip-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.4);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.tooltip-status.warning {
  background: rgba(241, 196, 15, 0.2);
  border-color: rgba(241, 196, 15, 0.4);
}

.tooltip-status.warning .status-indicator {
  background: #f1c40f;
}

.tooltip-status.error {
  background: rgba(231, 76, 60, 0.2);
  border-color: rgba(231, 76, 60, 0.4);
}

.tooltip-status.error .status-indicator {
  background: #e74c3c;
}

.modal-details {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  padding: 24px;
}

.sensor-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sensor-detail-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.sensor-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sensor-detail-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

.sensor-detail-title {
  color: #ffffff;
  font-weight: 600;
  margin: 0;
  font-size: 16px;
}

.sensor-detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.sensor-metric {
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
}

.sensor-metric-value {
  display: block;
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
}

.sensor-metric-label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-top: 2px;
}

.sensor-detail-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Controls 3D */
.scene-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 100;
}

.control-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.1);
}

/* ===== SENSOR IMPROVEMENTS FOOTER ===== */
.sensor-improvements-footer {
  background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 0;
  margin-top: 48px;
}

.improvements-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.improvements-title {
  text-align: center;
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 32px;
}

.improvements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.improvement-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.improvement-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.improvement-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.improvement-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.improvement-info h4 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.improvement-info .sensor-type {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.improvement-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.improvement-benefits li {
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  padding-left: 24px;
}

.improvement-benefits li:last-child {
  border-bottom: none;
}

.improvement-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00ff88;
  font-weight: bold;
}

/* ==========================================================================
   ULTRA HOTPAGE STYLES - CorGrid Sales Page
   ========================================================================== */

/* Ultra Hero Section */
.ultra-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0f23, #0b1020 30%, #0e1733 70%, #1a2040 100%);
  overflow: hidden;
}

.data-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(26, 188, 156, 0.1) 0%, transparent 50%);
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-badge.primary {
  background: linear-gradient(135deg, var(--accent), #2d7bb3);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge.secondary {
  background: rgba(239, 68, 68, 0.15);
  color: #ff6b6b;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ultra-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 24px 0;
}

.animated-gradient {
  background: linear-gradient(45deg, #3498db, #1abc9c, #9b59b6, #3498db);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.title-metrics {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.metric-chip {
  background: rgba(52, 152, 219, 0.15);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.hero-value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.value-prop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(17, 24, 50, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.value-prop .icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px currentColor);
}

.enhanced-cta {
  display: flex;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.ultra-btn {
  position: relative;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent), #2d7bb3);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.ultra-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.ultra-btn:hover::before {
  left: 100%;
}

.btn-subtitle {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.9;
}

.hero-trust-indicators {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.trust-item i {
  color: #27ae60;
}

/* Hero Dashboard */
.hero-dashboard {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  background: rgba(17, 24, 50, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(15px);
  padding: 24px;
  box-shadow: var(--shadow);
}

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 16px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric-card {
  background: rgba(11, 16, 32, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.metric-card.energy { border-left: 3px solid #f39c12; }
.metric-card.maintenance { border-left: 3px solid #e74c3c; }
.metric-card.roi { border-left: 3px solid #27ae60; }
.metric-card.sensors { border-left: 3px solid #3498db; }

.metric-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.metric-header i {
  font-size: 16px;
  opacity: 0.8;
}

.metric-header span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.current-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
}

.metric-unit {
  font-size: 12px;
  color: var(--muted);
}

.metric-chart {
  height: 60px;
  margin-bottom: 12px;
}

.metric-comparison {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comparison-value {
  font-weight: 700;
  color: #27ae60;
}

.comparison-label {
  font-size: 11px;
  color: var(--muted);
}

.metric-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: #27ae60;
  box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Ultra Modal Styles */
.ultra-modal {
  z-index: 10000;
}

.modal-template {
  display: none;
}

.ultra-calculator {
  max-width: 1200px;
  width: 95vw;
  max-height: 95vh;
  overflow-y: auto;
}

.calculator-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 32px;
  background: rgba(17, 24, 50, 0.6);
  border-radius: var(--radius);
  padding: 4px;
}

.calc-tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calc-tab.active {
  background: var(--accent);
  color: white;
}

.calc-tab-content {
  display: none;
}

.calc-tab-content.active {
  display: block;
}

.calc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-input-group label {
  font-weight: 600;
  color: var(--text);
}

.calc-input-group input,
.calc-input-group select {
  padding: 12px;
  background: rgba(17, 24, 50, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
}

.calc-input-group small {
  color: var(--muted);
  font-size: 12px;
}

.calc-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent), #2d7bb3);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.calc-btn:hover {
  transform: translateY(-2px);
}

/* Ultra Results */
.ultra-results {
  margin-top: 32px;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.summary-card {
  background: rgba(17, 24, 50, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.summary-card.investment { border-left: 3px solid #e74c3c; }
.summary-card.savings { border-left: 3px solid #27ae60; }
.summary-card.payback { border-left: 3px solid #f39c12; }
.summary-card.roi { border-left: 3px solid #9b59b6; }

.summary-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-label {
  font-size: 14px;
  color: var(--muted);
}

.summary-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
}

.summary-value.highlight {
  color: #27ae60;
}

.results-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.chart-container {
  background: rgba(17, 24, 50, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.chart-container h4 {
  margin: 0 0 20px 0;
  color: var(--text);
}

/* Detailed Breakdown */
.detailed-breakdown {
  margin-bottom: 32px;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.breakdown-item {
  background: rgba(17, 24, 50, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.breakdown-item.energy { border-left: 3px solid #f39c12; }
.breakdown-item.maintenance { border-left: 3px solid #e74c3c; }
.breakdown-item.failures { border-left: 3px solid #9b59b6; }
.breakdown-item.comfort { border-left: 3px solid #1abc9c; }
.breakdown-item.efficiency { border-left: 3px solid #3498db; }

.breakdown-icon {
  font-size: 24px;
  opacity: 0.8;
}

.breakdown-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breakdown-category {
  font-weight: 600;
  color: var(--text);
}

.breakdown-percentage {
  color: #27ae60;
  font-weight: 700;
}

.breakdown-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
}

.breakdown-chart {
  width: 80px;
  height: 40px;
}

.results-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2d7bb3);
  border: none;
  color: white;
}

.action-btn.btn-secondary {
  background: rgba(52, 152, 219, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.action-btn.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

/* Pain Points Ultra */
.pain-points-ultra {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-elev) 50%, var(--bg) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  max-width: 1200px;
  margin: 30px auto 16px auto;
  padding: 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text);
  text-align: center;
}

.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.pain-card {
  background: rgba(17, 24, 50, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pain-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.pain-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.pain-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(52, 152, 219, 0.15);
  color: var(--accent);
}

.pain-icon.energy-icon { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.pain-icon.maintenance-icon { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.pain-icon.comfort-icon { background: rgba(26, 188, 156, 0.15); color: #1abc9c; }
.pain-icon.operational-icon { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.pain-icon.sustainability-icon { background: rgba(39, 174, 96, 0.15); color: #27ae60; }
.pain-icon.competitive-icon { background: rgba(230, 126, 34, 0.15); color: #e67e22; }

.pain-cost {
  text-align: right;
}

.cost-value {
  font-size: 24px;
  font-weight: 900;
  color: #e74c3c;
  display: block;
}

.cost-label {
  font-size: 12px;
  color: var(--muted);
}

.pain-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

.pain-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 18px;
  font-weight: 900;
  color: #e74c3c;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.pain-desc {
  color: var(--muted);
  line-height: 1.6;
  margin: 16px 0;
}

.solution-preview {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 8px;
  margin: 20px 0;
}

.solution-icon {
  color: #27ae60;
  font-size: 18px;
}

.solution-text {
  flex: 1;
}

.solution-roi {
  font-size: 12px;
  color: #27ae60;
  font-weight: 600;
  margin-top: 4px;
}

.card-chart {
  height: 120px;
  margin: 20px 0;
  background: rgba(11, 16, 32, 0.6);
  border-radius: 8px;
  padding: 16px;
}

.view-details-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), #2d7bb3);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.view-details-btn:hover {
  transform: translateY(-2px);
}

.total-impact-summary {
  background: rgba(17, 24, 50, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.summary-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.summary-header p {
  color: var(--muted);
  margin: 0 0 32px 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.impact-item {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.impact-item.major {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.3);
}

.impact-item.positive {
  background: rgba(39, 174, 96, 0.1);
  border-color: rgba(39, 174, 96, 0.3);
}

.impact-item.highlight {
  background: rgba(155, 89, 182, 0.1);
  border-color: rgba(155, 89, 182, 0.3);
}

.impact-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

.impact-label {
  font-size: 14px;
  color: var(--muted);
}

/* Success Stories Ultra */
.success-stories-ultra {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg) 50%, var(--bg-elev) 100%);
}

.case-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.case-stat {
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.success-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.success-story-card {
  background: rgba(17, 24, 50, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.success-story-card.flagship {
  border: 2px solid var(--accent);
  background: rgba(52, 152, 219, 0.05);
}

.success-story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.story-header {
  margin-bottom: 24px;
}

.hotel-badge {
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
}

.hotel-logo {
  font-size: 32px;
  margin-bottom: 12px;
}

.hotel-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.hotel-specs {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.implementation-date {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.story-quote blockquote {
  font-style: italic;
  color: var(--text);
  margin: 0 0 16px 0;
  line-height: 1.6;
  font-size: 16px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-info strong {
  color: var(--text);
  display: block;
}

.author-info span {
  color: var(--muted);
  font-size: 14px;
}

.results-dashboard {
  margin: 24px 0;
  background: rgba(11, 16, 32, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.dashboard-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.result-metric {
  text-align: center;
  padding: 12px;
  background: rgba(17, 24, 50, 0.6);
  border-radius: 8px;
}

.metric-icon {
  font-size: 20px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.metric-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.metric-savings {
  font-size: 11px;
  color: #27ae60;
  font-weight: 600;
}

.story-timeline {
  margin: 20px 0;
}

.timeline-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.timeline-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-item {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 8px;
  background: rgba(11, 16, 32, 0.6);
  border-radius: 6px;
}

.timeline-period {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.timeline-result {
  font-size: 14px;
  font-weight: 700;
  color: #27ae60;
}

.view-case-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), #2d7bb3);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.mini-cases {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.mini-case {
  background: rgba(17, 24, 50, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.mini-case-header {
  margin-bottom: 12px;
}

.mini-hotel-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.mini-hotel-specs {
  font-size: 12px;
  color: var(--muted);
}

.mini-results {
  display: flex;
  gap: 12px;
}

.mini-result {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.results-summary-section {
  background: rgba(17, 24, 50, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 60px;
}

.consolidated-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.consolidated-metric {
  text-align: center;
}

.metric-chart-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}

.metric-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-title {
  font-weight: 600;
  color: var(--text);
}

.metric-average {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
}

.metric-range {
  font-size: 12px;
  color: var(--muted);
}

/* Ultra CTA Section */
.ultra-cta-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0f23, #0b1020 30%, #0e1733 70%, #1a2040 100%);
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(26, 188, 156, 0.1) 0%, transparent 50%);
}

.ultra-cta {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-header {
  margin-bottom: 40px;
}

.cta-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

.cta-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 20px 0;
  color: var(--text);
}

.cta-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.urgency-timer {
  margin: 40px 0;
  background: rgba(17, 24, 50, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: inline-block;
}

.timer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.countdown-timer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.timer-unit {
  text-align: center;
}

.timer-number {
  font-size: 32px;
  font-weight: 900;
  color: #e74c3c;
  display: block;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 60px;
}

.timer-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

.timer-separator {
  font-size: 24px;
  font-weight: 900;
  color: var(--muted);
}

.cta-value-prop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(17, 24, 50, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.value-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px currentColor);
}

.value-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.value-text strong {
  color: var(--text);
  font-weight: 700;
}

.value-text span {
  color: var(--muted);
  font-size: 14px;
}

.ultra-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 50px 0;
  align-items: center;
}

.btn-cta {
  position: relative;
  padding: 20px 40px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  max-width: 500px;
  width: 100%;
}

.btn-cta.primary {
  background: linear-gradient(135deg, var(--accent), #2d7bb3);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-cta.primary.pulse {
  animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.btn-cta.secondary {
  background: rgba(52, 152, 219, 0.15);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-main {
  font-size: 18px;
  font-weight: 700;
}

.btn-sub {
  font-size: 14px;
  opacity: 0.9;
}

.btn-value {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.cta-social-proof {
  margin: 40px 0;
}

.social-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.social-stat {
  text-align: center;
}

.social-stat .stat-number {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  display: block;
}

.social-stat .stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.recent-signups {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.signup-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(17, 24, 50, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.signup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.signup-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.signup-hotel {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.signup-time {
  font-size: 11px;
  color: var(--muted);
}

.ultra-guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 50px 0;
}

.guarantee-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(17, 24, 50, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guarantee-icon {
  font-size: 24px;
  color: #27ae60;
  flex-shrink: 0;
}

.guarantee-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guarantee-content strong {
  color: var(--text);
  font-weight: 700;
}

.guarantee-content span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.risk-reversal {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
}

.risk-reversal h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #27ae60;
}

.risk-reversal p {
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.final-urgency {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
}

.urgency-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.urgency-icon {
  font-size: 32px;
  color: #e74c3c;
  flex-shrink: 0;
}

.urgency-text {
  color: var(--text);
  line-height: 1.6;
}

.urgency-action {
  text-align: center;
}

.btn-urgent {
  padding: 16px 32px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: urgentPulse 1.5s infinite;
}

@keyframes urgentPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Trust Signals */
.trust-signals {
  padding: 40px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}

.trust-content {
  text-align: center;
}

.security-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.badge i {
  color: #27ae60;
}

.final-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.final-stat {
  text-align: center;
}

.final-stat .stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  display: block;
}

.final-stat .stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-dashboard {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 40px;
  }
  
  .ultra-hero .hero-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .ultra-hero {
    min-height: auto;
    padding: 60px 0;
  }
  
  .pain-points-grid {
    grid-template-columns: 1fr;
  }
  
  .success-stories-grid {
    grid-template-columns: 1fr;
  }
  
  .results-charts {
    grid-template-columns: 1fr;
  }
  
  .consolidated-metrics {
    grid-template-columns: 1fr 1fr;
  }
  
  .ultra-buttons {
    align-items: stretch;
  }
  
  .btn-cta {
    max-width: none;
  }
  
  .social-stats {
    gap: 20px;
  }
  
  .recent-signups {
    flex-direction: column;
    align-items: center;
  }
  
  .ultra-guarantees {
    grid-template-columns: 1fr;
  }
  
  .final-stats {
    gap: 30px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .countdown-timer {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .hero-value-props {
    grid-template-columns: 1fr;
  }
  
  .cta-value-prop {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .consolidated-metrics {
    grid-template-columns: 1fr;
  }
  
  .case-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .pain-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .urgency-content {
    flex-direction: column;
    text-align: center;
  }
  
  .guarantee-item {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================
   Demo Schedule Page Styles
   Page: agendar_demo.html
   Namespace: .demo-* and related blocks
   ============================= */
.demo-page { background: linear-gradient(135deg, var(--bg), #0e1733 100%); min-height: 100vh; padding: 20px 0; }
.demo-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.demo-header { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 16px; padding: 40px; margin-bottom: 30px; text-align: center; box-shadow: var(--shadow); }
.demo-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; background: linear-gradient(135deg, var(--accent), #00d4ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; }
.demo-header p { font-size: 1.1rem; color: var(--muted); max-width: 800px; margin: 0 auto 30px; line-height: 1.6; }
.impact-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.stat-item { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; transition: all 0.3s ease; }
.stat-item:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.stat-number { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), #00d4ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: block; margin-bottom: 8px; }
.stat-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.demo-main-content { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 40px; }
.booking-form { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); }
.form-section { margin-bottom: 30px; }
.form-section h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 15px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; color: var(--text); transition: all 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1); background: rgba(255,255,255,0.08); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.datetime-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.time-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.time-slot { padding: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; cursor: pointer; transition: all 0.3s ease; font-weight: 600; color: var(--text); }
.time-slot:hover { border-color: var(--accent); background: rgba(52, 152, 219, 0.1); transform: translateY(-2px); }
.time-slot.selected { border-color: var(--accent-2); background: rgba(26, 188, 156, 0.15); color: var(--accent-2); }
.time-slot.unavailable { opacity: 0.5; cursor: not-allowed; background: rgba(255,255,255,0.02); }
.participants-section { margin-top: 20px; }
.participant-item { display: flex; gap: 15px; margin-bottom: 15px; padding: 15px; background: rgba(52, 152, 219, 0.05); border: 1px solid rgba(52, 152, 219, 0.1); border-radius: var(--radius); }
.participant-item input { margin-bottom: 0; }
.add-participant { background: none; border: 2px dashed var(--accent); color: var(--accent); padding: 12px 20px; border-radius: var(--radius); cursor: pointer; font-weight: 600; transition: all 0.3s ease; width: 100%; }
.add-participant:hover { background: rgba(52, 152, 219, 0.1); transform: translateY(-1px); }
.submit-btn { width: 100%; padding: 18px; background: linear-gradient(135deg, var(--accent-2), #2dd4bf); color: white; border: none; border-radius: var(--radius); font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 8px 25px rgba(26, 188, 156, 0.3); }
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(26, 188, 156, 0.4); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.demo-info { display: flex; flex-direction: column; gap: 30px; }
.info-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); transition: all 0.3s ease; }
.info-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.info-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.credibility-section { margin: 40px 0; }
.trust-indicators { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 15px; padding: 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.3s ease; }
.trust-item:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.trust-item i { font-size: 2rem; color: var(--accent); }
.trust-content strong { display: block; color: var(--text); font-weight: 700; margin-bottom: 5px; }
.trust-content span { color: var(--muted); font-size: 0.9rem; }
.demo-selection-section { margin: 40px 0; }
.demo-selection-section h2 { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 15px; color: var(--text); }
.demo-selection-section p { text-align: center; color: var(--muted); margin-bottom: 30px; }
.demo-types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.demo-type-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 16px; padding: 30px; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.demo-type-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), #00d4ff); }
.demo-type-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-5px); box-shadow: var(--shadow); }
.demo-type-card.selected { border-color: var(--accent-2); background: rgba(26, 188, 156, 0.1); }
.demo-badge { display: inline-block; padding: 6px 12px; background: var(--accent); color: white; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 15px; }
.demo-badge.popular { background: linear-gradient(135deg, #ef4444, #f97316); }
.demo-type-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 15px; }
.demo-duration { color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.demo-benefits { margin-bottom: 20px; }
.benefit-item { padding: 8px 0; color: var(--text); font-size: 0.9rem; }
.ideal-for { padding: 15px; background: rgba(255,255,255,0.05); border-radius: var(--radius); border-left: 3px solid var(--accent); font-size: 0.9rem; color: var(--muted); }
.ideal-for strong { color: var(--text); }
.success-stories-section { margin: 40px 0; }
.success-stories-section h2 { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 30px; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 10px; }
.stories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 25px; }
.story-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 16px; padding: 25px; transition: all 0.3s ease; }
.story-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.story-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.hotel-info strong { color: var(--text); display: block; font-weight: 700; margin-bottom: 5px; }
.hotel-info span { color: var(--muted); font-size: 0.9rem; }
.story-metric { background: linear-gradient(135deg, var(--accent-2), #2dd4bf); color: white; padding: 8px 15px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; }
.story-card blockquote { color: var(--text); font-style: italic; margin: 20px 0; line-height: 1.6; position: relative; padding-left: 20px; }
.story-card blockquote::before { content: '"'; position: absolute; left: 0; top: -5px; font-size: 2rem; color: var(--accent); }
.story-author { color: var(--muted); font-size: 0.9rem; text-align: right; }
.urgency-section { margin: 40px 0; text-align: center; }
.urgency-content { background: linear-gradient(135deg, #ef4444, #f97316); color: white; padding: 30px; border-radius: 16px; position: relative; overflow: hidden; }
.urgency-content::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent); animation: shine 3s infinite; }
@keyframes shine { 0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); } 100% { transform: translateX(100%) translateY(100%) rotate(45deg); } }
.urgency-content h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; }
.urgency-content p { font-size: 1.1rem; margin-bottom: 25px; opacity: 0.95; }
.urgency-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.urgency-item { text-align: center; }
.urgency-number, .urgency-value { font-size: 2rem; font-weight: 800; display: block; margin-bottom: 5px; }
.urgency-label { font-size: 0.9rem; opacity: 0.9; }
.success-message { display: none; background: rgba(26, 188, 156, 0.1); border: 2px solid var(--accent-2); border-radius: 16px; padding: 40px; text-align: center; color: var(--accent-2); }
.success-message h3 { font-size: 2rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.success-message .demo-details { background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 20px; border-radius: var(--radius); margin: 20px 0; text-align: left; color: var(--text); }
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h2 { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.form-header p { color: var(--muted); margin-bottom: 20px; }
.form-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 30px; }
.form-benefit { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(255,255,255,0.03); border-radius: var(--radius); font-size: 0.9rem; }
.form-benefit i { color: var(--accent-2); }
.form-security { margin-top: 20px; text-align: center; }
.security-items { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.security-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.security-item i { color: var(--accent-2); }
.guarantees-list, .demo-agenda { list-style: none; padding: 0; }
.guarantees-list li, .demo-agenda li { padding: 15px 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 15px; }
.guarantees-list li:last-child, .demo-agenda li:last-child { border-bottom: none; }
.guarantee-icon { font-size: 1.5rem; margin-top: 2px; }
.guarantees-list li strong { color: var(--text); display: block; margin-bottom: 5px; }
.guarantees-list li span { color: var(--muted); font-size: 0.9rem; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.result-item { text-align: center; padding: 15px; background: rgba(255,255,255,0.03); border-radius: var(--radius); }
.result-number { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; margin-bottom: 5px; }
.result-label { color: var(--muted); font-size: 0.9rem; }
.tech-specs { background: rgba(255,255,255,0.03); border: 1px solid var(--border); padding: 20px; border-radius: var(--radius); margin-top: 20px; }
.tech-specs h4 { font-weight: 700; margin-bottom: 15px; color: var(--text); }
.spec-item { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; }
.spec-label { color: var(--muted); }
.spec-value { font-weight: 600; color: var(--text); }
@media (max-width: 768px) { .demo-main-content { grid-template-columns: 1fr; gap: 30px; } .form-grid, .datetime-grid { grid-template-columns: 1fr; } .impact-stats { grid-template-columns: repeat(2, 1fr); } .time-slots { grid-template-columns: repeat(2, 1fr); } .demo-header h1 { font-size: 2rem; } .demo-container { padding: 0 15px; } .trust-indicators { grid-template-columns: 1fr; } .urgency-stats { grid-template-columns: repeat(2, 1fr); } .form-benefits { grid-template-columns: 1fr; } .results-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .impact-stats { grid-template-columns: 1fr; } .time-slots { grid-template-columns: 1fr; } .urgency-stats { grid-template-columns: 1fr; } .security-items { flex-direction: column; gap: 10px; } }

/* ===== Estilos 3D Casa de Máquinas - Equipamentos Técnicos ===== */

/* Piso técnico gradeado */
.floor-grating-3d {
  width: 350px;
  height: 250px;
  background: 
    repeating-linear-gradient(
      0deg,
      #2c3e50 0px,
      #2c3e50 3px,
      #34495e 3px,
      #34495e 6px
    ),
    repeating-linear-gradient(
      90deg,
      #2c3e50 0px,
      #2c3e50 3px,
      #34495e 3px,
      #34495e 6px
    );
  background-size: 6px 6px;
  border: 2px solid #1a252f;
  border-radius: 4px;
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.3),
    0 5px 15px rgba(0,0,0,0.4);
  transform: translate3d(-175px, 90px, -120px) rotateX(90deg);
  opacity: 0.9;
}

/* Fancoil - Unidade de climatização principal */
.fancoil-3d {
  width: 80px;
  height: 60px;
  background: 
    linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 50%, #95a5a6 100%);
  border: 3px solid #34495e;
  border-radius: 8px;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.2);
  transform: translate3d(-100px, 20px, -80px);
  position: relative;
}

.fancoil-3d::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 8px;
  background: 
    repeating-linear-gradient(
      90deg,
      #3498db 0px,
      #3498db 4px,
      #2980b9 4px,
      #2980b9 8px
    );
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.fancoil-3d::after {
  content: 'FCU';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: bold;
  color: #2c3e50;
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

/* Quadro elétrico principal */
.electrical-panel-3d {
  width: 60px;
  height: 80px;
  background: 
    linear-gradient(45deg, #95a5a6 0%, #7f8c8d 50%, #5d6d7e 100%);
  border: 2px solid #2c3e50;
  border-radius: 6px;
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.4),
    inset 0 1px 3px rgba(255,255,255,0.2);
  transform: translate3d(130px, -20px, 140px);
  position: relative;
}

.electrical-panel-3d::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 12px;
  background: 
    linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.electrical-panel-3d::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 15px;
  width: 30px;
  height: 40px;
  background: 
    repeating-linear-gradient(
      0deg,
      #e74c3c 0px,
      #e74c3c 6px,
      #27ae60 6px,
      #27ae60 12px,
      #f1c40f 12px,
      #f1c40f 18px
    );
  border: 1px solid #2c3e50;
  border-radius: 2px;
}

/* Contatoras elétricas */
.contactor-3d {
  width: 25px;
  height: 35px;
  background: 
    linear-gradient(45deg, #34495e 0%, #2c3e50 100%);
  border: 2px solid #1a252f;
  border-radius: 4px;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(255,255,255,0.1);
  position: relative;
}

.contactor-1 {
  transform: translate3d(150px, -10px, 135px);
}

.contactor-2 {
  transform: translate3d(180px, -10px, 135px);
}

.contactor-3d::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 8px;
  background: 
    linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.contactor-3d::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #f1c40f;
  border-radius: 50%;
  box-shadow: 0 0 4px #f39c12;
}

/* Tubulação principal de água gelada */
.water-pipe-main-3d {
  width: 250px;
  height: 12px;
  background: 
    linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1f77b5 100%);
  border: 2px solid #1a252f;
  border-radius: 6px;
  box-shadow: 
    0 3px 6px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(255,255,255,0.2);
  transform: translate3d(-80px, -40px, 130px);
  position: relative;
}

.water-pipe-main-3d::before {
  content: 'SUPPLY';
  position: absolute;
  top: -15px;
  left: 10px;
  font-size: 6px;
  font-weight: bold;
  color: #2c3e50;
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

/* Tubulação de retorno */
.water-pipe-return-3d {
  width: 250px;
  height: 10px;
  background: 
    linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
  border: 2px solid #1a252f;
  border-radius: 5px;
  box-shadow: 
    0 3px 6px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(255,255,255,0.2);
  transform: translate3d(-80px, -25px, 120px);
  position: relative;
}

.water-pipe-return-3d::before {
  content: 'RETURN';
  position: absolute;
  top: -13px;
  left: 10px;
  font-size: 6px;
  font-weight: bold;
  color: #2c3e50;
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

/* Válvulas de controle */
.valve-3d {
  width: 20px;
  height: 20px;
  background: 
    radial-gradient(circle, #9b59b6 0%, #8e44ad  100%);
  border: 2px solid #2c3e50;
  border-radius: 50%;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(255,255,255,0.2);
  position: relative;
}

.valve-supply {
  transform: translate3d(-20px, -30px, 142px);
}

.valve-return {
  transform: translate3d(-20px, -15px, 132px);
}

.valve-3d::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 2px;
  background: #ecf0f1;
  border-radius: 1px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

/* Medidor de energia (powermeter) */
.powermeter-3d {
  width: 40px;
  height: 30px;
  background: 
    linear-gradient(45deg, #2c3e50 0%, #34495e 100%);
  border: 2px solid #e67e22;
  border-radius: 4px;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(255,255,255,0.1);
  transform: translate3d(120px, 40px, 120px);
  position: relative;
}

.powermeter-3d::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 8px;
  background: 
    linear-gradient(90deg, #e67e22 0%, #f39c12 100%);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.powermeter-3d::after {
  content: 'kWh';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  font-weight: bold;
  color: #ecf0f1;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

/* Bandeja de cabos elétricos */
.cable-tray-3d {
  width: 200px;
  height: 8px;
  background: 
    repeating-linear-gradient(
      90deg,
      #7f8c8d 0px,
      #7f8c8d 8px,
      #95a5a6 8px,
      #95a5a6 16px
    );
  border: 1px solid #2c3e50;
  border-radius: 2px;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 1px 1px rgba(255,255,255,0.1);
  transform: translate3d(-60px, -70px, 145px);
}

/* Porta da casa de máquinas */
.machinery-door-3d {
  width: 12px;
  height: 80px;
  background: 
    linear-gradient(45deg, #8e44ad 0%, #9b59b6 100%);
  border: 2px solid #2c3e50;
  border-radius: 0 6px 6px 0;
  box-shadow: 
    2px 0 8px rgba(0,0,0,0.4),
    inset 0 1px 2px rgba(255,255,255,0.1);
  transform: translate3d(-190px, 10px, 100px) rotateY(90deg);
  position: relative;
}

.machinery-door-3d::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #f1c40f;
  border-radius: 50%;
  box-shadow: 0 0 3px #f39c12;
}

/* Termostato de controle */
.thermostat-3d {
  width: 30px;
  height: 25px;
  background: 
    linear-gradient(45deg, #ecf0f1 0%, #bdc3c7 100%);
  border: 2px solid #34495e;
  border-radius: 4px;
  box-shadow: 
    0 3px 6px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(255,255,255,0.2);
  transform: translate3d(20px, -60px, 140px);
  position: relative;
}

.thermostat-3d::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 6px;
  background: 
    linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.thermostat-3d::after {
  content: '°C';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  font-weight: bold;
  color: #2c3e50;
}

/* Manômetros de pressão */
.pressure-gauge-3d {
  width: 18px;
  height: 18px;
  background: 
    radial-gradient(circle, #ecf0f1 0%, #bdc3c7 70%, #95a5a6 100%);
  border: 2px solid #2c3e50;
  border-radius: 50%;
  box-shadow: 
    0 3px 6px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(255,255,255,0.2);
  position: relative;
}

.gauge-supply {
  transform: translate3d(0px, -25px, 148px);
}

.gauge-return {
  transform: translate3d(20px, -25px, 148px);
}

.pressure-gauge-3d::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 8px;
  height: 1px;
  background: #e74c3c;
  border-radius: 1px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.pressure-gauge-3d::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 3px;
  background: #2c3e50;
  border-radius: 50%;
}

/* Animações específicas para equipamentos */
@keyframes equipment-running {
  0%, 100% { 
    box-shadow: 
      0 8px 16px rgba(0,0,0,0.3),
      inset 0 2px 4px rgba(255,255,255,0.2),
      0 0 10px rgba(52, 152, 219, 0.3);
  }
  50% { 
    box-shadow: 
      0 8px 16px rgba(0,0,0,0.3),
      inset 0 2px 4px rgba(255,255,255,0.2),
      0 0 15px rgba(52, 152, 219, 0.6);
  }
}

@keyframes pressure-pulse {
  0%, 100% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.1);
  }
}

/* Aplicar animações */
.fancoil-3d {
  animation: equipment-running 2s ease-in-out infinite;
}

.pressure-gauge-3d {
  animation: pressure-pulse 3s ease-in-out infinite;
}

/* Container e estrutura 3D */
.room-3d-container {
  position: relative;
  width: 500px;
  height: 400px;
  margin: 0 auto;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(-25deg) rotateY(45deg);
  animation: rotate3d 30s infinite linear;
}

.room-face {
  position: absolute;
  opacity: 0.7;
  border: 1px solid rgba(255,255,255,0.1);
}

.room-floor {
  background: linear-gradient(45deg, #2c3e50 0%, #34495e 100%);
}

.room-ceiling {
  background: linear-gradient(45deg, #ecf0f1 0%, #bdc3c7 100%);
}

.room-wall-front, .room-wall-back, .room-wall-left, .room-wall-right {
  background: linear-gradient(45deg, #95a5a6 0%, #7f8c8d 100%);
}

@keyframes rotate3d {
  0% { transform: translate(-50%, -50%) rotateX(-25deg) rotateY(45deg); }
  25% { transform: translate(-50%, -50%) rotateX(-25deg) rotateY(135deg); }
  50% { transform: translate(-50%, -50%) rotateX(-25deg) rotateY(225deg); }
  75% { transform: translate(-50%, -50%) rotateX(-25deg) rotateY(315deg); }
  100% { transform: translate(-50%, -50%) rotateX(-25deg) rotateY(405deg); }
}

/* Definições base para elementos 3D */
.furniture-3d, .equipment-3d, .sensor-3d {
  position: absolute;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 50;
}

/* Sensores 3D */
.sensor-3d {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 8px;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(0,0,0,0.5);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
  background: radial-gradient(circle, #3498db 0%, #2980b9 100%);
}

/* ===== MÓVEIS 3D ULTRA REALISTAS PARA QUARTO DE HOTEL ===== */

/* Cama King Size Premium com cabeceira estofada */
.bed-3d {
  width: 120px;
  height: 80px;
  background: 
    linear-gradient(135deg, #e8d5b7 0%, #d4c4a8 50%, #c2b79a 100%);
  border: 2px solid #8b7355;
  border-radius: 8px;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.2);
  transform: translate3d(-120px, 80px, -140px) rotateX(90deg);
  position: relative;
}

.bed-3d::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 10px;
  right: 10px;
  height: 25px;
  background: 
    linear-gradient(135deg, #8b7355 0%, #6d5a42 100%);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.bed-3d::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background: 
    repeating-linear-gradient(
      0deg,
      #f8f9fa 0px,
      #f8f9fa 4px,
      #e9ecef 4px,
      #e9ecef 8px
    );
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

/* Criado-mudo em madeira nobre com gaveta */
.nightstand-3d {
  width: 40px;
  height: 30px;
  background: 
    linear-gradient(135deg, #8b7355 0%, #6d5a42 50%, #5a4736 100%);
  border: 2px solid #4a3a2a;
  border-radius: 4px;
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.3),
    inset 0 1px 3px rgba(255,255,255,0.2);
  transform: translate3d(-160px, 80px, -110px) rotateX(90deg);
  position: relative;
}

.nightstand-3d::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 5px;
  right: 5px;
  height: 12px;
  background: 
    linear-gradient(90deg, #6d5a42 0%, #5a4736 100%);
  border: 1px solid #4a3a2a;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nightstand-3d::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 8px;
  width: 4px;
  height: 2px;
  background: #f1c40f;
  border-radius: 1px;
  box-shadow: 0 0 2px #f39c12;
}

/* Abajur de mesa premium com base metálica */
.lamp-3d {
  width: 20px;
  height: 25px;
  background: 
    radial-gradient(ellipse at top, #ffd700 0%, #f39c12 70%, #e67e22 100%);
  border: 2px solid #d35400;
  border-radius: 50% 50% 20% 20%;
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.3),
    0 0 15px rgba(255, 215, 0, 0.4);
  transform: translate3d(-210px, 55px, -100px);
  position: relative;
}

.lamp-3d::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 8px;
  background: 
    linear-gradient(45deg, #7f8c8d 0%, #95a5a6 100%);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Smart TV 4K com suporte e tela reflexiva */
.tv-3d {
  width: 60px;
  height: 40px;
  background: 
    linear-gradient(135deg, #2c3e50 0%, #1a252f 50%, #141e28 100%);
  border: 3px solid #34495e;
  border-radius: 6px;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.4),
    inset 0 1px 2px rgba(255,255,255,0.1);
  transform: translate3d(0px, -50px, 148px);
  position: relative;
}

.tv-3d::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 8px;
  background: 
    linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
  border-radius: 3px;
  border: 1px solid #34495e;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.tv-3d::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 5px;
  background: 
    linear-gradient(45deg, #7f8c8d 0%, #95a5a6 100%);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Poltrona executiva em couro premium */
.chair-3d {
  width: 50px;
  height: 45px;
  background: 
    linear-gradient(135deg, #8b4513 0%, #6b3410 50%, #5a2d0c 100%);
  border: 2px solid #4a2409;
  border-radius: 8px;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.1);
  transform: translate3d(60px, 120px, -120px) rotateX(90deg);
  position: relative;
}

.chair-3d::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 8px;
  right: 8px;
  height: 15px;
  background: 
    linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
  border-radius: 8px 8px 0 0;
  border: 1px solid #6b3410;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.chair-3d::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 8px;
  background: 
    radial-gradient(ellipse, #7f8c8d 0%, #95a5a6 100%);
  border-radius: 50%;
  opacity: 0.7;
}

/* Mesa de centro com tampo de vidro temperado */
.coffee-table-3d {
  width: 70px;
  height: 40px;
  background: 
    linear-gradient(135deg, rgba(70, 130, 180, 0.9) 0%, rgba(54, 100, 139, 0.9) 100%);
  border: 2px solid #4682b4;
  border-radius: 8px;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.3),
    inset 0 2px 8px rgba(255,255,255,0.3),
    0 0 20px rgba(70, 130, 180, 0.2);
  transform: translate3d(20px, 100px, -20px) rotateX(90deg);
  position: relative;
}

.coffee-table-3d::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 10px;
  right: 10px;
  height: 6px;
  background: 
    linear-gradient(45deg, #8b7355 0%, #6d5a42 100%);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Cortinas blackout automáticas com janela */
.curtains-3d {
  width: 15px;
  height: 80px;
  background: 
    linear-gradient(0deg, #87ceeb 0%, #6db3d4 50%, #5a9bc4 100%);
  border: 2px solid #4682b4;
  border-radius: 4px;
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.2);
  transform: translate3d(-195px, -40px, 0px) rotateY(90deg);
  position: relative;
}

.curtains-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 8px,
      rgba(255,255,255,0.1) 8px,
      rgba(255,255,255,0.1) 10px
    );
  border-radius: 4px;
}

.curtains-3d::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 2px;
  right: 2px;
  height: 8px;
  background: 
    linear-gradient(90deg, #f1c40f 0%, #f39c12 100%);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Suíte de banheiro premium */
.bathroom-3d {
  width: 60px;
  height: 50px;
  background: 
    linear-gradient(135deg, #e6e6fa 0%, #d1d1e0 50%, #bdbdcc 100%);
  border: 2px solid #9999aa;
  border-radius: 8px;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.3);
  transform: translate3d(200px, -40px, 145px);
  position: relative;
}

.bathroom-3d::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 15px;
  background: 
    linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.bathroom-3d::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #f1c40f;
  border-radius: 50%;
  box-shadow: 0 0 4px #f39c12;
}

/* Tapete persa artesanal premium */
.carpet-3d {
  width: 100px;
  height: 70px;
  background: 
    linear-gradient(45deg, #8b0000 0%, #660000 25%, #8b0000 50%, #660000 75%, #8b0000 100%);
  border: 2px solid #440000;
  border-radius: 6px;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.4),
    inset 0 1px 2px rgba(255,255,255,0.1);
  transform: translate3d(-90px, 100px, -150px) rotateX(90deg);
  position: relative;
}

.carpet-3d::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 8px,
      rgba(255,215,0,0.3) 8px,
      rgba(255,215,0,0.3) 16px
    );
  border-radius: 4px;
}

/* Porta principal do quarto com painel */
.door-3d {
  width: 12px;
  height: 80px;
  background: 
    linear-gradient(0deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
  border: 2px solid #5a2d0c;
  border-radius: 0 6px 6px 0;
  box-shadow: 
    2px 0 8px rgba(0,0,0,0.4),
    inset 0 1px 2px rgba(255,255,255,0.1);
  transform: translate3d(-195px, 0px, -80px) rotateY(90deg);
  position: relative;
}

.door-3d::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 2px;
  right: 2px;
  height: 25px;
  background: 
    linear-gradient(0deg, #6d4028 0%, #8b4513 100%);
  border: 1px solid #5a2d0c;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.door-3d::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
  width: 3px;
  height: 6px;
  background: #f1c40f;
  border-radius: 50%;
  box-shadow: 0 0 3px #f39c12;
}

/* Animações específicas para móveis do quarto */
@keyframes lamp-glow {
  0%, 100% { 
    box-shadow: 
      0 6px 12px rgba(0,0,0,0.3),
      0 0 15px rgba(255, 215, 0, 0.4);
  }
  50% { 
    box-shadow: 
      0 6px 12px rgba(0,0,0,0.3),
      0 0 25px rgba(255, 215, 0, 0.7);
  }
}

@keyframes tv-screen {
  0%, 100% { 
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  }
  50% { 
    box-shadow: inset 0 0 15px rgba(0,150,255,0.2);
  }
}

@keyframes carpet-shimmer {
  0%, 100% { 
    background: linear-gradient(45deg, #8b0000 0%, #660000 25%, #8b0000 50%, #660000 75%, #8b0000 100%);
  }
  50% { 
    background: linear-gradient(45deg, #a00000 0%, #770000 25%, #a00000 50%, #770000 75%, #a00000 100%);
  }
}

/* Aplicar animações aos móveis */
.lamp-3d {
  animation: lamp-glow 3s ease-in-out infinite;
}

.tv-3d::before {
  animation: tv-screen 4s ease-in-out infinite;
}

.carpet-3d {
  animation: carpet-shimmer 6s ease-in-out infinite;
}

/* Tooltips específicos para equipamentos */
.furniture-3d:hover, .equipment-3d:hover {
  filter: brightness(1.1);
}

/* ===== BARRA LATERAL INTERATIVA ===== */

/* Estado vazio da barra lateral */
.sidebar-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 20px;
}

.sidebar-empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.sidebar-empty-state h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-empty-state p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 250px;
}

/* Detalhes do item selecionado */
.sidebar-item-details {
  color: rgba(255, 255, 255, 0.9);
  height: 100%;
  overflow-y: auto;
}

.sidebar-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.sidebar-item-info {
  flex: 1;
}

.sidebar-item-category {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.sidebar-item-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.sidebar-item-status {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-item-status.success {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.sidebar-item-status.warning {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.3);
}

.sidebar-item-status.error {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.sidebar-item-status .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 10px;
  animation: pulse 2s infinite;
}

.sidebar-item-metrics h4,
.sidebar-item-description h4,
.sidebar-item-specs h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.metrics-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.metrics-grid .metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metrics-grid .metric-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.metrics-grid .metric-value {
  color: white;
  font-weight: 500;
  font-size: 13px;
}

.sidebar-item-description {
  margin-bottom: 24px;
}

.sidebar-item-description p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-item-specs {
  margin-bottom: 24px;
}

.specs-list {
  display: grid;
  gap: 6px;
}

.spec-item {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.spec-item strong {
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-item-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.sidebar-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-btn.primary {
  background: #3498db;
  color: white;
}

.sidebar-btn.primary:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.sidebar-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* ===== ESTADOS SELECIONADOS ===== */

/* Sensores selecionados */
.sensor-3d.selected {
  transform: scale(1.4) !important;
  filter: brightness(1.5) drop-shadow(0 0 15px currentColor) !important;
  z-index: 100 !important;
  animation: selected-pulse 2s ease-in-out infinite;
}

/* Móveis e equipamentos selecionados */
.furniture-3d.selected,
.equipment-3d.selected {
  filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) !important;
  transform: scale(1.1) !important;
  z-index: 100 !important;
  animation: selected-glow 2s ease-in-out infinite;
}

@keyframes selected-pulse {
  0%, 100% {
    box-shadow: 0 0 15px currentColor;
  }
  50% {
    box-shadow: 0 0 25px currentColor;
  }
}

@keyframes selected-glow {
  0%, 100% {
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
  }
  50% {
    filter: brightness(1.5) drop-shadow(0 0 30px rgba(255, 255, 255, 1));
  }
}

/* Cursor pointer para todos os elementos clicáveis */
.sensor-3d,
.furniture-3d,
.equipment-3d {
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Sistema de Tooltips Estável */
.sensor-tooltip {
  position: fixed;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 8px;
  padding: 12px;
  max-width: 320px;
  min-width: 250px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.sensor-tooltip.active {
  opacity: 1;
  visibility: visible;
}

.sensor-tooltip .tooltip-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sensor-tooltip .tooltip-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.sensor-tooltip .tooltip-title {
  font-weight: bold;
  font-size: 14px;
  margin: 0;
}

.sensor-tooltip .tooltip-body {
  line-height: 1.4;
}

.sensor-tooltip .tooltip-metrics {
  margin-bottom: 8px;
}

.sensor-tooltip .metric-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
}

.sensor-tooltip .metric-label {
  color: rgba(255, 255, 255, 0.7);
}

.sensor-tooltip .metric-value {
  color: white;
  font-weight: 500;
}

.sensor-tooltip .tooltip-status {
  display: flex;
  align-items: center;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

.sensor-tooltip .tooltip-status.success {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.sensor-tooltip .tooltip-status.warning {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.3);
}

.sensor-tooltip .tooltip-status.error {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.sensor-tooltip .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
