/* voz.css — Layout de asistentes de voz */

.voice-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
  padding: 0 1rem;
  max-width: 1100px;
  margin-inline: auto;
}

/* Bloque superior */
.voice-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.voice-top-left {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.voice-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Área GIF */
.video-area {
  flex: 1;
  min-width: 280px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 280px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.video-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Texto / info derecha */
.voice-top-right {
  flex: 1;
  min-width: 280px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Cuando info-container se usa dentro de voice-top-right anulamos el padding doble */
.voice-top-right.info-container { background: var(--surface); }

/* Placeholder text */
.info-placeholder {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
  font-style: italic;
}

/* Flecha decorativa en el hint */
.help-arrow-up {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid var(--a2);
  margin-bottom: 4px;
}

.voice-content-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}

/* Botones de asistente */
.voice-btn {
  background: var(--surface);
  border: 2px solid var(--a2);
  color: var(--text);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.voice-btn:hover {
  background: var(--a2);
  color: white;
  transform: translateY(-4px);
}

.voice-btn.active {
  background: var(--a3);
  color: white;
  border-color: var(--a3);
}

/* Bloque inferior */
.voice-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.bottom-left  { flex: 1; min-width: 280px; }
.bottom-right { flex: 1; min-width: 280px; display: flex; justify-content: center; }

/* ===== HELP HINT FLOTANTE ===== */
.voice-help-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: all .5s cubic-bezier(.4, 0, .2, 1);
  animation: float 3s infinite ease-in-out;
}

.voice-help-hint.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -60%);
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50%       { transform: translate(-50%, -56%); }
}

.help-content {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 14px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .95rem;
  color: var(--muted);
  font-weight: 600;
}

.help-content p {
  margin: 0;
  background: linear-gradient(90deg, var(--a3), var(--a2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .voice-top, .voice-bottom { gap: 24px; }
  .voice-top-left, .voice-top-right, .bottom-left, .bottom-right { min-width: 100%; }
  .video-area { height: 220px; }
  .voice-section { gap: 40px; margin-top: 24px; }
}

@media (max-width: 480px) {
  .video-area { height: 180px; }
}
