/* Estilos Nativos del Frontend - Test de Prioridades de Vida */
.tpv-wrapper {
  max-width: 800px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tpv-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.tpv-title {
  margin: 0 0 6px 0;
  font-size: 24px;
  color: #1e293b;
  font-weight: 700;
}

.tpv-subtitle {
  margin: 0 0 20px 0;
  color: #64748b;
  font-size: 14px;
}

/* Stepper Indicator */
.tpv-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.tpv-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

.tpv-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpv-step-active {
  color: #2563eb;
}

.tpv-step-active .tpv-step-num {
  background: #2563eb;
  color: #ffffff;
}

.tpv-step-line {
  flex: 1;
  height: 2px;
  background: #f1f5f9;
  margin: 0 12px;
}

/* Forms & Inputs */
.tpv-field-group {
  margin-bottom: 16px;
}

.tpv-field-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #334155;
}

.tpv-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

.tpv-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tpv-phone-input-group {
  display: flex;
  gap: 8px;
}

.tpv-select-country {
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
}

/* Ranking Items (Drag & Drop) */
.tpv-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.tpv-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tpv-item-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tpv-item-rank {
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0284c7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.tpv-item-top .tpv-item-rank {
  background: #059669; /* Verde para Top 3 */
}

.tpv-item-bottom .tpv-item-rank {
  background: #d97706; /* Ámbar para Bottom 3 */
}

.tpv-item-body {
  flex: 1;
  margin: 0 16px;
}

.tpv-item-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 15px;
  margin-bottom: 2px;
}

.tpv-item-desc {
  font-size: 13px;
  color: #64748b;
}

.tpv-item-btns {
  display: flex;
  gap: 4px;
}

.tpv-btn-arrow {
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

/* Buttons */
.tpv-btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.tpv-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.tpv-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.tpv-btn-success {
  background: #16a34a;
  color: #ffffff;
}

.tpv-btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .tpv-card { padding: 16px; }
  .tpv-phone-input-group { flex-direction: column; }
  .tpv-step-label { display: none; }
}
