/* ==========================================================================
   PÁGINAS DE PRODUTO — Hero/Hotspots, Fluxo de Ar, Specs, Downloads, CTA
   ========================================================================== */

.product-hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.product-hero .blueprint-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }

.hero-copy .badge { margin-bottom: 18px; }
.hero-copy h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); margin-bottom: 14px; }
.hero-copy p { font-size: 1.05rem; max-width: 460px; margin-bottom: 28px; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .8rem; color: var(--color-text-muted); margin-bottom: 18px; transition: color var(--transition-base); }
.back-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.back-link:hover { color: var(--color-brand); }

/* --- Pilar 1: Hotspots --- */
.hotspot-stage {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 38%, var(--badge-blue-bg), var(--color-bg-alt) 75%);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-elevated);
}
.hotspot-stage img { width: 100%; height: 100%; object-fit: contain; }
.hotspot-stage .media-placeholder {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: .72rem; text-align: center; color: var(--color-text-muted); padding: 30px;
}
.hotspot-stage .media-placeholder svg { width: 42px; height: 42px; opacity: .4; color: var(--color-brand); }

.hotspot {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%); animation: hotspot-pulse 2.6s infinite; z-index: 5;
  box-shadow: 0 4px 12px rgba(0,131,203,.4);
}
.hotspot svg { width: 15px; height: 15px; }
.dark-theme .hotspot { background: var(--color-accent-cyan); color: #0B1013; }

@keyframes hotspot-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,131,203,.5); } 70% { box-shadow: 0 0 0 16px rgba(0,131,203,0); } 100% { box-shadow: 0 0 0 0 rgba(0,131,203,0); } }
.dark-theme .hotspot { animation-name: hotspot-pulse-dark; }
@keyframes hotspot-pulse-dark { 0% { box-shadow: 0 0 0 0 rgba(110,193,228,.55); } 70% { box-shadow: 0 0 0 16px rgba(110,193,228,0); } 100% { box-shadow: 0 0 0 0 rgba(110,193,228,0); } }

.hotspot-popover {
  position: absolute; z-index: 10; width: 236px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-elevated);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.97);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  pointer-events: none;
}
.hotspot-popover.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.hotspot-popover .hp-title { font-family: var(--font-display); font-weight: 700; font-size: .92rem; margin-bottom: 4px; color: var(--color-text-heading); }
.hotspot-popover .hp-desc { font-size: .82rem; color: var(--color-text-muted); line-height: 1.5; }

/* --- Selo "Ver demonstração" (vídeo) --- */
.video-play-badge {
  position: absolute; bottom: 16px; right: 16px; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  background: rgba(11,16,19,.72); backdrop-filter: blur(3px); color: #fff;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  padding: 9px 16px 9px 10px; border-radius: var(--radius-pill);
  transition: background var(--transition-base), transform var(--transition-base);
}
.video-play-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.video-play-badge:hover { background: rgba(0,131,203,.9); transform: translateY(-2px); }

