.vuelame-price-indicator {
  position: relative;
  max-width: 600px;
  margin: 24px 0;
  font-family: 'Manrope', sans-serif;
}

/* ===== Barra principal ===== */
.vpi-bar {
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.vpi-green { width: 30%; background: #2ecc71; }
.vpi-yellow { width: 40%; background: #f1c40f; }
.vpi-red { width: 30%; background: #e74c3c; }

/* ===== Indicador ===== */
.vpi-marker {
  position: absolute;
  top: -4px; /* 🔥 centrado real */
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 6px solid #1e6cff;
  transform: translateX(-50%);
  z-index: 3;
}

/* ===== Tooltip ===== */
.vpi-tooltip {
  position: absolute;
  top: -38px;
  left: 50%;
  padding: 4px 8px;
  background: #2b2b2b;
  color: #ffffff;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  transform: translateX(-50%);
  z-index: 4;
}

/* Piquito del tooltip */
.vpi-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #2b2b2b;
}


/* ===== Rango mercado (solo amarillo) ===== */
.vpi-market-range {
  position: relative;
  margin-top: 6px;
  margin-left: 22%;
  width: 60%;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #888;
}

/* ===== Comprar / Esperar ===== */
.vpi-action {
  margin-top: 14px;
}

.vpi-action-bar {
  height: 10px; /* 🔥 misma altura que la barra principal */
  background: #444;
  border-radius: 6px;
  overflow: hidden;
}

.vpi-action-bar span {
  display: block;
  height: 100%;
  background: #2ecc71;
}

.vpi-action-labels {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
}


/* ============================================
   ESTILOS PARA CONVERSIÓN DINÁMICA (SIN AFECTAR DISEÑO)
   ============================================ */

/* Animación sutil para actualización de precios */
.precio-dinamico.precio-actualizado {
    animation: precioUpdateSutil 0.5s ease;
}

@keyframes precioUpdateSutil {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Para tooltip específicamente */
.vpi-tooltip.precio-actualizado {
    animation: tooltipUpdate 0.5s ease;
}

@keyframes tooltipUpdate {
    0% { 
        transform: translateX(-50%) translateY(0); 
    }
    50% { 
        transform: translateX(-50%) translateY(-2px); 
    }
    100% { 
        transform: translateX(-50%) translateY(0); 
    }
}