/* ================================================= */
/* Seção demonstracao (O Risco Invisível) - MOBILE-FIRST      */
/* ================================================= */

#demonstracao {
  background-color: #182047;
  color: #f8f9fa;
  padding: 60px 20px; /* Padding padrão para mobile */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Layout Padrão (Mobile Portrait) */
.demonstracao-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Empilhado por padrão */
  align-items: center;
  text-align: center;
  gap: 35px;
  width: 100%;
}

.demonstracao-conteudo {
  max-width: 600px;
}

.demonstracao-video {
  position: relative;
  width: 100%;
  /* Padrão Mobile: vídeo pequeno e vertical */
  max-width: 200px;
  aspect-ratio: 9 / 16; /* Proporção de "Shorts" é o padrão */
}

.demonstracao-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.demonstracao-titulo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem; /* Fonte padrão para mobile */
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.alerta-icon {
  margin-right: 10px;
  display: inline-flex;
}

.alerta-icon svg {
  width: 28px;
  height: 28px;
  color: #00d4ff; /* Cor ciano para impacto tecnológico */
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8));
  animation: pulseGlow 2s infinite ease-in-out;
}

.demonstracao-texto p {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 0.9rem; /* Texto padrão para mobile */
  line-height: 1.7;
  margin-bottom: 15px;
}
.demonstracao-texto strong {
  color: #00d4ff;
  font-weight: 700;
}

@keyframes bounceAlert {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}


/* ======================================================= */
/* --- AJUSTES PARA TELAS MAIORES (TABLET/DESKTOP) ---     */
/* ======================================================= */

@media (min-width: 992px) {
  #demonstracao {
    padding: 100px 20px;
  }
  
  /* Volta para o layout lado a lado */
  .demonstracao-container {
    flex-direction: row;
    text-align: left;
    gap: 60px;
  }

  /* Aumenta o vídeo, mantendo a proporção vertical */
  .demonstracao-video {
    max-width: 300px;
  }

  /* Aumenta as fontes e o ícone */
  .demonstracao-titulo {
    font-size: 2.4rem;
    justify-content: flex-start;
    margin-bottom: 25px;
    text-align:center;
  }
  .alerta-icon {
    margin-right: 15px;
  }
  .alerta-icon svg {
    width: 45px;
    height: 45px;
  }
  .demonstracao-texto p {
    font-size: 1.1rem;
  }
}


/* ======================================================= */
/* --- AJUSTES PARA CELULAR NA HORIZONTAL (LANDSCAPE) ---  */
/* ======================================================= */

@media (max-height: 500px) and (orientation: landscape) {
  #demonstracao {
    padding: 30px 20px;
  }

  .demonstracao-container {
    flex-direction: row;
    gap: 30px;
    text-align: left;
  }

  .demonstracao-titulo {
    font-size: 1.5rem;
    margin-bottom: 15px;
    justify-content: flex-start;
  }

  .alerta-icon svg {
    width: 28px;
    height: 28px;
  }

  .demonstracao-texto p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* Em landscape, o vídeo volta a ser horizontal para caber na tela baixa */
  .demonstracao-video {
    max-width: 240px;
    aspect-ratio: 16 / 9; 
  }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}