.portal-valoracion {
  display: grid;
  gap: 1.15rem;
}

.pv-hero {
  background: linear-gradient(135deg, #0f2557 0%, #2563eb 100%);
  border-radius: 20px;
  color: #ffffff;
  padding: 1.4rem;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.22);
}

.pv-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.pv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #bfdbfe;
  text-transform: uppercase;
}

.pv-hero h4 {
  margin: 0.5rem 0 0.3rem;
  font-size: 1.28rem;
  line-height: 1.3;
}

.pv-hero p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.5;
  font-size: 0.9rem;
}

.pv-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.pv-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #eff6ff;
  font-size: 0.76rem;
  font-weight: 600;
}

.pv- hero-chip i,
.pv-hero-chip svg {
  width: 14px;
  height: 14px;
}

.pv-metricas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.pv-metrica {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
}

.pv-metrica span {
  display: block;
  color: #dbeafe;
  font-size: 0.74rem;
  font-weight: 600;
}

.pv-metrica strong {
  display: block;
  font-size: 1.18rem;
  margin-top: 0.18rem;
  color: #ffffff;
}

.pv-metrica small {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #bfdbfe;
  font-weight: 600;
}

.pv-meta-hero {
  margin-top: 0.95rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pv-meta-hero div {
  flex: 1;
  min-width: 200px;
}

.pv-meta-hero span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 0.15rem;
}

.pv-meta-hero p {
  font-size: 0.86rem;
  color: #ffffff;
  margin: 0;
}

.pv-meta-hero strong {
  align-self: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  color: #e0f2fe;
}

.pv-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.35rem 0 0.15rem;
}

.pv-titulo h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.pv-linea {
  display: grid;
  gap: 1rem;
  position: relative;
  padding: 0 0 0.5rem 2.4rem;
}

.pv-linea::before {
  content: "";
  position: absolute;
  left: 0.82rem;
  top: 1.05rem;
  bottom: 1.8rem;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(#16a34a, #2563eb, #93c5fd);
}

.pv-item {
  position: relative;
  background: var(--color-superficie, #ffffff);
  border: 1px solid #dbe4f3;
  border-radius: 16px;
  padding: 1.05rem 1.15rem;
  box-shadow: 0 7px 19px rgba(15, 40, 82, 0.05);
}

.pv-item::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 50%;
  background: #2563eb;
  border: 4px solid #eef5ff;
  box-shadow: 0 0 0 2px #60a5fa;
  left: -2.08rem;
  top: 1.2rem;
}

.pv-item:first-child::before {
  background: #16a34a;
  box-shadow: 0 0 0 2px #86efac;
}

.pv-hito {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pv-hito::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
}

.pv-item:first-child .pv-hito {
  color: #15803d;
}

.pv-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.pv-fecha {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.81rem;
  color: #64748b;
}

.pv-fecha i,
.pv-fecha svg {
  width: 14px;
  height: 14px;
}

.pv-badge {
  display: inline-flex;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #eaf1ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
}

.pv-item h5 {
  font-size: 1.02rem;
  margin: 0.4rem 0 0.25rem;
  color: #0f172a;
}

.pv-item p {
  color: #475569;
  line-height: 1.5;
  margin: 0.45rem 0;
  font-size: 0.9rem;
}

.pv-detalles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.pv-detalle {
  background: #f5f8fe;
  border: 1px solid #e2eafe;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.76rem;
  color: #64748b;
}

.pv-detalle strong {
  display: block;
  color: #0f275c;
  font-size: 0.94rem;
  margin-top: 0.1rem;
}

.pv-detalle small {
  display: block;
  font-size: 0.7rem;
  color: #2563eb;
  font-weight: 600;
  margin-top: 0.1rem;
}

.pv-funcional {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin: 0.65rem 0;
}

.pv-funcional-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  color: #334155;
}

.pv-funcional-item span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  margin-bottom: 0.15rem;
}

.pv-meta-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  margin: 0.65rem 0;
  font-size: 0.86rem;
  color: #14532d;
}

.pv-meta-box strong {
  color: #166534;
}

.pv-observaciones {
  background: #f8fafc;
  border-left: 3px solid #93c5fd;
  padding: 0.55rem 0.75rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
  color: #334155;
  margin: 0.65rem 0;
}

.pv-acciones {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}

.pv-vacio {
  background: var(--color-superficie, #ffffff);
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 2.5rem 1rem;
  text-align: center;
  color: #64748b;
}

.pv-vacio i,
.pv-vacio svg {
  color: #2864e9;
  width: 34px;
  height: 34px;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .pv-metricas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .pv-hero {
    border-radius: 16px;
    padding: 1.15rem;
  }
  .pv-linea {
    padding-left: 2.05rem;
  }
  .pv-linea::before {
    left: 0.72rem;
  }
  .pv-item::before {
    left: -1.82rem;
  }
  .pv-item-head {
    flex-direction: column;
  }
  .pv-acciones .btn {
    width: 100%;
  }
}