/* --- Pilar 3: Simulador de fluxo de ar --- */
.flow-section { padding: 88px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-bg-alt); }
/* --- "Como funciona": diagrama de fluxo (blueprint) --- */
.fluxo-panel {
  position: relative;
  margin-top: 40px;
  padding: 28px;
  border: 1px solid rgba(110, 193, 228, .28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(110, 193, 228, .12), transparent 55%),
    linear-gradient(150deg, #05192B, #0A2F4C);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.dark-theme .fluxo-panel { background: radial-gradient(circle at 50% 45%, rgba(110,193,228,.1), transparent 55%), linear-gradient(150deg, #0B0F14, #131C25); }

.fluxo-svg { display: block; width: 100%; height: auto; }

/* Grade milimetrada, esmaecida nas bordas */
.fx-grid { color: rgba(110, 193, 228, .16); mask-image: radial-gradient(circle at 50% 45%, #000 40%, transparent 88%); }
.fx-brackets { fill: none; stroke: rgba(110, 193, 228, .5); stroke-width: 1.4; stroke-linecap: round; }

/* Gabinete e colmeias */
.fx-body { fill: rgba(110, 193, 228, .05); stroke: rgba(110, 193, 228, .55); stroke-width: 1.6; }
.fx-pad-frame { fill: none; stroke: var(--color-accent-cyan); stroke-width: 1.4; }
.fx-pad-weave { stroke: rgba(110, 193, 228, .45); stroke-width: .8; }

/* Hélice: traço técnico, sem giro — o movimento fica por conta do ar */
.fx-fan-ring { fill: none; stroke: rgba(110, 193, 228, .35); stroke-width: 1.2; stroke-dasharray: 2 6; }
.fx-fan-blades path { fill: rgba(110, 193, 228, .1); stroke: var(--color-accent-cyan); stroke-width: 1.6; stroke-linejoin: round; }
.fx-fan-hub { fill: rgba(5, 25, 43, .9); stroke: var(--color-accent-cyan); stroke-width: 1.6; }

/* Aletas automáticas (exaustor): lâminas na face de descarga */
.fx-louver { stroke: var(--color-accent-cyan); stroke-width: 1.6; stroke-linecap: round; }

/* Correntes de ar: o traço corre, indicando sentido e velocidade */
.fx-stream {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 13;
  animation: fx-flow 1.6s linear infinite;
}
.fx-stream--hot  { stroke: var(--color-flow-hot); filter: drop-shadow(0 0 5px rgba(226, 67, 77, .55)); }
.fx-stream--cold { stroke: var(--color-accent-cyan); filter: drop-shadow(0 0 6px rgba(110, 193, 228, .6)); }

@keyframes fx-flow { to { stroke-dashoffset: -36; } }

.fx-chev { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fx-chev--hot { stroke: var(--color-flow-hot); }
.fx-chev--cold { stroke: var(--color-accent-cyan); }

/* Etapas numeradas: a ordem carrega informação (captação → troca → insuflamento) */
.fx-step-line { fill: none; stroke: rgba(110, 193, 228, .45); stroke-width: 1; stroke-dasharray: 3 4; }
.fx-step-dot { fill: var(--color-accent-cyan); }
.fx-step-num { fill: rgba(110, 193, 228, .7); font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; }
.fx-step-text { fill: #E8F4FB; font-family: var(--font-mono); font-size: 14px; letter-spacing: .6px; }

/* Legenda */
.fluxo-legend { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.fluxo-legend span {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); background: var(--color-surface);
  font-family: var(--font-mono); font-size: .74rem; color: var(--color-text-body);
}
.fluxo-legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.fluxo-legend .dot.hot { background: var(--color-flow-hot); box-shadow: 0 0 8px rgba(226,67,77,.5); }
.fluxo-legend .dot.cold { background: var(--color-accent-cyan); box-shadow: 0 0 8px rgba(110,193,228,.5); }

@media (max-width: 700px) {
  .fluxo-panel { padding: 14px; border-radius: var(--radius-md); }
  .fx-step-text { font-size: 17px; }
  .fx-step-num { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-stream { animation: none; stroke-dasharray: none; opacity: .75; }
}

/* --- Pilar 2: Grid técnico --- */
.specs-section { padding: 88px 0; }
.specs-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.brand-seal { width: 84px; height: 84px; flex-shrink: 0; opacity: .85; object-fit: contain; }
/* O selo tem miolo claro: no Modo Engenharia recebe um halo para não flutuar solto. */
.dark-theme .brand-seal { opacity: .92; border-radius: 50%; box-shadow: 0 0 0 1px rgba(110,193,228,.18), 0 6px 22px rgba(0,0,0,.45); }
.specs-grid-lg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.spec-card-lg {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px 22px;
  background: var(--color-surface); transition: all var(--transition-base); box-shadow: var(--shadow-card);
}
.spec-card-lg:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.spec-card-lg .spec-label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); margin: 14px 0 4px; }
.spec-card-lg .spec-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--color-text-heading); margin-bottom: 8px; }
.spec-card-lg .spec-desc { font-size: .85rem; color: var(--color-text-muted); line-height: 1.5; }

/* --- Conversão: CTA WhatsApp --- */
.conversion-section { padding: 96px 0; text-align: center; border-top: 1px solid var(--color-border); background: var(--color-bg-alt); }
.conversion-section h2 { max-width: 560px; margin: 0 auto 14px; }
.conversion-section p { max-width: 480px; margin: 0 auto 32px; }
.conversion-preview {
  max-width: 460px; margin: 0 auto 32px; text-align: left; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 20px;
  font-size: .88rem; color: var(--color-text-body); font-style: italic; box-shadow: var(--shadow-card);
}
.conversion-preview .cp-label { display: block; font-family: var(--font-mono); font-style: normal; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); margin-bottom: 8px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .specs-grid-lg { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .specs-grid-lg { grid-template-columns: 1fr; }
}
