/* WondarCore — código propio, no generado. Se puede modificar libremente. */

.perfil-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.perfil-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  background-size: cover;
  background-position: center;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perfil-header-info {
  flex: 1;
  min-width: 200px;
}

.perfil-nombre {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 2px;
}

.perfil-desde {
  font-size: 0.82rem;
  color: #888;
}

.perfil-seccion {
  margin-top: 1.25rem;
}

.perfil-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.perfil-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.perfil-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
}

.perfil-input {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1a1a2e;
  background: white;
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
  box-sizing: border-box;
}
.perfil-input:focus { border-color: #2563eb; }

.perfil-form-row--redes { grid-template-columns: 1fr 1fr 1fr; }

.perfil-label--red .perfil-red-label-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.perfil-form-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.perfil-guardado-ok {
  color: #16a34a;
  font-size: 0.85rem;
  font-weight: 600;
}

.perfil-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
}

.perfil-opiniones-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.perfil-opinion-item {
  background: #f8f8fb;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: none;
}

.perfil-opinion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.perfil-opinion-destino {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
}
.perfil-opinion-destino:hover { text-decoration: underline; }

.perfil-opinion-estado {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.perfil-opinion-estado--pendiente { background: #fef3c7; color: #92400e; }
.perfil-opinion-estado--aprobado  { background: #dcfce7; color: #166534; }
.perfil-opinion-estado--rechazado { background: #fee2e2; color: #991b1b; }

.perfil-opinion-fecha {
  font-size: 0.72rem;
  color: #aaa;
  margin-bottom: 8px;
}

.perfil-opinion-titulo {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.perfil-opinion-footer {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.op-borrar-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #999;
  cursor: pointer;
}

.op-borrar-btn:hover { color: #e53e3e; }

/* ── Historial de fichas visitadas (Continente/País/Estado/Destino/Atracción) ────────────────── */
.perfil-historial-list {
  margin-top: 1rem;
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.perfil-historial-item {
  flex: 0 0 auto;
  width: 140px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f8fb;
  transition: transform 0.15s;
}
.perfil-historial-item:hover { transform: translateY(-2px); }

.perfil-historial-img {
  width: 100%;
  height: 90px;
  background-color: #e5e7eb;
  background-size: cover;
  background-position: center;
}

.perfil-historial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.55rem 0.65rem 0.7rem;
  min-height: 44px;
}

.perfil-historial-nombre {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perfil-historial-tipo {
  font-size: 0.68rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .perfil-form-row { grid-template-columns: 1fr; }
  .perfil-header { flex-direction: column; align-items: flex-start; }
  #btn-cerrar-sesion { align-self: stretch; text-align: center; }
  .perfil-historial-item { width: 120px; }
}

/* "Mis consultas a Wondar IA" — movido de miperfil-publico.css a acá (2026-07-28), junto con la
   sección que pasó de /miperfil a /perfil (ver cargarConsultasIa en perfil-publico.js). */
.mp-consulta-ia-list { display: flex; flex-direction: column; gap: 14px; }

.mp-consulta-ia-item {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
}

.mp-consulta-ia-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: #999;
}

.mp-consulta-ia-contexto {
  background: #f0f1f5;
  border-radius: 20px;
  padding: 2px 10px;
  font-weight: 600;
}

.mp-consulta-ia-pregunta {
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
}

.mp-consulta-ia-respuesta {
  color: #444;
  margin: 0;
  white-space: pre-wrap;
}
